Skip to content

Correctly pass scale to pybullet API#235

Open
fjulian wants to merge 1 commit intoStanfordVL:masterfrom
fjulian:fix_ycb_scale
Open

Correctly pass scale to pybullet API#235
fjulian wants to merge 1 commit intoStanfordVL:masterfrom
fjulian:fix_ycb_scale

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.

1 participant