Go to the documentation of this file.
22 last_update_timestamp_(0),
23 measurements_(measurement_buffer_size),
26 collision_revision_(0),
99 for(
unsigned int i = 0; i < vertices.
size(); ++i)
108 z_min = std::min<float>(z_min, p_MAP.
z -
pose_.
t.
z);
109 z_max = std::max<float>(z_max, p_MAP.
z -
pose_.
t.
z);
153 if (measurement->imageMask().getSize() >
best_measurement_->imageMask().getSize()
170 if (m->timestamp() > min_timestamp)
180 for(
unsigned int i = 0; i < num && i <
measurements_.size(); ++i)
199 static const char alphanum[] =
204 for (
int i = 0; i < 32; ++i) {
205 int n = rand() / (RAND_MAX / (
sizeof(alphanum) - 1) + 1);
void setCollision(const geo::ShapeConstPtr &collision)
void create(const std::vector< geo::Vec2f > &points, float z_min, float z_max, ConvexHull &chull, geo::Pose3D &pose)
create fill a ConvexHull and put its origin in the middle of the Convexhull
unsigned int measurements_seq_
std::map< std::string, MeasurementConvexHull > convex_hull_map_
geo::ShapeConstPtr collision_
void measurements(std::vector< MeasurementConstPtr > &measurements, double min_timestamp=0) const
boost::circular_buffer< MeasurementConstPtr > measurements_
shared_ptr< const Measurement > MeasurementConstPtr
geo::ShapeConstPtr visual_
void addMeasurement(MeasurementConstPtr measurement)
unsigned long visual_revision_
ConvexHull convex_hull_new_
void updateConvexHullFromVisual()
Entity(const UUID &id=generateID(), const TYPE &type="", const unsigned int &measurement_buffer_size=5)
geo::ShapeConstPtr collision() const
void createAbsolute(const std::vector< geo::Vec2f > &points, float z_min, float z_max, ConvexHull &chull)
createAbsolute fill a ConvexHull with its origin in map frame.
MeasurementConstPtr best_measurement_
void setVisual(const geo::ShapeConstPtr &visual)
geo::ShapeConstPtr visual() const
MeasurementConstPtr lastMeasurement() const
unsigned long collision_revision_
std::vector< geo::Vec2f > points