Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
ClassUsingDisplayPCL.h
1#ifndef _ClassUsingPclVisualizer_h_
2#define _ClassUsingPclVisualizer_h_
3
5#include <visp3/core/vpConfig.h>
6
7#if defined(VISP_HAVE_PCL) && defined(VISP_HAVE_PCL_VISUALIZATION) && defined(VISP_HAVE_PCL_IO)
8
9#include<visp3/core/vpColVector.h>
10#include<visp3/gui/vpDisplayPCL.h>
11
13{
14public:
15 using PointType = pcl::PointXYZ;
16private:
17 VISP_NAMESPACE_ADDRESSING vpTranslationVector m_t;
18 VISP_NAMESPACE_ADDRESSING vpRotationMatrix m_R;
19 VISP_NAMESPACE_ADDRESSING vpHomogeneousMatrix m_cMo;
20
21 double m_minX;
22 double m_maxX;
23 unsigned int m_n;
24 double m_dX; // m_dX = (m_maxX - m_minX)/(m_n-1)
25 double m_minY;
26 double m_maxY;
27 unsigned int m_m;
28 double m_dY; // m_dY = (m_maxY - m_minY)/(m_m-1)
29
30 VISP_NAMESPACE_ADDRESSING vpDisplayPCL m_visualizer;
31
40 void generateControlPoints(const double &addedNoise, const unsigned int &order, pcl::PointCloud<PointType>::Ptr &base, pcl::PointCloud<PointType>::Ptr &rotated);
41public:
49 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 });
50
52
60 void runDemo(const double &addedNoise, const unsigned int &order, const bool &useMonothread);
61};
62#endif
63#endif
void runDemo(const double &addedNoise, const unsigned int &order, const bool &useMonothread)
Demonstration on how to use a vpDisplayPCL in threaded mode.
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.
~ClassUsingDisplayPCL()
[Constructor]
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.