iGibson
iGibson copied to clipboard
Correctly pass scale to pybullet API
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.