|
Eigen::Vector3f | min |
|
Eigen::Vector3f | max |
|
An axis oriented bounding box. Todo: Some parts of this class are similar to MathTools::OOBB.
◆ BoundingBox() [1/2]
VirtualRobot::BoundingBox::BoundingBox |
( |
| ) |
|
◆ BoundingBox() [2/2]
VirtualRobot::BoundingBox::BoundingBox |
( |
const std::vector< Eigen::Vector3f > & |
p | ) |
|
◆ addPoint()
void VirtualRobot::BoundingBox::addPoint |
( |
const Eigen::Vector3f & |
p | ) |
|
Consider this point for min/max calculation
◆ addPoints() [1/2]
void VirtualRobot::BoundingBox::addPoints |
( |
const std::vector< Eigen::Vector3f > & |
p | ) |
|
Consider these points for min/max calculation
◆ addPoints() [2/2]
void VirtualRobot::BoundingBox::addPoints |
( |
const BoundingBox & |
bbox | ) |
|
Consider these points for min/max calculation
◆ clear()
void VirtualRobot::BoundingBox::clear |
( |
| ) |
|
◆ getMax()
Eigen::Vector3f VirtualRobot::BoundingBox::getMax |
( |
| ) |
const |
The axis oriented maximum value.
◆ getMin()
Eigen::Vector3f VirtualRobot::BoundingBox::getMin |
( |
| ) |
const |
The axis oriented minimum value.
◆ getPoints()
std::vector< Eigen::Vector3f > VirtualRobot::BoundingBox::getPoints |
( |
| ) |
const |
Returns 8 points that define the bounding box
◆ isInside()
bool VirtualRobot::BoundingBox::isInside |
( |
Eigen::Vector3f |
point | ) |
const |
isInside Checks whether the given point lies within the bounding box. The given vector can contain entries that are none, if this is the case the respective dimension is ignored and the point is only tested for the remaining non-nan dimensions.
- Parameters
-
- Returns
- True if the point lies within the bounding box. False if not.
◆ planeGoesThrough()
Returns true, if plane "hits" this bounding box.
◆ print()
void VirtualRobot::BoundingBox::print |
( |
| ) |
|
◆ scale()
void VirtualRobot::BoundingBox::scale |
( |
const Eigen::Vector3f & |
scaleFactor | ) |
|
◆ toXML()
std::string VirtualRobot::BoundingBox::toXML |
( |
int |
tabs = 2 , |
|
|
bool |
skipMatrixTag = false |
|
) |
| |
◆ transform()
void VirtualRobot::BoundingBox::transform |
( |
Eigen::Matrix4f & |
pose | ) |
|
Applies transformation to this bbox. Reorders min and max values according to pose.
◆ CollisionChecker
◆ max
Eigen::Vector3f VirtualRobot::BoundingBox::max |
|
protected |
◆ min
Eigen::Vector3f VirtualRobot::BoundingBox::min |
|
protected |