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 -0600
Seen: 414 times
Last updated: Dec 16 '11
How to remap robot frame names using gazebo_ros spawn_model
Why do the wheels move away from joint when the robot falls over in gazebo?
It doesn't display 3D model in RVIZ but it does in Gazebo [closed]
linking joints in URDF and/or Gazebo?
Package not found (rospack find: error)
Error while implementing prismatic joint