Go to the documentation of this file.
37 #ifndef GEOMETRIC_SHAPES_OBB_H
38 #define GEOMETRIC_SHAPES_OBB_H
43 #include <Eigen/Geometry>
57 OBB(
const Eigen::Isometry3d& pose,
const Eigen::Vector3d& extents);
67 void setPoseAndExtents(
const Eigen::Isometry3d& pose,
const Eigen::Vector3d& extents);
79 void getExtents(Eigen::Vector3d& extents)
const;
85 Eigen::Isometry3d
getPose()
const;
91 void getPose(Eigen::Isometry3d& pose)
const;
103 void toAABB(AABB& aabb)
const;
128 std::unique_ptr<OBBPrivate>
obb_;
132 #endif // GEOMETRIC_SHAPES_OBB_H
Eigen::Vector3d getExtents() const
Get the extents of the OBB.
AABB toAABB() const
Convert this OBB to an axis-aligned BB.
bool contains(const Eigen::Vector3d &point)
Check if this OBB contains the given point.
OBB * extendApprox(const OBB &box)
Add the other OBB to this one and compute an approximate enclosing OBB.
std::unique_ptr< OBBPrivate > obb_
PIMPL pointer.
bool overlaps(const OBB &other)
Check whether this and the given OBBs have nonempty intersection.
std::chrono::system_clock::time_point point
Eigen::Isometry3d getPose() const
Get the pose of the OBB.
This set of classes allows quickly detecting whether a given point is inside an object or not....
void setPoseAndExtents(const Eigen::Isometry3d &pose, const Eigen::Vector3d &extents)
Set both the pose and extents of the OBB.
OBB & operator=(const OBB &other)
geometric_shapes
Author(s): Ioan Sucan
, Gil Jones
autogenerated on Fri Apr 1 2022 02:40:31