46 #include <visp3/core/vpConfig.h>
47 #include "visp3/sensor/vpScanPoint.h"
70 : listScanPoints(), startTimestamp(0), endTimestamp(0), measurementId(0), numSteps(0), startAngle(0), stopAngle(0),
75 : listScanPoints(scan.listScanPoints), startTimestamp(0), endTimestamp(0), measurementId(0), numSteps(0),
76 startAngle(0), stopAngle(0), numPoints(0)
78 startTimestamp = scan.startTimestamp;
79 endTimestamp = scan.endTimestamp;
80 measurementId = scan.measurementId;
81 numSteps = scan.numSteps;
82 startAngle = scan.startAngle;
83 stopAngle = scan.stopAngle;
84 numPoints = scan.numPoints;
91 inline void clear() { listScanPoints.clear(); }
93 inline std::vector<vpScanPoint>
getScanPoints() {
return listScanPoints; }
95 #if VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11
102 inline void setStartTimestamp(
const double &start_timestamp) { this->startTimestamp = start_timestamp; }
104 inline void setEndTimestamp(
const double &end_timestamp) { this->endTimestamp = end_timestamp; }
106 inline void setNumSteps(
const unsigned short &num_steps) { this->numSteps = num_steps; }
108 inline void setStartAngle(
const short &start_angle) { this->startAngle = start_angle; }
110 inline void setStopAngle(
const short &stop_angle) { this->stopAngle = stop_angle; }
112 inline void setNumPoints(
const unsigned short &num_points) { this->numPoints = num_points; }
119 std::vector<vpScanPoint> listScanPoints;
120 double startTimestamp;
122 unsigned short measurementId;
123 unsigned short numSteps;
126 unsigned short numPoints;
Implements a laser scan data structure that contains especially the list of scanned points that have ...
void setNumPoints(const unsigned short &num_points)
void setStopAngle(const short &stop_angle)
void setMeasurementId(const unsigned short &id)
void setNumSteps(const unsigned short &num_steps)
double getStartTimestamp()
void setStartTimestamp(const double &start_timestamp)
void addPoint(const vpScanPoint &p)
vpLaserScan(const vpLaserScan &scan)
void setEndTimestamp(const double &end_timestamp)
void setStartAngle(const short &start_angle)
vpLaserScan & operator=(const vpLaserScan &)=default
std::vector< vpScanPoint > getScanPoints()
Class that defines a single laser scanner point.