![]() |
RobWorkProject
23.9.11-
|
interface for creating and deleting constraintEdges and ConstraintNodes. ConstraintEdges are frequently created and deleted so efficient data structures are here needed. More...
#include <RWBodyPool.hpp>
Public Member Functions | |
RWBodyPool (int nrBodies=0) | |
initialize the node and edge buffers | |
RWBody * | createBody (RWBody::BodyType type) |
create a ConstraintNode | |
void | deleteBody (RWBody *body) |
delete a constraint node | |
const RWBodyList & | getBodies () const |
gets the complete list of constraint nodes in the pool. NULL elements can occour. | |
Protected Attributes | |
std::vector< RWBody * > | _bodies |
std::stack< int > | _freeBodyIDs |
interface for creating and deleting constraintEdges and ConstraintNodes. ConstraintEdges are frequently created and deleted so efficient data structures are here needed.