Visualizing a robot model in RViz
In this section, you will discover RViz. RViz allows you to visualize a robot model in 3D and contains many plugins and functionalities that will help you develop your robotics applications. With RViz, you will be able to visualize the TFs for a robot, so we can start to understand what they are.
As we haven’t created a robot model yet, we will use one from an existing ROS 2 package named urdf_tutorial
. We will load a robot model in RViz and learn how to navigate the software.
Let’s start by setting up everything we need for this chapter.
Installation and setup
First of all, there is no need to install RViz. It was already included when you installed ROS 2 at the beginning of the book (with the sudo apt install
ros-<distro>-desktop
command).
To visualize TFs for a robot model on RViz, we will install a new ROS package named urdf_tutorial
. This package contains some existing launch files and robot model files (how...