#include <bodies.h>
Public Member Functions | |
void | addBody (const shapes::Shape *shape, const tf::Transform &pose, double padding=0.0) |
BodyVector () | |
BodyVector (const std::vector< shapes::Shape * > &shapes, const std::vector< tf::Transform > &poses, double padding) | |
const Body * | getBody (unsigned int i) const |
BoundingSphere | getBoundingSphere (unsigned int i) const |
double | getBoundingSphereRadiusSquared (unsigned int i) const |
const Body * | getPaddedBody (unsigned int i) const |
BoundingSphere | getPaddedBoundingSphere (unsigned int i) const |
double | getPaddedBoundingSphereRadiusSquared (unsigned int i) const |
double | getPadding () const |
unsigned int | getSize () const |
void | setPose (unsigned int i, const tf::Transform &pose) |
~BodyVector () | |
Private Attributes | |
std::vector< Body * > | bodies_ |
std::vector< Body * > | padded_bodies_ |
std::vector< double > | padded_rsqrs_ |
double | padding_ |
std::vector< double > | rsqrs_ |
Definition at line 1181 of file bodies.cpp.
bodies::BodyVector::BodyVector | ( | const std::vector< shapes::Shape * > & | shapes, |
const std::vector< tf::Transform > & | poses, | ||
double | padding | ||
) |
Definition at line 1184 of file bodies.cpp.
Definition at line 1195 of file bodies.cpp.
void bodies::BodyVector::addBody | ( | const shapes::Shape * | shape, |
const tf::Transform & | pose, | ||
double | padding = 0.0 |
||
) |
Definition at line 1204 of file bodies.cpp.
const bodies::Body * bodies::BodyVector::getBody | ( | unsigned int | i | ) | const |
Definition at line 1231 of file bodies.cpp.
bodies::BoundingSphere bodies::BodyVector::getBoundingSphere | ( | unsigned int | i | ) | const |
Definition at line 1247 of file bodies.cpp.
double bodies::BodyVector::getBoundingSphereRadiusSquared | ( | unsigned int | i | ) | const |
Definition at line 1271 of file bodies.cpp.
const bodies::Body * bodies::BodyVector::getPaddedBody | ( | unsigned int | i | ) | const |
Definition at line 1237 of file bodies.cpp.
bodies::BoundingSphere bodies::BodyVector::getPaddedBoundingSphere | ( | unsigned int | i | ) | const |
Definition at line 1257 of file bodies.cpp.
double bodies::BodyVector::getPaddedBoundingSphereRadiusSquared | ( | unsigned int | i | ) | const |
Definition at line 1279 of file bodies.cpp.
double bodies::BodyVector::getPadding | ( | void | ) | const [inline] |
unsigned int bodies::BodyVector::getSize | ( | ) | const [inline] |
void bodies::BodyVector::setPose | ( | unsigned int | i, |
const tf::Transform & | pose | ||
) |
Definition at line 1222 of file bodies.cpp.
std::vector<Body*> bodies::BodyVector::bodies_ [private] |
std::vector<Body*> bodies::BodyVector::padded_bodies_ [private] |
std::vector<double> bodies::BodyVector::padded_rsqrs_ [private] |
double bodies::BodyVector::padding_ [private] |
std::vector<double> bodies::BodyVector::rsqrs_ [private] |