Rviz2 use

Brief introduction and use of rviz2

Rviz2 is a visualization tool for displaying messages in the robot environment, providing a 3D perspective to view the robot's status and activities. It can help developers better understand the current status and activities of the robot, as well as other visual messages. Rviz2 provides a series of visualization tools that can help developers better understand the status and activities of robots, such as visual coordinate systems, laser scanning messages, point cloud messages, robot models, etc. Using Rviz2, robotic systems can be easily viewed and debugged to better achieve robotic goals.

1 Introduction to rviz2

The successful installation of ros2 indicates that rviz2 is also successfully installed together, because the installation of ros2 includes rviz2.

Open a new terminal (shortcutCtrl+Alt+T)enter the command to open rviz2

Open rviz2 and display the following interface:

img

1.1 Introduction of each area

We only give a rough introduction in this part. If you want to know more detailed content, you can go to the user guide to view it.

2 Prerequisites

Then enter the user password(Note: The password is not displayed, just enter it correctly).

3 Simple use

Launch through launch file

This example is based on the fact that you have completed Environment Setup and successfully copied the company's code from GitHub.

Open a console terminal (shortcut key Ctrl+Alt+T) Enter the following command to configure ROS2 environment.

Enter again:

Open rviz2 and get the following result:

img

If you want to know more information about rviz, you can go to the official documentation to view it.