Table of Contents

User Guide for the Visualization Component

ComponentVisualization is a 3D visualization component. It is used to visualize communication objects like a base pose, a laser scan, a RGBD image, a RGB image, a depth image, etc. It uses the MRPT library and the source code of ComponentVisualization is available here. To use ComponentVisualization in a system, it must be added to the corresponding system project. Upon starting the system, ComponentVisualization then starts along with the other components used in the system.

Adding the Visualization Component to a System Project

Adding ComponentVisualization to a system project is similar to adding any other SmartSoft component Ref.

Do not connect ports of ComponentVisualization to ports of any other component. The visualization component dynamically and automatically connects at run-time to the components according to your selected visualizations.

Using the Visualization Component

ComponentVisualization has client ports which must be connected/wired to server ports to start visualizing the communication objects. And the client port must be disconnected to stop visualizing the communication objects. This connection and disconnection can be done either manually or by using skills in the Behavior project. This section describes connecting and disconnecting ports manually only. Advanced user can use skills to connect and disconnect the client port of ComponentVisualization in runtime.

Upon executing the system, ComponentVisualization starts and you can see the ComponentVisualization terminal and SmartVisualization window as shown below:

ComponentVisualization terminal lists the available visualization possibilities (i.e client ports which receive data and visualizes them) and prompts the user to select the option connect or disconnect.

Start the Visualization of a Communication Object

Communication objects except RGB and depth images are visualized in the SmartVisualization window. In case of RGB and depth image visualization, a new window will be opened where the image is displayed.

Stop the Visualization of a Communication Object

Example 1

We show how to start and stop visualizing the laser scan in example system project SystemWebotsRobotino3Navigation. Deploy and execute the system. Find the terminal of ComponentVisualization.

Start the Visualization of a Laser Scan

In the terminal of ComponentVisualization, select the connect option.

Select the laser client.

Select one of the listed server ports.

Now laser client port is connected and start visualizing the received laser scans. Observe the visualization window.

Stop the Visualization of a Laser Scan

In the terminal of ComponentVisualization, select the disconnect option.

Select the client, which you want to disconnect.

Now the laser client is disconnected and observe the visualization window.

Example 2

The following picture show a environment from webots and the visualization of RGBD(point cloud), RGB, Depth images using ComponentVisualization.

Interacting with the 3D Visualization Window

Visualization window is based on MRPT library and use the following controls to move around the window.

Acknowledgment

Nayabrasul Shaik

DokuWiki Appliance - Powered by TurnKey Linux