How to add a torque sensor to a 4-wheeled robot?
Can someone point me in the right direction as to how to add torque sensors (or get torque feedback) to each wheel of a robot?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Can someone point me in the right direction as to how to add torque sensors (or get torque feedback) to each wheel of a robot?
Give this file a look. It is a good example of how to get a joint's commanded effort (aka torque).
Just note, instead of:
joint_state_blw_->position_;
Use:
joint_state_blw_->commanded_effort_;
EDIT: The reason that I suggested using the pr2_controller_interface is that it's what provides a ROS API to Gazebo. By default, ROS has no access to Gazebo joint information. It's the pr2_controllers that allow us to obtain information and publish messages to Gazebo. By adding such a controller to your robot, you're able to monitor the joints in real time (with respect to Gazebo).
You could always try subscribing to /joint_states
instead, but I don't know if that will provide the information that you require.
Asked: 2011-12-13 08:47:40 -0500
Seen: 417 times
Last updated: Dec 16 '11
Gazebo crashes when spawning a robot with urdf.
why my robot arm rotate by itself?
The recommended way to integrate ROS and GAZEBO to build a robot model
object movement in simulator-gazebo
How to set friction direction in gazebo [closed]
How to correctly install ROS/Gazebo on AWS instances?
crash when using .png heightmap and Velodyne 3D LIDARs