0
$\begingroup$

Rosanswers logo

Hi,

After reading the URDF and robot / joint state publisher related tutorials, I am able to see the joint messages published by the joint state publisher, but the velocity and effort fields are empty.(I am currently running ros-diamondback on linux) Then looking into the pr2_controller_manager tutorials, I was able to use the JointVelocityController Plugin (configured it to correspond the joints in my urdf file) and launched a spawner type pr2_controller_manager node taking these JointVelocityController as an argument. But using rostopic info on this node, it does not have any subscribed or published topics. What are some ways to generate these velocity and effort fields? I am trying to use the environment_server of motion_planning_common which requires valid joint messages with velocity components for collision detection but keep seeing the invalid joint state error mesesage.


Originally posted by diannay on ROS Answers with karma: 41 on 2011-07-20

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

The joint_state_publisher is a tool to verify the correctness of your URDF model, by visually inspecting the robot model as it moves. It is however not intended to be used for running your robot. For your own robot, you will have to write a node that reads the joint values from your HW/sim robot, and publish those on the joint_states topic. For the PR2 robot, this job is done by pr2_mechanism.


Originally posted by Wim with karma: 2915 on 2011-09-01

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.