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

Implicit copy in Pose.create #657

Open
BlGene opened this issue Oct 28, 2024 · 1 comment
Open

Implicit copy in Pose.create #657

BlGene opened this issue Oct 28, 2024 · 1 comment

Comments

@BlGene
Copy link

BlGene commented Oct 28, 2024

Hi Team,

this just caused a bug for me and feels a bit inconsistent. My expectation would be that Pose.create creates a new instance, ChatGPT thinks so too ;)

(Pdb) new_pose = Pose.create(start_pose)
(Pdb) id(new_pose)
132378980628320
(Pdb) id(start_pose)
132378980628320
(Pdb) new_pose = Pose.create_from_pq(p=start_pose.get_p(), q=start_pose.get_q())
(Pdb) id(new_pose)
132378980629664

(Pdb) mani_skill.__version__
'3.0.0b10'
@StoneT2000
Copy link
Member

I would think so as well lol. Thanks for bringing this up.

Is the culprit probably. Would also need to clone the original raw pose data. I think the one where you do new_pose = Pose.create_from_pq(p=start_pose.get_p(), q=start_pose.get_q()) might also be problematic since if start_pose changes new_pose might also change.

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

No branches or pull requests

2 participants