Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link pose not exported in SDF #339

Closed
svepe opened this issue Oct 13, 2023 · 3 comments
Closed

Link pose not exported in SDF #339

svepe opened this issue Oct 13, 2023 · 3 comments
Assignees
Labels
bug Confirmed bug in Phobos code

Comments

@svepe
Copy link

svepe commented Oct 13, 2023

Describe the bug
When an SDF is exported the link pose is no longer set. Previous version of phobos did put a <pose> tag relative to the parent joint, but this is no longer the case.

To Reproduce
Steps to reproduce the behavior:

  1. Export SDF from the attached .blend file which contains a simple example with only 2 links.
    excavator_phobos_issue.blend.zip
    Screenshot from 2023-10-13 12-50-51

  2. Open the SDF in gazebo

  3. Both links are shown at the world origin (0, 0, 0)
    Screenshot from 2023-10-13 12-48-39

Expected behavior
The second link should be above the first one.

Adding the following line to the second link in the SDF fixes the issue

<link name="cabin_link">
    <pose relative_to="cabin_joint">0.00000 0.00000 0.00000 0.00000 0.00000 0.00000</pose>
   ...

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Blender version: 3.6.4
  • At latest phobos commit 56d46c7

Previous versions of phobos did not have this issue.

hwiedPro pushed a commit that referenced this issue Oct 26, 2023
@hwiedPro
Copy link
Collaborator

Hi @svepe,
please checkout the commit I just pushed and whether it fixes your issue. ;)

@hwiedPro hwiedPro added the bug Confirmed bug in Phobos code label Oct 26, 2023
@skrymets
Copy link

skrymets commented Oct 30, 2023

@hwiedPro , well, I've applied the changes you've mentioned (ea4b644) to my local Blender Phobos addon setup, and it seems, than it does the trick for me.

Thank you!

PS: The only note that is worth to make - it doesn't work (in some other way - correct position but wrong orientation) IF, let's say, you've added a link (joint), then rotated it for some angle and applied the rotation transformation.

AlpenAalAlex added a commit to AlpenAalAlex/phobos that referenced this issue Jan 9, 2024
Exporting pose relative to root link because gazebo 9 ignores relative_to attribute
AlpenAalAlex added a commit to AlpenAalAlex/phobos that referenced this issue Jan 10, 2024
Exporting pose relative to root link because gazebo 9 ignores relative_to attribute
@AlpenAalAlex
Copy link
Collaborator

PS: The only note that is worth to make - it doesn't work (in some other way - correct position but wrong orientation) IF, let's say, you've added a link (joint), then rotated it for some angle and applied the rotation transformation.

@skrymets Can you explain this in further detail in a new issue?

@AlpenAalAlex AlpenAalAlex reopened this Jan 10, 2024
@hwiedPro hwiedPro mentioned this issue Feb 13, 2024
7 tasks
AlpenAalAlex added a commit to AlpenAalAlex/phobos that referenced this issue Aug 8, 2024
Exporting pose relative to root link because gazebo 9 ignores relative_to attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug in Phobos code
Projects
None yet
Development

No branches or pull requests

4 participants