24 #ifndef MULTIMARKERINITIALIZER_H 25 #define MULTIMARKERINITIALIZER_H 35 #include <Eigen/StdVector> 61 unsigned long GetId()
const {
return _id; }
62 void SetId(
unsigned long _id) { this->_id = _id; }
67 std::vector<std::vector<MarkerMeasurement, Eigen::aligned_allocator<MarkerMeasurement> > >
measurements;
68 typedef std::vector<std::vector<MarkerMeasurement, Eigen::aligned_allocator<MarkerMeasurement> > >::iterator
MeasurementIterator;
72 bool updateMarkerPoses(std::vector<
MarkerMeasurement, Eigen::aligned_allocator<MarkerMeasurement> > &markers,
const Pose &pose);
95 void MeasurementsAdd(
const std::vector<M, Eigen::aligned_allocator<M> > *markers) {
98 MeasurementsAdd(begin, end);
104 void MeasurementsReset();
115 const std::vector<MarkerMeasurement, Eigen::aligned_allocator<MarkerMeasurement> >&
getMeasurementMarkers(
int measurement) {
116 return measurements[measurement];
122 return _GetPose(m_begin, m_end, cam, pose, NULL);
double getMeasurementPose(int measurement, Camera *cam, Pose &pose)
unsigned long GetId() const
Get id for this marker This is used e.g. in MarkerDetector to associate a marker id with an appropria...
Initializes multi marker by estimating their relative positions from one or more images.
Base class for using MultiMarker.
Simple Camera class for calculating distortions, orientation or projections with pre-calibrated camer...
std::vector< std::vector< MarkerMeasurement, Eigen::aligned_allocator< MarkerMeasurement > > >::iterator MeasurementIterator
std::vector< bool > marker_detected
void MeasurementsAdd(const std::vector< M, Eigen::aligned_allocator< M > > *markers)
Pose representation derived from the Rotation class
void SetId(unsigned long _id)
Basic 2D Marker functionality.
MarkerMeasurement that holds the maker id.
int getMeasurementCount()
std::vector< std::vector< MarkerMeasurement, Eigen::aligned_allocator< MarkerMeasurement > > > measurements
Iterator type for traversing templated Marker vector without the template.
This file implements a multi-marker.
FilterMedian * pointcloud_filtered
Iterator implementation for traversing templated Marker vector without the template.
const std::vector< MarkerMeasurement, Eigen::aligned_allocator< MarkerMeasurement > > & getMeasurementMarkers(int measurement)