Chiba9 / PybulletPacking

2 stars 1 forks source link

Question about resetBasePositionAndOrientation twice in move_item() #2

Open yangliuxin-nn opened 1 year ago

yangliuxin-nn commented 1 year ago

Hi

Could you please explain why you resetBasePositionAndOrientation in line 179 in the move_item() function before the final resetBasePositionAndOrientation in pybullet_heuristic.py?

Best wishes

Chiba9 commented 1 year ago

To get the shift between center and 'pos' under the planned orientation. 'pos' is the top left coordinates, and pyBullet needs the center.

yangliuxin-nn commented 1 year ago

Many thanks for your help!