$search

collision_space_ccd::EnvironmentObjects Class Reference

List of objects contained in the environment (not including robot links). More...

#include <environment_objects.h>

List of all members.

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.
EnvironmentObjectsclone (void) const
 Clone this instance of the class.
 EnvironmentObjects (void)
std::vector< std::string > getNamespaces (void) const
 Get the list of namespaces.
NamespaceObjectsgetObjects (const std::string &ns)
 Get the list of objects.
const NamespaceObjectsgetObjects (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_

Detailed Description

List of objects contained in the environment (not including robot links).

Definition at line 51 of file environment_objects.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 111 of file environment_objects.h.

Definition at line 110 of file environment_objects.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


collision_space_ccd
Author(s): Jia Pan
autogenerated on Fri Mar 1 15:01:55 2013