ros-industrial / universal_robot

ROS-Industrial Universal Robots support (https://wiki.ros.org/universal_robot)
1.05k stars 1.03k forks source link

Extract force value from "wrench" topic. #606

Closed ZZWang21 closed 1 year ago

ZZWang21 commented 1 year ago

I would like to extract one of the forces value, for example, force.z, from the rostopic "wrench". I tried many methods, but still not working. I am connecting a real UR5e robot to ROS. I can get the values when using "rostopic echo /wrench". I would like to extract the force.z to use it as a control parameter in python.

Does any expert have an idea?

Thank you very much.

gavanderhoorn commented 1 year ago

Seems you also opened https://github.com/UniversalRobots/Universal_Robots_ROS_Driver/issues/563, which is a better place to ask this.

Closing.