This repo contains an example of a URDF file and a launch script to run it. (ROS 2) This is part of a tutorial on creating URDF files, available at the links below:
Blog Post: https://articulatedrobotics.xyz/ready-for-ros-7-urdf/
- Build the package with colcon.
- Launch the
robot_state_publisher
launch file withros2 launch urdf_example rsp.launch.py
. - Launch
joint_state_publisher_gui
withros2 run joint_state_publisher_gui joint_state_publisher_gui
. You may need to install it if you don't have it already. - Launch RViz with
rviz2
To replicate the RViz display shown in the video you will want to
- Set your fixed frame to
world
- Add a
RobotModel
display, with the topic set to/robot_description
, and alpha set to 0.8 - Add a
TF
display with names enabled.