Visual Servoing Platform
version 3.7.0
Toggle main menu visibility
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
12
class
ClassUsingDisplayPCL
13
{
14
public
:
15
using
PointType
= pcl::PointXYZ;
16
private
:
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);
41
public
:
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
51
~ClassUsingDisplayPCL
();
52
60
void
runDemo
(
const
double
&addedNoise,
const
unsigned
int
&order,
const
bool
&useMonothread);
61
};
62
#endif
63
#endif
ClassUsingDisplayPCL::runDemo
void runDemo(const double &addedNoise, const unsigned int &order, const bool &useMonothread)
Demonstration on how to use a vpDisplayPCL in threaded mode.
Definition
ClassUsingDisplayPCL.cpp:111
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.
Definition
ClassUsingDisplayPCL.cpp:41
ClassUsingDisplayPCL::PointType
pcl::PointXYZ PointType
Definition
ClassUsingDisplayPCL.h:15
ClassUsingDisplayPCL::~ClassUsingDisplayPCL
~ClassUsingDisplayPCL()
[Constructor]
Definition
ClassUsingDisplayPCL.cpp:58
vpDisplayPCL
Definition
vpDisplayPCL.h:97
vpHomogeneousMatrix
Implementation of an homogeneous matrix and operations on such kind of matrices.
Definition
vpHomogeneousMatrix.h:221
vpRotationMatrix
Implementation of a rotation matrix and operations on such kind of matrices.
Definition
vpRotationMatrix.h:130
vpTranslationVector
Class that consider the case of a translation vector.
Definition
vpTranslationVector.h:119
tutorial
gui
pcl-visualizer
ClassUsingDisplayPCL.h
Generated by
1.17.0