moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Generic representation of the distance information for a pair of objects. More...
#include <collision_common.h>
Public Member Functions | |
DistanceResultsData () | |
void | clear () |
Clear structure data. | |
bool | operator< (const DistanceResultsData &other) |
Compare if the distance is less than another. | |
bool | operator> (const DistanceResultsData &other) |
Compare if the distance is greater than another. | |
Public Attributes | |
double | distance |
The distance between two objects. If two objects are in collision, distance <= 0. | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d | nearest_points [2] |
The nearest points. | |
std::string | link_names [2] |
The object link names. | |
BodyType | body_types [2] |
The object body type. | |
Eigen::Vector3d | normal |
Generic representation of the distance information for a pair of objects.
Definition at line 249 of file collision_common.h.
|
inline |
|
inline |
Clear structure data.
Definition at line 278 of file collision_common.h.
|
inline |
Compare if the distance is less than another.
Definition at line 291 of file collision_common.h.
|
inline |
Compare if the distance is greater than another.
Definition at line 297 of file collision_common.h.
BodyType collision_detection::DistanceResultsData::body_types[2] |
The object body type.
Definition at line 268 of file collision_common.h.
double collision_detection::DistanceResultsData::distance |
The distance between two objects. If two objects are in collision, distance <= 0.
Definition at line 257 of file collision_common.h.
std::string collision_detection::DistanceResultsData::link_names[2] |
The object link names.
Definition at line 265 of file collision_common.h.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d collision_detection::DistanceResultsData::nearest_points[2] |
The nearest points.
Definition at line 262 of file collision_common.h.
Eigen::Vector3d collision_detection::DistanceResultsData::normal |
Normalized vector connecting closest points (from link_names[0] to link_names[1])
Usually, when checking convex to convex, the normal is connecting closest points. However, FCL in case of non-convex to non-convex or convex to non-convex returns the contact normal for one of the two triangles that are in contact.
Definition at line 275 of file collision_common.h.