10 _id(
Feature::_feature_id_generator++), _first_location(0.0, 0.0, 0.0), _birthday(
71 "Feature.getLastLocation",
72 "Feature with Id " << this->
_id <<
" has no last location.");
86 "Feature.getNextToLastLocation",
87 "Feature with Id " << this->
_id <<
" has no next to last location.");
103 if ((
int)this->
_trajectory.size() - frames_to_last - 1 < 0)
106 "Feature.getNToLastLocation",
107 "Feature with Id " << this->
_id <<
" was not born at that time (" << frames_to_last <<
" frames to last < feature age = " << this->
_trajectory.size() <<
").");
Location getFirstLocation() const
virtual Feature * doClone() const
boost::shared_ptr< Feature > Ptr
boost::tuple< double, double, double > Location
Location getNToLastLocation(int frames_to_last) const
#define ROS_ERROR_STREAM_NAMED(name, args)
void addLocation(Location fl_in)
static Id _feature_id_generator
Minimal class that represents a Point of Interest by an ID and stores its successive locations $Autho...
std::pair< Location, Location > LocationPair
const Trajectory & getTrajectory() const
Location getLastLocation() const
size_t getFeatureAge() const
std::vector< Location > Trajectory
void setFeatureBirthday(int feature_birthday)
Location getNextToLastLocation() const
int getFeatureBirthday() const
LocationPair getTwoLastLocations() const