iGibson icon indicating copy to clipboard operation
iGibson copied to clipboard

Correctly pass scale to pybullet API

Open fjulian opened this issue 1 year ago • 0 comments

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.

fjulian avatar Aug 31 '22 15:08 fjulian