coal 3.0.4 Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library |
collision result More...
#include <coal/collision_data.h>


Public Member Functions | |
| CollisionResult () | |
| void | updateDistanceLowerBound (const CoalScalar &distance_lower_bound_) |
| Update the lower bound only if the distance is inferior. | |
| void | addContact (const Contact &c) |
| add one contact into result structure | |
| bool | operator== (const CollisionResult &other) const |
| whether two CollisionResult are the same or not | |
| bool | isCollision () const |
| return binary collision result | |
| size_t | numContacts () const |
| number of contacts found | |
| const Contact & | getContact (size_t i) const |
| get the i-th contact calculated | |
| void | setContact (size_t i, const Contact &c) |
| set the i-th contact calculated | |
| void | getContacts (std::vector< Contact > &contacts_) const |
| get all the contacts | |
| const std::vector< Contact > & | getContacts () const |
| void | clear () |
| clear the results obtained | |
| void | swapObjects () |
| reposition Contact objects when fcl inverts them during their construction. | |
| Public Member Functions inherited from coal::QueryResult | |
| QueryResult () | |
Public Attributes | |
| CoalScalar | distance_lower_bound |
| Vec3s | normal |
| normal associated to nearest_points. Same as CollisionResult::nearest_points but for the normal. | |
| std::array< Vec3s, 2 > | nearest_points |
| nearest points. A CollisionResult can have multiple contacts. The nearest points in CollisionResults correspond to the witness points associated with the smallest distance i.e the distance_lower_bound. For bounding volumes and BVHs, these nearest points are available only when distance_lower_bound is inferior to CollisionRequest::break_distance. | |
| Public Attributes inherited from coal::QueryResult | |
| Vec3s | cached_gjk_guess |
| stores the last GJK ray when relevant. | |
| support_func_guess_t | cached_support_func_guess |
| stores the last support function vertex index, when relevant. | |
| CPUTimes | timings |
| timings for the given request | |
collision result
| inline |
| inline |
add one contact into result structure
| inline |
clear the results obtained
| inline |
get the i-th contact calculated
| inline |
| inline |
get all the contacts
| inline |
return binary collision result
| inline |
number of contacts found
| inline |
whether two CollisionResult are the same or not
| inline |
set the i-th contact calculated
| void coal::CollisionResult::swapObjects | ( | ) |
reposition Contact objects when fcl inverts them during their construction.
| inline |
Update the lower bound only if the distance is inferior.
| CoalScalar coal::CollisionResult::distance_lower_bound |
Lower bound on distance between objects if they are disjoint. See Collision
| std::array<Vec3s, 2> coal::CollisionResult::nearest_points |
nearest points. A CollisionResult can have multiple contacts. The nearest points in CollisionResults correspond to the witness points associated with the smallest distance i.e the distance_lower_bound. For bounding volumes and BVHs, these nearest points are available only when distance_lower_bound is inferior to CollisionRequest::break_distance.
| Vec3s coal::CollisionResult::normal |
normal associated to nearest_points. Same as CollisionResult::nearest_points but for the normal.