Public Types | Public Member Functions | Private Attributes | List of all members
hector_object_tracker::ObjectModel Class Reference

#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 tf::Pose &pose, const Eigen::Matrix3f &covariance, const std::string &class_id, const std::string &name, 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 &)
 
ObjectModeloperator= (const ObjectModel &other)
 
ObjectModeloperator= (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
 

Detailed Description

Definition at line 19 of file ObjectModel.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

hector_object_tracker::ObjectModel::ObjectModel ( const std::string &  frame_id = std::string())

Definition at line 7 of file ObjectModel.cpp.

hector_object_tracker::ObjectModel::ObjectModel ( const ObjectModel other)

Definition at line 12 of file ObjectModel.cpp.

hector_object_tracker::ObjectModel::~ObjectModel ( )
virtual

Definition at line 17 of file ObjectModel.cpp.

Member Function Documentation

ObjectPtr hector_object_tracker::ObjectModel::add ( const std::string &  class_id = "",
const std::string &  object_id = "" 
)

Definition at line 86 of file ObjectModel.cpp.

ObjectPtr hector_object_tracker::ObjectModel::add ( ObjectPtr  object)

Definition at line 90 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 hector_object_tracker::ObjectModel::getBestCorrespondence ( ObjectPtr object,
const tf::Pose pose,
const Eigen::Matrix3f &  covariance,
const std::string &  class_id,
const std::string &  name,
float  max_distance = 0.0 
) const

Definition at line 143 of file ObjectModel.cpp.

std_msgs::Header hector_object_tracker::ObjectModel::getHeader ( ) const

Definition at line 48 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::getMessage ( hector_worldmodel_msgs::ObjectModel &  model) const

Definition at line 62 of file ObjectModel.cpp.

hector_worldmodel_msgs::ObjectModelPtr hector_object_tracker::ObjectModel::getMessage ( ) const

Definition at line 73 of file ObjectModel.cpp.

ObjectPtr hector_object_tracker::ObjectModel::getObject ( const std::string &  object_id) const

Definition at line 38 of file ObjectModel.cpp.

ObjectList hector_object_tracker::ObjectModel::getObjects ( ) const

Definition at line 20 of file ObjectModel.cpp.

ObjectList hector_object_tracker::ObjectModel::getObjects ( const std::string &  class_id) const

Definition at line 26 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::getVisualization ( visualization_msgs::MarkerArray &  markers) const

Definition at line 134 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::lock ( ) const
inline

Definition at line 56 of file ObjectModel.h.

void hector_object_tracker::ObjectModel::merge ( const ObjectPtr other,
tf::TransformListener tf,
const std::string &  prefix = std::string() 
)

Definition at line 182 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::mergeWith ( const ObjectModel other,
tf::TransformListener tf,
const std::string &  prefix = std::string() 
)

Definition at line 176 of file ObjectModel.cpp.

ObjectModel & hector_object_tracker::ObjectModel::operator= ( const ObjectModel other)

Definition at line 107 of file ObjectModel.cpp.

ObjectModel & hector_object_tracker::ObjectModel::operator= ( const hector_worldmodel_msgs::ObjectModel &  other)

Definition at line 114 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::remove ( ObjectPtr  object)

Definition at line 95 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::remove ( iterator  it)

Definition at line 104 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::reset ( )

Definition at line 79 of file ObjectModel.cpp.

void hector_object_tracker::ObjectModel::setFrameId ( const std::string &  frame_id)

Definition at line 58 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.

Member Data Documentation

std_msgs::Header hector_object_tracker::ObjectModel::header
private

Definition at line 66 of file ObjectModel.h.

ObjectList hector_object_tracker::ObjectModel::objects
private

Definition at line 67 of file ObjectModel.h.

boost::recursive_mutex hector_object_tracker::ObjectModel::objectsMutex
mutableprivate

Definition at line 68 of file ObjectModel.h.


The documentation for this class was generated from the following files:


hector_object_tracker
Author(s): Johannes Meyer
autogenerated on Mon Jun 10 2019 13:35:13