Visual Servoing Platform
version 3.6.1 under development (2024-12-03)
|
#include <visp3/gui/vpDisplayPCL.h>
Public Member Functions | |
vpDisplayPCL (int posx=0, int posy=0, const std::string &window_name="") | |
vpDisplayPCL (unsigned int width, unsigned int height, int posx=0, int posy=0, const std::string &window_name="") | |
~vpDisplayPCL () | |
void | setVerbose (bool verbose) |
void | startThread (std::mutex &mutex, pcl::PointCloud< pcl::PointXYZ >::Ptr pointcloud) |
void | startThread (std::mutex &mutex, pcl::PointCloud< pcl::PointXYZRGB >::Ptr pointcloud) |
void | setPosition (int posx, int posy) |
void | setWindowName (const std::string &window_name) |
void | stop () |
This class enables real time plotting of 3D point clouds. It relies on the PCL library. To see how to install PCL library, please refer to the Point Cloud Library (PCL) section.
Definition at line 55 of file vpDisplayPCL.h.
BEGIN_VISP_NAMESPACE vpDisplayPCL::vpDisplayPCL | ( | int | posx = 0 , |
int | posy = 0 , |
||
const std::string & | window_name = "" |
||
) |
Default constructor. By default, viewer size is set to 640 x 480.
Definition at line 45 of file vpDisplayPCL.cpp.
vpDisplayPCL::vpDisplayPCL | ( | unsigned int | width, |
unsigned int | height, | ||
int | posx = 0 , |
||
int | posy = 0 , |
||
const std::string & | window_name = "" |
||
) |
Constructor able to initialize the display window size.
[in] | width | : Point cloud viewer width. |
[in] | height | : Point cloud viewer height. |
[in] | posx | : Position along X-axis. |
[in] | posy | : Position along Y-axis. |
[in] | window_name | : Window name. |
Definition at line 58 of file vpDisplayPCL.cpp.
vpDisplayPCL::~vpDisplayPCL | ( | ) |
Destructor that stops and join the viewer thread if not already done.
Definition at line 68 of file vpDisplayPCL.cpp.
References stop().
void vpDisplayPCL::setPosition | ( | int | posx, |
int | posy | ||
) |
Set the position of the viewer window. This function has to be called prior startThread().
[in] | posx | : Position along x. |
[in] | posy | : Position along y. |
Definition at line 189 of file vpDisplayPCL.cpp.
void vpDisplayPCL::setVerbose | ( | bool | verbose | ) |
Enable/disable verbose mode.
[in] | verbose | : When true verbose mode is enable. |
Definition at line 226 of file vpDisplayPCL.cpp.
void vpDisplayPCL::setWindowName | ( | const std::string & | window_name | ) |
Set the name of the viewer windows. This function has to be called prior startThread().
[in] | window_name | : Window name to set. |
Definition at line 203 of file vpDisplayPCL.cpp.
void vpDisplayPCL::startThread | ( | std::mutex & | mutex, |
pcl::PointCloud< pcl::PointXYZ >::Ptr | pointcloud | ||
) |
Start the viewer thread able to display a point cloud.
[in,out] | mutex | : Shared mutex. |
[in] | pointcloud | : Point cloud to display. |
Definition at line 163 of file vpDisplayPCL.cpp.
void vpDisplayPCL::startThread | ( | std::mutex & | mutex, |
pcl::PointCloud< pcl::PointXYZRGB >::Ptr | pointcloud_color | ||
) |
Start the viewer thread able to display a textured point cloud.
[in,out] | mutex | : Shared mutex. |
[in] | pointcloud_color | : Textured point cloud to display. |
Definition at line 175 of file vpDisplayPCL.cpp.
void vpDisplayPCL::stop | ( | ) |
Stop the viewer thread and join.
Definition at line 211 of file vpDisplayPCL.cpp.
Referenced by ~vpDisplayPCL().