#include <entity_manager.h>
Public Member Functions | |
EntityID | addLink (const std::string &name) |
Add link name to manager and return id for link. More... | |
EntityID | addModel (const std::string &name) |
Add model name to manager and return id for model. More... | |
EntityID | addSensor (const std::string &name) |
Add sensor name to manager and return id for sensor. More... | |
EntityID | addVisual (const std::string &name) |
Add visual name to manager and return id for visual. More... | |
void | clear () |
Clear interanl data. More... | |
bool | empty () const |
Check if empty. More... | |
EntityID | getLink (const std::string &name) const |
Given the link name return the ID. More... | |
const EntityMap & | getLinks () const |
Get all links being managed. More... | |
EntityID | getModel (const std::string &name) const |
Given the model name return the ID. More... | |
const EntityMap & | getModels () const |
Get all models being managed. More... | |
EntityID | getSensor (const std::string &name) const |
Given the sensor name return the ID. More... | |
const EntityMap & | getSensors () const |
Get all sensors being managed. More... | |
EntityID | getVisual (const std::string &name) const |
Given the visual name return the ID. More... | |
const EntityMap & | getVisuals () const |
Get all visuals being managed. More... | |
Private Attributes | |
EntityID | entity_counter_ { 1000 } |
EntityMap | link_id_map_ |
EntityMap | model_id_map_ |
EntityMap | sensor_id_map_ |
EntityMap | visual_id_map_ |
Definition at line 41 of file entity_manager.h.
EntityID tesseract_visualization::EntityManager::addLink | ( | const std::string & | name | ) |
Add link name to manager and return id for link.
name | Name given to the link |
Definition at line 47 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::addModel | ( | const std::string & | name | ) |
Add model name to manager and return id for model.
name | Name given to the model |
Definition at line 30 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::addSensor | ( | const std::string & | name | ) |
Add sensor name to manager and return id for sensor.
name | Name given to the sensor |
Definition at line 81 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::addVisual | ( | const std::string & | name | ) |
Add visual name to manager and return id for visual.
name | Name given to the visual |
Definition at line 64 of file entity_manager.cpp.
void tesseract_visualization::EntityManager::clear | ( | ) |
Clear interanl data.
Definition at line 100 of file entity_manager.cpp.
bool tesseract_visualization::EntityManager::empty | ( | ) | const |
Check if empty.
Definition at line 98 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::getLink | ( | const std::string & | name | ) | const |
Given the link name return the ID.
name | Name of the link |
Definition at line 53 of file entity_manager.cpp.
const EntityMap & tesseract_visualization::EntityManager::getLinks | ( | ) | const |
Get all links being managed.
Definition at line 62 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::getModel | ( | const std::string & | name | ) | const |
Given the model name return the ID.
name | Name of the model |
Definition at line 36 of file entity_manager.cpp.
const EntityMap & tesseract_visualization::EntityManager::getModels | ( | ) | const |
Get all models being managed.
Definition at line 45 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::getSensor | ( | const std::string & | name | ) | const |
Given the sensor name return the ID.
name | Name of the sensor |
Definition at line 87 of file entity_manager.cpp.
const EntityMap & tesseract_visualization::EntityManager::getSensors | ( | ) | const |
Get all sensors being managed.
Definition at line 96 of file entity_manager.cpp.
EntityID tesseract_visualization::EntityManager::getVisual | ( | const std::string & | name | ) | const |
Given the visual name return the ID.
name | Name of the visual |
Definition at line 70 of file entity_manager.cpp.
const EntityMap & tesseract_visualization::EntityManager::getVisuals | ( | ) | const |
Get all visuals being managed.
Definition at line 79 of file entity_manager.cpp.
|
private |
Start entity counter to avoid clashing with gazebo
Definition at line 135 of file entity_manager.h.
|
private |
Stores entity id for each link
Definition at line 131 of file entity_manager.h.
|
private |
Stores entity id for each model
Definition at line 132 of file entity_manager.h.
|
private |
Stores entity id for each sensor
Definition at line 134 of file entity_manager.h.
|
private |
Stores entity id for each visual
Definition at line 133 of file entity_manager.h.