Setting up RViz for the navigation stack – visualization
It will always be good practice to visualize all possible data and topics that the navigation stack has used. In this section, we will discuss configuring RViz to visualize the data sent by each of these topics and examine their correctness.
Getting ready
We will run the following commands in two separate terminals to start the navigation stack with our simulated mobile robot in Gazebo, with the map of the virtual environment and the RViz tool for visualization:
$ roslaunch chapter7_tutorials chapter7_configuration_gazebo.launch $ roslaunch chapter7_tutorials move_base.launch
As seen in the previous section, we will get the same window that was shown in the preceding screenshot for RViz, and we will have the Gazebo virtual world and simulated mobile robot in another window.
How it works…
We are going to discuss how to configure each of the following topics in RViz, which are crucial for autonomous mobile robot running with the ROS navigation...