AttributeError: 'Pick_Place' object has no attribute '_hover_distance'

asked 2016-06-20 04:02:53 -0500

Zero gravatar image

updated 2016-06-20 21:33:54 -0500

Hi everyone,

Currently, I'm trying to lean program a simple pick and place node by applying IK and move_to_joint_position() in Baxter robot.

My program was base on the example IK Pick and Place Demo program (actually I just simply to modify that program only to apply to the actual robot instead of using the simulator).

After I done the modification and try to run the node, the program was able to move the arm to initial starting position but when going to the first position point it will stop and shows me AttributeError of one of the argument.

This is the error shows:

Traceback (most recent call last):
  File "/home/baxter/ros_ws/src/baxter_examples/scripts/ylj_research/", line 194, in <module>
  File "/home/baxter/ros_ws/src/baxter_examples/scripts/ylj_research/", line 185, in main
  File "/home/baxter/ros_ws/src/baxter_examples/scripts/ylj_research/", line 120, in pick
  File "/home/baxter/ros_ws/src/baxter_examples/scripts/ylj_research/", line 84, in _approach
    approach.position.z = approach.position.z + self._hover_distance
AttributeError: 'Pick_Place' object has no attribute '_hover_distance'

This is my Google drive file link: (inside I already had put in my program node, the example node and the terminal error photo)

Please help me,thank you so much!! image description

edit retag flag offensive close merge delete


Sorry, the previous time the program node in the link was wrong, I updated the wrong node to my drive. Sorry about that.

Zero gravatar image Zero  ( 2016-06-22 10:00:31 -0500 )edit