Skip to content

Sdformat -> mjcf: Fix pose for links in child models#122

Merged
azeey merged 2 commits intomainfrom
shameek/nested_rotation_fix
Feb 18, 2026
Merged

Sdformat -> mjcf: Fix pose for links in child models#122
azeey merged 2 commits intomainfrom
shameek/nested_rotation_fix

Conversation

@shameekganguly
Copy link
Copy Markdown
Contributor

🦟 Bug fix

Summary

Fix pose computation for links in nested models when child model pose has a non-identity rotation. Amended existing test cases to include a position as well as a rotation offset.

Also cleaned up some code comments from #119

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the fix (as needed)
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Generated-by: Remove this if GenAI was not used.

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

Backports: If this is a backport, please use Rebase and Merge instead.

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
@shameekganguly shameekganguly requested a review from azeey February 18, 2026 00:03
@shameekganguly shameekganguly changed the title Add rotation in nested model test cases Sdformat -> mjcf: Fix pose for links in child models Feb 18, 2026
child_model.semantic_pose())
for cn in child_kh.world_node.child_nodes:
cn.resolved_pose *= child_model_pose
cn.resolved_pose = child_model_pose * cn.resolved_pose
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Thanks for catching this!

@azeey azeey merged commit 367616d into main Feb 18, 2026
3 checks passed
@azeey azeey deleted the shameek/nested_rotation_fix branch February 18, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants