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


Public Member Functions | |
| DistanceResult (CoalScalar min_distance_=(std::numeric_limits< CoalScalar >::max)()) | |
| void | update (CoalScalar distance, const CollisionGeometry *o1_, const CollisionGeometry *o2_, int b1_, int b2_) |
| add distance information into the result | |
| void | update (CoalScalar distance, const CollisionGeometry *o1_, const CollisionGeometry *o2_, int b1_, int b2_, const Vec3s &p1, const Vec3s &p2, const Vec3s &normal_) |
| add distance information into the result | |
| void | update (const DistanceResult &other_result) |
| add distance information into the result | |
| void | clear () |
| clear the result | |
| bool | operator== (const DistanceResult &other) const |
| whether two DistanceResult are the same or not | |
| Public Member Functions inherited from coal::QueryResult | |
| QueryResult () | |
Public Attributes | |
| CoalScalar | min_distance |
| minimum distance between two objects. If two objects are in collision and DistanceRequest::enable_signed_distance is activated, min_distance <= 0. | |
| Vec3s | normal |
| normal. | |
| std::array< Vec3s, 2 > | nearest_points |
| nearest points. See CollisionResult::nearest_points. | |
| const CollisionGeometry * | o1 |
| collision object 1 | |
| const CollisionGeometry * | o2 |
| collision object 2 | |
| int | b1 |
| information about the nearest point in object 1 if object 1 is mesh or point cloud, it is the triangle or point id if object 1 is geometry shape, it is NONE (-1), if object 1 is octree, it is the id of the cell | |
| int | b2 |
| information about the nearest point in object 2 if object 2 is mesh or point cloud, it is the triangle or point id if object 2 is geometry shape, it is NONE (-1), if object 2 is octree, it is the id of the cell | |
| 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 | |
Static Public Attributes | |
| static const int | NONE = -1 |
| invalid contact primitive information | |
distance result
| inline |
| inline |
clear the result
| inline |
whether two DistanceResult are the same or not
| inline |
add distance information into the result
| inline |
add distance information into the result
| inline |
add distance information into the result
| int coal::DistanceResult::b1 |
information about the nearest point in object 1 if object 1 is mesh or point cloud, it is the triangle or point id if object 1 is geometry shape, it is NONE (-1), if object 1 is octree, it is the id of the cell
| int coal::DistanceResult::b2 |
information about the nearest point in object 2 if object 2 is mesh or point cloud, it is the triangle or point id if object 2 is geometry shape, it is NONE (-1), if object 2 is octree, it is the id of the cell
| CoalScalar coal::DistanceResult::min_distance |
minimum distance between two objects. If two objects are in collision and DistanceRequest::enable_signed_distance is activated, min_distance <= 0.
| std::array<Vec3s, 2> coal::DistanceResult::nearest_points |
nearest points. See CollisionResult::nearest_points.
| static |
invalid contact primitive information
| Vec3s coal::DistanceResult::normal |
normal.
| const CollisionGeometry* coal::DistanceResult::o1 |
collision object 1
| const CollisionGeometry* coal::DistanceResult::o2 |
collision object 2