Visual Servoing Platform  version 3.6.1 under development (2024-10-13)
ClassUsingPclViewer.h
#ifndef _ClassUsingPclVisualizer_h_
#define _ClassUsingPclVisualizer_h_
#include <visp3/core/vpConfig.h>
#if defined(VISP_HAVE_PCL) && defined(VISP_HAVE_PCL_VISUALIZATION)
#include<visp3/core/vpColVector.h>
#include<visp3/gui/vpPclViewer.h>
{
private:
VISP_NAMESPACE_ADDRESSING vpTranslationVector m_t;
VISP_NAMESPACE_ADDRESSING vpRotationMatrix m_R;
VISP_NAMESPACE_ADDRESSING vpHomogeneousMatrix m_cMo;
double m_minX;
double m_maxX;
unsigned int m_n;
double m_dX; // m_dX = (m_maxX - m_minX)/(m_n-1)
double m_minY;
double m_maxY;
unsigned int m_m;
double m_dY; // m_dY = (m_maxY - m_minY)/(m_m-1)
VISP_NAMESPACE_ADDRESSING vpPclViewer m_visualizer;
std::pair<VISP_NAMESPACE_ADDRESSING vpPclViewer::pclPointCloudPointXYZRGBPtr, VISP_NAMESPACE_ADDRESSING vpPclViewer::pclPointCloudPointXYZRGBPtr> generateControlPoints(const double &addedNoise, const unsigned int &order, VISP_NAMESPACE_ADDRESSING vpColVector &confidenceWeights);
public:
ClassUsingPclViewer(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 });
void blockingMode(const double &addedNoise, const unsigned int &order);
void threadedMode(const double &addedNoise, const unsigned int &order);
};
#endif
#endif
void threadedMode(const double &addedNoise, const unsigned int &order)
Demonstration on how to use a vpPclViewer in threaded mode.
~ClassUsingPclViewer()
[Constructor]
ClassUsingPclViewer(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.
void blockingMode(const double &addedNoise, const unsigned int &order)
Demonstration on how to use a vpPclViewer in blocking mode, i.e. we expect an input from the user aft...
Implementation of column vector and the associated operations.
Definition: vpColVector.h:191
Implementation of an homogeneous matrix and operations on such kind of matrices.
Implementation of a rotation matrix and operations on such kind of matrices.
Class that consider the case of a translation vector.