Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
tesseract_visualization::EntityManager Class Reference

#include <entity_manager.h>

Collaboration diagram for tesseract_visualization::EntityManager:
Collaboration graph
[legend]

Public Member Functions

EntityID addModel (const std::string &name)
 Add model name to manager and return id for model. More...
 
EntityID getModel (const std::string &name) const
 Given the model name return the ID. More...
 
const EntityMapgetModels () const
 Get all models being managed. More...
 
EntityID addLink (const std::string &name)
 Add link name to manager and return id for link. More...
 
EntityID getLink (const std::string &name) const
 Given the link name return the ID. More...
 
const EntityMapgetLinks () const
 Get all links being managed. More...
 
EntityID addVisual (const std::string &name)
 Add visual name to manager and return id for visual. More...
 
EntityID getVisual (const std::string &name) const
 Given the visual name return the ID. More...
 
const EntityMapgetVisuals () const
 Get all visuals being managed. More...
 
EntityID addSensor (const std::string &name)
 Add sensor name to manager and return id for sensor. More...
 
EntityID getSensor (const std::string &name) const
 Given the sensor name return the ID. More...
 
const EntityMapgetSensors () const
 Get all sensors being managed. More...
 
bool empty () const
 Check if empty. More...
 
void clear ()
 Clear interanl data. More...
 

Private Attributes

EntityMap link_id_map_
 
EntityMap model_id_map_
 
EntityMap visual_id_map_
 
EntityMap sensor_id_map_
 
EntityID entity_counter_ { 1000 }
 

Member Function Documentation

◆ addLink()

EntityID tesseract_visualization::EntityManager::addLink ( const std::string &  name)

Add link name to manager and return id for link.

Parameters
nameName given to the link
Returns
The Entity ID

◆ 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

◆ 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

◆ 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

◆ clear()

void tesseract_visualization::EntityManager::clear ( )

Clear interanl data.

◆ empty()

bool tesseract_visualization::EntityManager::empty ( ) const

Check if empty.

◆ getLink()

EntityID tesseract_visualization::EntityManager::getLink ( const std::string &  name) const

Given the link name return the ID.

Parameters
nameName of the link
Returns
The ID of the link (if < 1000 it was not found)

◆ getLinks()

const EntityMap & tesseract_visualization::EntityManager::getLinks ( ) const

Get all links being managed.

Returns
A map of names to entity id's

◆ 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 ID of the model (if < 1000 it was not found)

◆ getModels()

const EntityMap & tesseract_visualization::EntityManager::getModels ( ) const

Get all models being managed.

Returns
A map of names to entity id's

◆ 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 ID of the visual (if < 1000 it was not found)

◆ getSensors()

const EntityMap & tesseract_visualization::EntityManager::getSensors ( ) const

Get all sensors being managed.

Returns
A map of names to entity id's

◆ 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 ID of the visual (if < 1000 it was not found)

◆ getVisuals()

const EntityMap & tesseract_visualization::EntityManager::getVisuals ( ) const

Get all visuals being managed.

Returns
A map of names to entity id's

Member Data Documentation

◆ entity_counter_

EntityID tesseract_visualization::EntityManager::entity_counter_ { 1000 }
private

Start entity counter to avoid clashing with gazebo

◆ link_id_map_

EntityMap tesseract_visualization::EntityManager::link_id_map_
private

Stores entity id for each link

◆ model_id_map_

EntityMap tesseract_visualization::EntityManager::model_id_map_
private

Stores entity id for each model

◆ sensor_id_map_

EntityMap tesseract_visualization::EntityManager::sensor_id_map_
private

Stores entity id for each sensor

◆ visual_id_map_

EntityMap tesseract_visualization::EntityManager::visual_id_map_
private

Stores entity id for each visual


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