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

Correctly pass scale to pybullet API #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fjulian
Copy link

@fjulian fjulian commented Aug 31, 2022

Currently, setting a scale different from 1 for YCB objects has no effect. This is because the scale is passed as scalar to the pybullet API (createCollisionShape and createVisualShape), instead of as a vector of length 3 (as mentioned in the pybullet documentation). Unfortunately, pybullet seems to ignore the scale parameter silently if it is given in the wrong format.

This PR fixes the issue by passing the scale as an iterable of length 3. I updated this in the code for all of the above mentioned pybullet API calls that pass a scale.

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.

None yet

1 participant