xarm_ros2 icon indicating copy to clipboard operation
xarm_ros2 copied to clipboard

displacement in relative

Open tvchau opened this issue 2 years ago • 2 comments
trafficstars

Hi, I am quite new to ROS and i was trying to move my xarm6 arm with a displacement in relative, for example with a delta Z = 20mm. I was trying the command ros2 service call /xarm/set_position xarm_msgs/srv/MoveCartesian "{pose: [0, 0, 20, 0, 0, 0], speed: 50, acc: 500, mvtime: 0, relative: true}" but it doesn't do the job, it was moving to its zero position instead of a simple displacement in Z.

Could you advice me on that ?

tvchau avatar Dec 01 '22 13:12 tvchau

@tvchau Since some msgs are shared by multiple services, some parameters are not supported. For details, please refer to the description of msg. Previously, the set_position on ros did not support relative parameters. I just updated the support for some parameters. You can update the following code to recompile and use. thank you for your support

vimior avatar Dec 02 '22 03:12 vimior

@tvchau Some parameters require a certain version of the firmware to support. If some parameters are found to be invalid or not as expected during use, it is recommended to update the firmware to the latest version.

vimior avatar Dec 02 '22 03:12 vimior