dougsm / mvp_grasp

Multi-Viewpoint Picking (ICRA 2019)
BSD 3-Clause "New" or "Revised" License
200 stars 46 forks source link

AttributeError: 'Pose' object has no attribute 'pose' #13

Closed seivazi closed 4 years ago

seivazi commented 4 years ago

In the panda_base_grasping_controller.py:

self.best_grasp.position.z = max(self.best_grasp.pose.position.z - 0.01, 0.026)

AttributeError: 'Pose' object has no attribute 'pose'

Shouldn't be without pose? like this: self.best_grasp.position.z = max(self.best_grasp.position.z - 0.01, 0.026)

I get similar error for self.pc.set_gripper(self.best_grasp.width, wait=False) because there is no width.

Am I missing something?

dougsm commented 4 years ago

Can you tell me which scripts you are running? I assume that it's expecting best_grasp to be a Grasp type message, which does have all of those attributes.

seivazi commented 4 years ago

Thank you! The error is not any more valid since I fixed _velo_control_loop.