Understanding the robot state publisher

The robot state publisher package helps to publish the state of the robot to tf. This package subscribes to joint states of the robot and publishes the 3D pose of each link using the kinematic representation from the URDF model. We can use the robot state publisher node using the following line inside the launch file:

<!-- Starting robot state publish which will publish tf --> 
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" /> 

In the preceding launch file, view_arm.launch, we started this node to publish the tf of the arm. We can visualize the transformation of the robot by clicking on the tf option on RViz shown as follows:

Figure 11 : TF view of seven dof arm in RViz

The joint state publisher and robot state publisher packages are installed along with the ROS desktop's installations.

After creating the robot description of the seven DOF arm, we can discuss how to make a mobile robot with differential wheeled mechanisms.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.250.11