#include <ObjectModel.h>
Public Types | |
typedef ObjectList::const_iterator | const_iterator |
typedef ObjectList::iterator | iterator |
Public Member Functions | |
ObjectPtr | add (const std::string &class_id="", const std::string &object_id="") |
ObjectPtr | add (ObjectPtr object) |
iterator | begin () |
const_iterator | begin () const |
ObjectPtr | create (const std::string &class_id="", const std::string &object_id="") |
iterator | end () |
const_iterator | end () const |
float | getBestCorrespondence (ObjectPtr &object, const Eigen::Vector3f &position, const Eigen::Matrix3f &covariance, const std::string &class_id, float max_distance=0.0) const |
std_msgs::Header | getHeader () const |
void | getMessage (hector_worldmodel_msgs::ObjectModel &model) const |
hector_worldmodel_msgs::ObjectModelPtr | getMessage () const |
ObjectPtr | getObject (const std::string &object_id) const |
ObjectList | getObjects () const |
ObjectList | getObjects (const std::string &class_id) const |
void | getVisualization (visualization_msgs::MarkerArray &markers) const |
void | lock () const |
void | merge (const ObjectPtr &other, tf::TransformListener &tf, const std::string &prefix=std::string()) |
void | mergeWith (const ObjectModel &other, tf::TransformListener &tf, const std::string &prefix=std::string()) |
ObjectModel (const std::string &frame_id=std::string()) | |
ObjectModel (const ObjectModel &) | |
ObjectModel & | operator= (const ObjectModel &other) |
ObjectModel & | operator= (const hector_worldmodel_msgs::ObjectModel &other) |
void | remove (ObjectPtr object) |
void | remove (iterator it) |
void | reset () |
void | setFrameId (const std::string &frame_id) |
bool | try_lock () const |
void | unlock () const |
virtual | ~ObjectModel () |
Private Attributes | |
std_msgs::Header | header |
ObjectList | objects |
boost::recursive_mutex | objectsMutex |
Definition at line 19 of file ObjectModel.h.
typedef ObjectList::const_iterator hector_object_tracker::ObjectModel::const_iterator |
Definition at line 23 of file ObjectModel.h.
typedef ObjectList::iterator hector_object_tracker::ObjectModel::iterator |
Definition at line 22 of file ObjectModel.h.
ObjectModel::ObjectModel | ( | const std::string & | frame_id = std::string() | ) |
Definition at line 6 of file ObjectModel.cpp.
ObjectModel::ObjectModel | ( | const ObjectModel & | other | ) |
Definition at line 11 of file ObjectModel.cpp.
ObjectModel::~ObjectModel | ( | ) | [virtual] |
Definition at line 16 of file ObjectModel.cpp.
ObjectPtr ObjectModel::add | ( | const std::string & | class_id = "" , |
const std::string & | object_id = "" |
||
) |
Definition at line 85 of file ObjectModel.cpp.
ObjectPtr ObjectModel::add | ( | ObjectPtr | object | ) |
Definition at line 89 of file ObjectModel.cpp.
iterator hector_object_tracker::ObjectModel::begin | ( | ) | [inline] |
Definition at line 42 of file ObjectModel.h.
const_iterator hector_object_tracker::ObjectModel::begin | ( | ) | const [inline] |
Definition at line 44 of file ObjectModel.h.
ObjectPtr hector_object_tracker::ObjectModel::create | ( | const std::string & | class_id = "" , |
const std::string & | object_id = "" |
||
) |
iterator hector_object_tracker::ObjectModel::end | ( | ) | [inline] |
Definition at line 43 of file ObjectModel.h.
const_iterator hector_object_tracker::ObjectModel::end | ( | ) | const [inline] |
Definition at line 45 of file ObjectModel.h.
float ObjectModel::getBestCorrespondence | ( | ObjectPtr & | object, |
const Eigen::Vector3f & | position, | ||
const Eigen::Matrix3f & | covariance, | ||
const std::string & | class_id, | ||
float | max_distance = 0.0 |
||
) | const |
Definition at line 142 of file ObjectModel.cpp.
std_msgs::Header ObjectModel::getHeader | ( | ) | const |
Definition at line 47 of file ObjectModel.cpp.
void ObjectModel::getMessage | ( | hector_worldmodel_msgs::ObjectModel & | model | ) | const |
Definition at line 61 of file ObjectModel.cpp.
Definition at line 72 of file ObjectModel.cpp.
ObjectPtr ObjectModel::getObject | ( | const std::string & | object_id | ) | const |
Definition at line 37 of file ObjectModel.cpp.
ObjectList ObjectModel::getObjects | ( | ) | const |
Definition at line 19 of file ObjectModel.cpp.
ObjectList ObjectModel::getObjects | ( | const std::string & | class_id | ) | const |
Definition at line 25 of file ObjectModel.cpp.
void ObjectModel::getVisualization | ( | visualization_msgs::MarkerArray & | markers | ) | const |
Definition at line 133 of file ObjectModel.cpp.
void hector_object_tracker::ObjectModel::lock | ( | ) | const [inline] |
Definition at line 56 of file ObjectModel.h.
void ObjectModel::merge | ( | const ObjectPtr & | other, |
tf::TransformListener & | tf, | ||
const std::string & | prefix = std::string() |
||
) |
Definition at line 169 of file ObjectModel.cpp.
void ObjectModel::mergeWith | ( | const ObjectModel & | other, |
tf::TransformListener & | tf, | ||
const std::string & | prefix = std::string() |
||
) |
Definition at line 163 of file ObjectModel.cpp.
ObjectModel & ObjectModel::operator= | ( | const ObjectModel & | other | ) |
Definition at line 106 of file ObjectModel.cpp.
ObjectModel & ObjectModel::operator= | ( | const hector_worldmodel_msgs::ObjectModel & | other | ) |
Definition at line 113 of file ObjectModel.cpp.
void ObjectModel::remove | ( | ObjectPtr | object | ) |
Definition at line 94 of file ObjectModel.cpp.
void ObjectModel::remove | ( | iterator | it | ) |
Definition at line 103 of file ObjectModel.cpp.
void ObjectModel::reset | ( | ) |
Definition at line 78 of file ObjectModel.cpp.
void ObjectModel::setFrameId | ( | const std::string & | frame_id | ) |
Definition at line 57 of file ObjectModel.cpp.
bool hector_object_tracker::ObjectModel::try_lock | ( | ) | const [inline] |
Definition at line 57 of file ObjectModel.h.
void hector_object_tracker::ObjectModel::unlock | ( | ) | const [inline] |
Definition at line 58 of file ObjectModel.h.
Definition at line 66 of file ObjectModel.h.
Definition at line 67 of file ObjectModel.h.
boost::recursive_mutex hector_object_tracker::ObjectModel::objectsMutex [mutable, private] |
Definition at line 68 of file ObjectModel.h.