moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Representation of a collision checking result. More...
#include <collision_common.h>
Public Types | |
using | ContactMap = std::map< std::pair< std::string, std::string >, std::vector< Contact > > |
A map returning the pairs of body ids in contact, plus their contact details. | |
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW void | clear () |
Clear a previously stored result. | |
void | print () const |
Throttled warning printing the first collision pair, if any. All collisions are logged at DEBUG level. | |
Public Attributes | |
bool | collision = false |
True if collision was found, false otherwise. | |
double | distance = std::numeric_limits<double>::max() |
Closest distance between two bodies. | |
DistanceResult | distance_result |
Distance data for each link. | |
std::size_t | contact_count = 0 |
Number of contacts returned. | |
ContactMap | contacts |
std::set< CostSource > | cost_sources |
These are the individual cost sources when costs are computed. | |
Representation of a collision checking result.
Definition at line 328 of file collision_common.h.
using collision_detection::CollisionResult::ContactMap = std::map<std::pair<std::string, std::string>, std::vector<Contact> > |
A map returning the pairs of body ids in contact, plus their contact details.
Definition at line 359 of file collision_common.h.
|
inline |
Clear a previously stored result.
Definition at line 333 of file collision_common.h.
void collision_detection::CollisionResult::print | ( | ) | const |
Throttled warning printing the first collision pair, if any. All collisions are logged at DEBUG level.
Definition at line 53 of file collision_common.cpp.
bool collision_detection::CollisionResult::collision = false |
True if collision was found, false otherwise.
Definition at line 347 of file collision_common.h.
std::size_t collision_detection::CollisionResult::contact_count = 0 |
Number of contacts returned.
Definition at line 356 of file collision_common.h.
ContactMap collision_detection::CollisionResult::contacts |
Definition at line 360 of file collision_common.h.
std::set<CostSource> collision_detection::CollisionResult::cost_sources |
These are the individual cost sources when costs are computed.
Definition at line 363 of file collision_common.h.
double collision_detection::CollisionResult::distance = std::numeric_limits<double>::max() |
Closest distance between two bodies.
Definition at line 350 of file collision_common.h.
DistanceResult collision_detection::CollisionResult::distance_result |
Distance data for each link.
Definition at line 353 of file collision_common.h.