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
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 ComponentVisualization to a system project is similar to adding any other SmartSoft component Ref.
ComponentVisualizationinto the system project.
ComponentVisualizationto the system architecture.
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.
ComponentVisualizationinto the system architecture.
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.
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.
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.
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.
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.
The following picture show a environment from webots and the visualization of RGBD(point cloud), RGB, Depth images using ComponentVisualization.
Visualization window is based on MRPT library and use the following controls to move around the window.