Definition of a cylinder.
More...
#include <bodies.h>
|
virtual void | computeBoundingSphere (BoundingSphere &sphere) const |
| Compute the bounding radius for the body, in its current pose. Scaling and padding are accounted for. More...
|
|
virtual double | computeVolume (void) const |
| Compute the volume of the body. This method includes changes induced by scaling and padding. More...
|
|
virtual bool | containsPoint (const tf::Vector3 &p, bool verbose=false) const |
| Check is a point is inside the body. More...
|
|
| Cylinder (void) |
|
| Cylinder (const shapes::Shape *shape) |
|
virtual bool | intersectsRay (const tf::Vector3 &origin, const tf::Vector3 &dir, std::vector< tf::Vector3 > *intersections=NULL, unsigned int count=0) const |
| Check is a ray intersects the body, and find the set of intersections, in order, along the ray. A maximum number of intersections can be specified as well. If that number is 0, all intersections are returned. More...
|
|
virtual | ~Cylinder (void) |
|
Public Member Functions inherited from robot_self_filter::bodies::Body |
| Body (void) |
|
bool | containsPoint (double x, double y, double z) const |
| Check is a point is inside the body. More...
|
|
double | getPadding (void) const |
| Retrieve the current padding. More...
|
|
const tf::Transform & | getPose (void) const |
| Retrieve the pose of the body. More...
|
|
double | getScale (void) const |
| Retrieve the current scale. More...
|
|
shapes::ShapeType | getType (void) const |
| Get the type of shape this body represents. More...
|
|
void | setDimensions (const shapes::Shape *shape) |
| Set the dimensions of the body (from corresponding shape) More...
|
|
void | setPadding (double padd) |
| If constant padding should be added to the body, this method sets the padding. Default is 0.0. More...
|
|
void | setPose (const tf::Transform &pose) |
| Set the pose of the body. Default is identity. More...
|
|
void | setScale (double scale) |
| If the dimension of the body should be scaled, this method sets the scale. Default is 1.0. More...
|
|
virtual | ~Body (void) |
|
Definition of a cylinder.
Definition at line 210 of file bodies.h.
robot_self_filter::bodies::Cylinder::Cylinder |
( |
void |
| ) |
|
|
inline |
robot_self_filter::bodies::Cylinder::Cylinder |
( |
const shapes::Shape * |
shape | ) |
|
|
inline |
virtual robot_self_filter::bodies::Cylinder::~Cylinder |
( |
void |
| ) |
|
|
inlinevirtual |
void robot_self_filter::bodies::Cylinder::computeBoundingSphere |
( |
BoundingSphere & |
sphere | ) |
const |
|
virtual |
double robot_self_filter::bodies::Cylinder::computeVolume |
( |
void |
| ) |
const |
|
virtual |
bool robot_self_filter::bodies::Cylinder::containsPoint |
( |
const tf::Vector3 & |
p, |
|
|
bool |
verbose = false |
|
) |
| const |
|
virtual |
bool robot_self_filter::bodies::Cylinder::intersectsRay |
( |
const tf::Vector3 & |
origin, |
|
|
const tf::Vector3 & |
dir, |
|
|
std::vector< tf::Vector3 > * |
intersections = NULL , |
|
|
unsigned int |
count = 0 |
|
) |
| const |
|
virtual |
Check is a ray intersects the body, and find the set of intersections, in order, along the ray. A maximum number of intersections can be specified as well. If that number is 0, all intersections are returned.
Implements robot_self_filter::bodies::Body.
Definition at line 280 of file bodies.cpp.
void robot_self_filter::bodies::Cylinder::updateInternalData |
( |
void |
| ) |
|
|
protectedvirtual |
void robot_self_filter::bodies::Cylinder::useDimensions |
( |
const shapes::Shape * |
shape | ) |
|
|
protectedvirtual |
tf::Vector3 robot_self_filter::bodies::Cylinder::m_center |
|
protected |
double robot_self_filter::bodies::Cylinder::m_d1 |
|
protected |
double robot_self_filter::bodies::Cylinder::m_d2 |
|
protected |
double robot_self_filter::bodies::Cylinder::m_length |
|
protected |
double robot_self_filter::bodies::Cylinder::m_length2 |
|
protected |
tf::Vector3 robot_self_filter::bodies::Cylinder::m_normalB1 |
|
protected |
tf::Vector3 robot_self_filter::bodies::Cylinder::m_normalB2 |
|
protected |
tf::Vector3 robot_self_filter::bodies::Cylinder::m_normalH |
|
protected |
double robot_self_filter::bodies::Cylinder::m_radius |
|
protected |
double robot_self_filter::bodies::Cylinder::m_radius2 |
|
protected |
double robot_self_filter::bodies::Cylinder::m_radiusB |
|
protected |
double robot_self_filter::bodies::Cylinder::m_radiusBSqr |
|
protected |
double robot_self_filter::bodies::Cylinder::m_radiusU |
|
protected |
The documentation for this class was generated from the following files: