Introduction
We use URDF to show a robot's shape and parts in a visual way. This helps us understand how the robot looks and moves.
Jump into concepts and practice - no test required
roslaunch urdf_tutorial display.launch model:=<path_to_urdf_file>
roslaunch urdf_tutorial display.launch model:=$(find urdf_tutorial)/urdf/robot.urdf
roslaunch urdf_tutorial display.launch model:=/home/user/robot_description/my_robot.urdf
# Save this as display.launch in your ROS package <launch> <arg name="model" default="$(find urdf_tutorial)/urdf/robot.urdf" /> <param name="robot_description" command="cat $(arg model)" /> <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" /> <node name="rviz" pkg="rviz" type="rviz" args="-d $(find urdf_tutorial)/rviz/urdf.rviz" /> </launch>
roslaunch display.launch. Other commands either don't exist or are incorrect for displaying URDF models.roslaunch display.launch robot:=my_robot.urdfroslaunch display.launch but RViz shows no robot. What is a likely cause?