|
Aikido
|
A Kinematic world that contains a set of skeletons. More...
#include <aikido/planner/World.hpp>
Classes | |
| struct | State |
Public Member Functions | |
| World (const std::string &name="") | |
| Construct a kinematic World. More... | |
| virtual | ~World () |
| std::unique_ptr< World > | clone (const std::string &newName="") const |
| Create a clone of this World. More... | |
| std::string | setName (const std::string &newName) |
| Set the name of this World. More... | |
| const std::string & | getName () const |
| Get the name of this World. More... | |
| dart::dynamics::SkeletonPtr | getSkeleton (std::size_t i) const |
| Find a Skeleton by index. More... | |
| dart::dynamics::SkeletonPtr | getSkeleton (const std::string &name) const |
| Find a Skeleton by name. More... | |
| bool | hasSkeleton (const dart::dynamics::SkeletonPtr &skel) const |
| Returns true if the Skeleton is in this World. More... | |
| std::size_t | getNumSkeletons () const |
| Get the number of Skeletons. More... | |
| std::string | addSkeleton (const dart::dynamics::SkeletonPtr &skeleton) |
| Add a Skeleton to this World. More... | |
| void | removeSkeleton (const dart::dynamics::SkeletonPtr &skeleton) |
| Remove a Skeleton from this World. More... | |
| std::mutex & | getMutex () const |
| Get the mutex that protects the state of this World. More... | |
| World::State | getState () const |
| Returns the state of this World. More... | |
| World::State | getState (const std::vector< std::string > &names) const |
| Returns the state of named skeletons in this World. More... | |
| void | setState (const World::State &state) |
| Sets the state of this World to match State. More... | |
| void | setState (const World::State &state, const std::vector< std::string > &names) |
| Sets the state of named skeletons in this World to match State. More... | |
Static Public Member Functions | |
| static std::unique_ptr< World > | create (const std::string &name="") |
| Create a new World ptr. More... | |
Protected Attributes | |
| std::string | mName |
| Name of this World. More... | |
| std::vector< dart::dynamics::SkeletonPtr > | mSkeletons |
| Skeletons in this World. More... | |
| std::mutex | mMutex |
| Mutex to protect this World. More... | |
| dart::common::NameManager< dart::dynamics::SkeletonPtr > | mSkeletonNameManager |
| NameManager for keeping track of Skeletons. More... | |
Static Protected Attributes | |
| static dart::common::NameManager< World * > | mWorldNameManager |
| NameManager for keeping track of Worlds. More... | |
A Kinematic world that contains a set of skeletons.
It is expected that worlds do not share the same skeletons.
|
explicit |
|
virtual |
| std::string aikido::planner::World::addSkeleton | ( | const dart::dynamics::SkeletonPtr & | skeleton | ) |
| std::unique_ptr<World> aikido::planner::World::clone | ( | const std::string & | newName = "" | ) | const |
|
static |
| std::mutex& aikido::planner::World::getMutex | ( | ) | const |
Get the mutex that protects the state of this World.
| const std::string& aikido::planner::World::getName | ( | ) | const |
Get the name of this World.
| std::size_t aikido::planner::World::getNumSkeletons | ( | ) | const |
Get the number of Skeletons.
| dart::dynamics::SkeletonPtr aikido::planner::World::getSkeleton | ( | const std::string & | name | ) | const |
Find a Skeleton by name.
| name | Name of desired Skeleton |
| dart::dynamics::SkeletonPtr aikido::planner::World::getSkeleton | ( | std::size_t | i | ) | const |
Find a Skeleton by index.
| i | Index of desired Skeleton |
| World::State aikido::planner::World::getState | ( | ) | const |
| World::State aikido::planner::World::getState | ( | const std::vector< std::string > & | names | ) | const |
| bool aikido::planner::World::hasSkeleton | ( | const dart::dynamics::SkeletonPtr & | skel | ) | const |
Returns true if the Skeleton is in this World.
| skel | Desired Skeleton |
| void aikido::planner::World::removeSkeleton | ( | const dart::dynamics::SkeletonPtr & | skeleton | ) |
| std::string aikido::planner::World::setName | ( | const std::string & | newName | ) |
| void aikido::planner::World::setState | ( | const World::State & | state | ) |
| void aikido::planner::World::setState | ( | const World::State & | state, |
| const std::vector< std::string > & | names | ||
| ) |
|
mutableprotected |
Mutex to protect this World.
|
protected |
Name of this World.
|
protected |
NameManager for keeping track of Skeletons.
|
protected |
Skeletons in this World.
|
staticprotected |
NameManager for keeping track of Worlds.