ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
From the robot_state_publisher
wiki:
robot_state_publisher
uses the URDF specified by the parameterrobot_description
and the joint positions from the topicjoint_states
to calculate the forward kinematics of the robot and publish the results via tf.
From the joint_state_publisher
wiki:
This package publishes
sensor_msgs/JointState
messages for a robot. The package reads therobot_description
parameter, finds all of the non-fixed joints and publishes aJointState
message with all those joints defined.Can be used in conjunction with the
robot_state_publisher
node to also publish transforms for all joint states.
Basically, the robot_state_publisher
publishes the tf
transforms of your robot based on its URDF file. You can also publish the joint states using the joint_state_publisher
or do it yourself. Either way, the robot_state_publisher
uses this information to calculate the forward kinematics of your robot.
2 | No.2 Revision |
From the robot_state_publisher
wiki:
robot_state_publisher
uses the URDF specified by the parameterrobot_description
and the joint positions from the topicjoint_states
to calculate the forward kinematics of the robot and publish the results via tf.
From the joint_state_publisher
wiki:
This package publishes
sensor_msgs/JointState
messages for a robot. The package reads therobot_description
parameter, finds all of the non-fixed joints and publishes aJointState
message with all those joints defined.Can be used in conjunction with the
robot_state_publisher
node to also publish transforms for all joint states.
Basically, the robot_state_publisher
publishes the tf
transforms of your robot based on its URDF file. You can also publish the joint states using the joint_state_publisher
or do it yourself. Either way, the robot_state_publisher
uses this information to calculate the forward kinematics of your robot.
Update:
If you want to publish your own sensor_msgs/JointState
messages then take a look at this tutorial.