 |
Visual Servoing Platform
version 3.3.0
|
47 #ifndef vpMbtDistanceCylinder_HH
48 #define vpMbtDistanceCylinder_HH
50 #include <visp3/core/vpCircle.h>
51 #include <visp3/core/vpCylinder.h>
52 #include <visp3/core/vpHomogeneousMatrix.h>
53 #include <visp3/core/vpLine.h>
54 #include <visp3/core/vpPoint.h>
55 #include <visp3/mbt/vpMbHiddenFaces.h>
56 #include <visp3/mbt/vpMbtMeLine.h>
57 #include <visp3/visual_features/vpFeatureLine.h>
77 bool isTrackedCylinder;
148 const vpColor &col,
unsigned int thickness = 1,
bool displayFullModel =
false);
150 const vpColor &col,
unsigned int thickness = 1,
bool displayFullModel =
false);
186 std::vector<std::vector<double> > getFeaturesForDisplay();
188 std::vector<std::vector<double> > getModelForDisplay(
unsigned int width,
unsigned int height,
191 bool displayFullModel =
false);
198 inline std::string
getName()
const {
return name; }
200 void initInteractionMatrixError();
210 inline bool isTracked()
const {
return isTrackedCylinder; }
233 inline void setTracked(
const bool &track) { this->isTrackedCylinder = track; }
240 inline void setIndex(
unsigned int i) { index = i; }
256 void setMovingEdge(
vpMe *Me);
263 inline void setName(
const std::string &cyl_name) { this->name = cyl_name; }
270 inline void setName(
const char *cyl_name) { this->name = std::string(cyl_name); }
278 inline void setVisible(
bool _isvisible) { isvisible = _isvisible; }
vpMbtMeLine * meline1
The moving edge containers (first line of the cylinder)
bool Reinit
Indicates if the line has to be reinitialized.
Manage a cylinder used in the model-based tracker.
unsigned int nbFeature
The number of moving edges.
void setMeanWeight2(double wmean)
double radius
The radius of the cylinder.
vpCircle * cercle2
The lower circle limiting the cylinder.
void setMeanWeight1(double wmean)
Generic class defining intrinsic camera parameters.
vpMatrix L
The interaction matrix.
vpMbHiddenFaces< vpMbtPolygon > * hiddenface
Pointer to the list of faces.
void setName(const char *cyl_name)
vpColVector error
The error vector.
vpMbtMeLine * meline2
The moving edge containers (second line of the cylinder)
void getCameraParameters(vpCameraParameters &camera)
vpPoint * p2
The second extremity on the axe.
Class that defines what is a circle.
std::string getName() const
double getMeanWeight1() const
Implementation of column vector and the associated operations.
unsigned int nbFeaturel1
The number of moving edges on line 1.
Implementation of a matrix and operations on matrices.
Class that defines what is a cylinder.
vpCylinder * c
The cylinder.
vpPoint * p1
The first extremity on the axe.
vpCircle * cercle1
The upper circle limiting the cylinder.
void setVisible(bool _isvisible)
int index_polygon
Index of the face which contains the cylinder.
Class that defines a 2D line visual feature which is composed by two parameters that are and ,...
void setName(const std::string &cyl_name)
double getMeanWeight2() const
void setCameraParameters(const vpCameraParameters &camera)
bool isvisible
Indicates if the cylinder is visible or not.
unsigned int nbFeaturel2
The number of moving edges on line 2.
Class that defines what is a point.
Class to define colors available for display functionnalities.
Implementation of an homogeneous matrix and operations on such kind of matrices.
void setTracked(const bool &track)
void setIndex(unsigned int i)