Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::visualization::EntityManager Class Reference

Public Member Functions

EntityID addModel (const std::string &name)
 Add model name to manager and return id for model.
EntityID getModel (const std::string &name) const
 Given the model name return the ID.
const EntityMap & getModels () const
 Get all models being managed.
EntityID addLink (const tesseract::common::LinkId &id)
 Add link id to manager and return id for link.
EntityID getLink (const tesseract::common::LinkId &id) const
 Given the link id return the Entity ID.
const EntityLinkMap & getLinks () const
 Get all links being managed.
EntityID addVisual (const std::string &name)
 Add visual name to manager and return id for visual.
EntityID getVisual (const std::string &name) const
 Given the visual name return the ID.
const EntityMap & getVisuals () const
 Get all visuals being managed.
EntityID addSensor (const std::string &name)
 Add sensor name to manager and return id for sensor.
EntityID getSensor (const std::string &name) const
 Given the sensor name return the ID.
const EntityMap & getSensors () const
 Get all sensors being managed.
bool empty () const
 Check if empty.
void clear ()
 Clear interanl data.

Member Function Documentation

◆ addModel()

EntityID tesseract::visualization::EntityManager::addModel ( const std::string & name)

Add model name to manager and return id for model.

Parameters
nameName given to the model
Returns
The Entity ID

◆ getModel()

EntityID tesseract::visualization::EntityManager::getModel ( const std::string & name) const

Given the model name return the ID.

Parameters
nameName of the model
Returns
The Entity ID of the model, or NULL_ENTITY_ID if not found

◆ getModels()

const EntityMap & tesseract::visualization::EntityManager::getModels ( ) const

Get all models being managed.

Returns
A map of names to entity id's

◆ addLink()

EntityID tesseract::visualization::EntityManager::addLink ( const tesseract::common::LinkId & id)

Add link id to manager and return id for link.

Parameters
idLink identity
Returns
The Entity ID

◆ getLink()

EntityID tesseract::visualization::EntityManager::getLink ( const tesseract::common::LinkId & id) const

Given the link id return the Entity ID.

Parameters
idLink identity
Returns
The Entity ID of the link, or NULL_ENTITY_ID if not found

◆ getLinks()

const EntityLinkMap & tesseract::visualization::EntityManager::getLinks ( ) const

Get all links being managed.

Returns
A map of LinkId to entity id's

◆ addVisual()

EntityID tesseract::visualization::EntityManager::addVisual ( const std::string & name)

Add visual name to manager and return id for visual.

Parameters
nameName given to the visual
Returns
The Entity ID

◆ getVisual()

EntityID tesseract::visualization::EntityManager::getVisual ( const std::string & name) const

Given the visual name return the ID.

Parameters
nameName of the visual
Returns
The Entity ID of the visual, or NULL_ENTITY_ID if not found

◆ getVisuals()

const EntityMap & tesseract::visualization::EntityManager::getVisuals ( ) const

Get all visuals being managed.

Returns
A map of names to entity id's

◆ addSensor()

EntityID tesseract::visualization::EntityManager::addSensor ( const std::string & name)

Add sensor name to manager and return id for sensor.

Parameters
nameName given to the sensor
Returns
The Entity ID

◆ getSensor()

EntityID tesseract::visualization::EntityManager::getSensor ( const std::string & name) const

Given the sensor name return the ID.

Parameters
nameName of the sensor
Returns
The Entity ID of the sensor, or NULL_ENTITY_ID if not found

◆ getSensors()

const EntityMap & tesseract::visualization::EntityManager::getSensors ( ) const

Get all sensors being managed.

Returns
A map of names to entity id's