Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
ClassUsingDisplayPCL Class Reference

#include <ClassUsingDisplayPCL.h>

Public Types

using PointType = pcl::PointXYZ

Public Member Functions

 ClassUsingDisplayPCL (std::pair< double, double > xlimits={ -2.5, 2.5 }, std::pair< double, double > ylimits={ -2.5, 2.5 }, std::pair< unsigned int, unsigned int > nbPoints={ 50, 50 })
 ~ClassUsingDisplayPCL ()
void runDemo (const double &addedNoise, const unsigned int &order, const bool &useMonothread)

Detailed Description

Member Typedef Documentation

◆ PointType

using ClassUsingDisplayPCL::PointType = pcl::PointXYZ
Examples
ClassUsingDisplayPCL.h.

Definition at line 15 of file ClassUsingDisplayPCL.h.

Constructor & Destructor Documentation

◆ ClassUsingDisplayPCL()

ClassUsingDisplayPCL::ClassUsingDisplayPCL ( std::pair< double, double > xlimits = { -2.5,2.5 },
std::pair< double, double > ylimits = { -2.5,2.5 },
std::pair< unsigned int, unsigned int > nbPoints = { 50,50 } )

Construct a new object.

[Z coordinates computation]

Parameters
xlimitsA pair defining the <min, max> values of X-coordinates of the generated surface.
ylimitsA pair defining the <min, max> values of Y-coordinates of the generated surface.
nbPointsThe number of points along the <X-axis, Y-axis> that will be generated.

[Constructor]

Examples
ClassUsingDisplayPCL.cpp, and ClassUsingDisplayPCL.h.

Definition at line 41 of file ClassUsingDisplayPCL.cpp.

◆ ~ClassUsingDisplayPCL()

ClassUsingDisplayPCL::~ClassUsingDisplayPCL ( )

[Constructor]

Examples
ClassUsingDisplayPCL.cpp, and ClassUsingDisplayPCL.h.

Definition at line 58 of file ClassUsingDisplayPCL.cpp.

Member Function Documentation

◆ runDemo()

void ClassUsingDisplayPCL::runDemo ( const double & addedNoise,
const unsigned int & order,
const bool & useMonothread )

Demonstration on how to use a vpDisplayPCL in threaded mode.

[Surface generator]

Parameters
addedNoiseStandard deviation of the noise added to the moved surface.
orderThe order of the polynomial surface that is generated.
useMonothreadIf true, use the monothread version of the viewer.

[Inserting point clouds]

[Inserting point clouds]

[Starting display thread]

[Starting display thread]

[Updating point clouds used by display thread]

[Updating point clouds used by display thread]

[Display monothread]

[Display monothread]

Examples
ClassUsingDisplayPCL.cpp, and ClassUsingDisplayPCL.h.

Definition at line 111 of file ClassUsingDisplayPCL.cpp.

References vpKeyboard::getchar(), vpKeyboard::kbhit(), vpTime::measureTimeMs(), vpColorBlindFriendlyPalette::to_vpColor(), and vpTime::wait().