xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
127 stars 77 forks source link

/xarm/set_position returns 997 #70

Closed clemense closed 6 months ago

clemense commented 6 months ago

Hi, I'm trying to use the service /xarm/set_position. From the command line everything works fine (ros2 service call /xarm/set_position xarm_msgs/srv/MoveCartesian "{pose: [300, 0, 250, 3.14, 0, 0], speed: 50, acc: 500, mvtime: 0}).

But commanding the same from a python service client node I get the return value 997 and the robot doesn't move. What does this mean? (i can't find this error code anywhere, any hint?)

Thanks!

clemense commented 6 months ago

Nevermind, found it. pose had the wrong length.