Skip to content

Preserve base link in body transform on clone#1540

Open
rschlaikjer wants to merge 1 commit intoproductionfrom
rs-fix-kinbody-base-link-transform
Open

Preserve base link in body transform on clone#1540
rschlaikjer wants to merge 1 commit intoproductionfrom
rs-fix-kinbody-base-link-transform

Conversation

@rschlaikjer
Copy link
Copy Markdown
Collaborator

If a kinbody is created via InitFromKinBodyInfo, and the base link in that body has a non-zero transform, then openrave will correctly track that offset.

However, if you then clone that body, the offset is currently lost, resulting in surprising behaviour in clone envs. Similarly, if you init a kinbody from a set of link infos, it doesn't respect base link offset.

Fix cloning and InitWithInitialLinks to preserve/initialize the base link offset for consistency.

Tests:
https://tiny.mujin.co.jp/hra7d
https://tiny.mujin.co.jp/lx3jg

@rschlaikjer rschlaikjer self-assigned this Nov 19, 2025
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.

1 participant