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?
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-12-13 08:47:40 -0500
Seen: 375 times
Last updated: Dec 16 '11
Arm does not appear when using xacro to attach UR5 to Robotiq Gripper
How to use libgazebo_ros_camera.so in gazebo (urdf)
Spawn a blender file in Gazebo
Spawner gets blocked when trying to use libhector_gazebo_ros_sonar
can i use a pr2 controller for my own urdf
Converting URDF to SDF 1.0 in fuerte? [closed]
URDF alternative of SDF revolute2 joint type
[Moveit/Gazebo] Controller failed with error code GOAL_TOLERANCE_VIOLATED