$search
List of objects contained in the environment (not including robot links). More...
#include <environment_objects.h>
Classes | |
struct | NamespaceObjects |
Public Member Functions | |
void | addObject (const std::string &ns, shapes::Shape *shape, const btTransform &pose) |
Add an object to the namespace. The user releases ownership of the object. | |
void | addObject (const std::string &ns, shapes::StaticShape *shape) |
Add a static object to the namespace. The user releases ownership of the object. | |
void | addObjectNamespace (const std::string ns) |
Adds namespace without necessary adding a shape. | |
void | clearObjects (void) |
Clear all objects. Memory is freed. | |
void | clearObjects (const std::string &ns) |
Clear the objects in a specific namespace. Memory is freed. | |
EnvironmentObjects * | clone (void) const |
Clone this instance of the class. | |
EnvironmentObjects (void) | |
std::vector< std::string > | getNamespaces (void) const |
Get the list of namespaces. | |
NamespaceObjects & | getObjects (const std::string &ns) |
Get the list of objects. | |
const NamespaceObjects & | getObjects (const std::string &ns) const |
Get the list of objects. | |
bool | removeObject (const std::string &ns, const shapes::StaticShape *shape) |
Remove object. Object equality is verified by comparing pointers. Ownership of the object is renounced upon. Returns true on success. | |
bool | removeObject (const std::string &ns, const shapes::Shape *shape) |
Remove object. Object equality is verified by comparing pointers. Ownership of the object is renounced upon. Returns true on success. | |
~EnvironmentObjects (void) | |
Private Attributes | |
NamespaceObjects | empty_ |
std::map< std::string, NamespaceObjects > | objects_ |
List of objects contained in the environment (not including robot links).
Definition at line 51 of file environment_objects.h.
collision_space_ccd::EnvironmentObjects::EnvironmentObjects | ( | void | ) | [inline] |
Definition at line 54 of file environment_objects.h.
collision_space_ccd::EnvironmentObjects::~EnvironmentObjects | ( | void | ) | [inline] |
Definition at line 58 of file environment_objects.h.
void collision_space_ccd::EnvironmentObjects::addObject | ( | const std::string & | ns, | |
shapes::Shape * | shape, | |||
const btTransform & | pose | |||
) |
Add an object to the namespace. The user releases ownership of the object.
Definition at line 70 of file environment_objects.cpp.
void collision_space_ccd::EnvironmentObjects::addObject | ( | const std::string & | ns, | |
shapes::StaticShape * | shape | |||
) |
Add a static object to the namespace. The user releases ownership of the object.
Definition at line 65 of file environment_objects.cpp.
void collision_space_ccd::EnvironmentObjects::addObjectNamespace | ( | const std::string | ns | ) |
Adds namespace without necessary adding a shape.
Definition at line 131 of file environment_objects.cpp.
void collision_space_ccd::EnvironmentObjects::clearObjects | ( | void | ) |
Clear all objects. Memory is freed.
Definition at line 124 of file environment_objects.cpp.
void collision_space_ccd::EnvironmentObjects::clearObjects | ( | const std::string & | ns | ) |
Clear the objects in a specific namespace. Memory is freed.
Definition at line 109 of file environment_objects.cpp.
EnvironmentObjects * collision_space_ccd::EnvironmentObjects::clone | ( | void | ) | const |
Clone this instance of the class.
Definition at line 140 of file environment_objects.cpp.
std::vector< std::string > collision_space_ccd::EnvironmentObjects::getNamespaces | ( | void | ) | const |
Get the list of namespaces.
Definition at line 43 of file environment_objects.cpp.
EnvironmentObjects::NamespaceObjects & collision_space_ccd::EnvironmentObjects::getObjects | ( | const std::string & | ns | ) |
Get the list of objects.
Definition at line 60 of file environment_objects.cpp.
const EnvironmentObjects::NamespaceObjects & collision_space_ccd::EnvironmentObjects::getObjects | ( | const std::string & | ns | ) | const |
Get the list of objects.
Definition at line 51 of file environment_objects.cpp.
bool collision_space_ccd::EnvironmentObjects::removeObject | ( | const std::string & | ns, | |
const shapes::StaticShape * | shape | |||
) |
Remove object. Object equality is verified by comparing pointers. Ownership of the object is renounced upon. Returns true on success.
Definition at line 93 of file environment_objects.cpp.
bool collision_space_ccd::EnvironmentObjects::removeObject | ( | const std::string & | ns, | |
const shapes::Shape * | shape | |||
) |
Remove object. Object equality is verified by comparing pointers. Ownership of the object is renounced upon. Returns true on success.
Definition at line 76 of file environment_objects.cpp.
Definition at line 111 of file environment_objects.h.
std::map<std::string, NamespaceObjects> collision_space_ccd::EnvironmentObjects::objects_ [private] |
Definition at line 110 of file environment_objects.h.