3D visualization

As we have seen in the previous section, there are some devices (such as stereo cameras, 3D laser, and the Kinect sensor) that provide 3D data, usually in the form of point clouds (organized or not). For this reason, it is extremely useful to have tools that visualize this type of data. In ROS, we have rviz, which we will see in the following section, that integrates an OpenGL interface with a 3D world that represents sensors' data in a modeled world. To do so, we will see that, for complex systems, the frame of each sensor and the transformations among them is of crucial importance.

Visualizing data on a 3D world using rviz

With roscore running, we only have to execute the following code to start rviz:

rosrun rviz rviz

We will ...

Get Learning ROS for Robotics Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.