test_turtlebot_with_head.launch 1.2 KB

1234567891011121314151617181920212223
  1. <launch>
  2. <!-- Load the URDF/Xacro model of our robot -->
  3. <param name="robot_description" command="$(find xacro)/xacro.py '$(find rbx1_description)/urdf/turtlebot_with_head.xacro'" />
  4. <!-- Provide simulated control of the robot joint angles -->
  5. <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
  6. <param name="/use_gui" value="True"/>
  7. <param name="rate" value="20"/>
  8. </node>
  9. <!-- Publish the robot state -->
  10. <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher">
  11. <param name="publish_frequency" value="20.0"/>
  12. </node>
  13. <!-- Publish a static transform between the robot base and the world frame -->
  14. <node pkg="tf" type="static_transform_publisher" name="world_base_broadcaster" args="0 0 0.0325 0 0 0 /world /base_link 100" />
  15. <!-- We need a static transforms for the wheels -->
  16. <node pkg="tf" type="static_transform_publisher" name="odom_left_wheel_broadcaster" args="0 0.13 0.015 0 0 0 /base_link /left_wheel_link 100" />
  17. <node pkg="tf" type="static_transform_publisher" name="odom_right_wheel_broadcaster" args="0 -0.13 0.015 0 0 0 /base_link /right_wheel_link 100" />
  18. </launch>