Closed lakshmip001 closed 5 years ago
when trying to sent traj directly to execute_trajectory_wait_for_controller(traj) gives following error
Traceback (most recent call last):
File "/home/lakshmi/cat_OR_ws/src/ur5controller/scripts/control_ur5.py", line 193, in <module>
demo.control_robot_with_the_keyboard()
File "/home/lakshmi/cat_OR_ws/src/ur5controller/scripts/control_ur5.py", line 188, in control_robot_with_the_keyboard
self.move_constant_velocity()
File "/home/lakshmi/cat_OR_ws/src/ur5controller/scripts/control_ur5.py", line 136, in move_constant_velocity
self.robot.execute_trajectory_and_wait_for_controller(ros_traj)
File "/home/lakshmi/cat_OR_ws/src/ur5controller/pythonsrc/ur5_robot/ur5_robot.py", line 145, in execute_trajectory_and_wait_for_controller
self.GetController().SetPath(trajectory)
Boost.Python.ArgumentError: Python argument types in
Controller.SetPath(Controller, JointTrajectory)
did not match C++ signature:
SetPath(openravepy::PyControllerBase {lvalue}, boost::shared_ptr<openravepy::PyTrajectoryBase>)
Did you changed the trajectory yourself?
Yes. I just added that function .
It looks like the trajectory you are generating is not compatible with what OpenRAVE expects. You should find a way to integrate the trajectory you manually generate to a valid OpenRAVE trajectory.
This doesn't look to be related with this controller but rather how the trajectory is generated, which looks to be invalid.
I am trying to execute the following function to move the robot arm but it doesn't move:
please help me if you have an idea.