|
se2ez
|
A representation of a Scene (in this case, one active robot and multiple passive robots (with all joints fixed representing the obstacles). More...
#include <scene.h>
Classes | |
| struct | RobotData |
Public Member Functions | |
| Scene (const RobotPtr &arobot) | |
| Constructor. Nothing interesting right now. More... | |
| Scene (const Scene &)=delete | |
| Scene (Scene &&)=delete | |
Scene Management | |
| void | addRobot (const RobotPtr &robot, const std::string &name) |
| Attach a robot as passive to the scene at a zero state. More... | |
| void | addRobot (const RobotPtr &robot, const std::string &name, const StatePtr &state) |
| Attach a robot as passive to the scene with given state. More... | |
| void | compileScene () |
| creates the scene, is called after a robot is added. More... | |
| void | removeRobot (const std::string &name) |
| Removes the specific robot from the Scene. More... | |
| void | clear () |
| Completely clears internal structures, a brand new scene! More... | |
| void | clearPassive () |
| Completely clears the passive robots! More... | |
Getters and Setters | |
| const RobotPtr & | getActiveRobot () |
| Returns a the active robot. More... | |
| const RobotPtr & | getSceneRobot () |
| Returns a new aggregated robot including all the passive and active robots. More... | |
| const std::string & | getSignature () |
| Returns the mrobot signature. More... | |
| const RobotPtr & | getRobot (const std::string &name) |
| Returns robot the robot named name, throws error otherwise. More... | |
| const std::vector< std::string > | getRobotNames () |
| Gets the all the names of the robots active and passive. More... | |
| void | setRobotState (const std::string &name, const StatePtr &state) |
| Sets a state for a robot. More... | |
| void | setRandom () |
| Sets every passive robot to a random state. More... | |
| void | getNamedRobot (const std::string &name, const StatePtr &state) |
| get the state for a robot. More... | |
Public Attributes | |
| bool | dirty {false} |
| Does the scene robot need updating? More... | |
Private Attributes | |
| std::map< std::string, RobotData > | robots_ |
| Map of robots and their names. More... | |
| const RobotPtr | arobot_ |
| Active Robot. More... | |
| RobotPtr | mrobot_ |
| Mega Robot. More... | |
A representation of a Scene (in this case, one active robot and multiple passive robots (with all joints fixed representing the obstacles).
| Scene::Scene | ( | const RobotPtr & | arobot | ) |
|
delete |
|
delete |
| void Scene::addRobot | ( | const RobotPtr & | robot, |
| const std::string & | name | ||
| ) |
| void Scene::addRobot | ( | const RobotPtr & | robot, |
| const std::string & | name, | ||
| const StatePtr & | state | ||
| ) |
| void Scene::clear | ( | ) |
| void se2ez::Scene::clearPassive | ( | ) |
Completely clears the passive robots!
| void Scene::compileScene | ( | ) |
| const RobotPtr & Scene::getActiveRobot | ( | ) |
| void se2ez::Scene::getNamedRobot | ( | const std::string & | name, |
| const StatePtr & | state | ||
| ) |
get the state for a robot.
| [in] | name | Name of state to set. |
| [in] | state | State to set named state to. |
| const RobotPtr & Scene::getRobot | ( | const std::string & | name | ) |
| const std::vector< std::string > Scene::getRobotNames | ( | ) |
| const RobotPtr & Scene::getSceneRobot | ( | ) |
| const std::string & Scene::getSignature | ( | ) |
| void Scene::removeRobot | ( | const std::string & | name | ) |
| void Scene::setRandom | ( | ) |
| void se2ez::Scene::setRobotState | ( | const std::string & | name, |
| const StatePtr & | state | ||
| ) |
Sets a state for a robot.
| [in] | name | Name of state to set. |
| [in] | state | State to set named state to. |
| bool se2ez::Scene::dirty {false} |
|
private |