39 #ifndef HPP_FCL_COLLISION_H 40 #define HPP_FCL_COLLISION_H 57 const CollisionRequest& request, CollisionResult& result);
61 const CollisionGeometry* o2,
const Transform3f& tf2,
62 const CollisionRequest& request, CollisionResult& result);
82 std::size_t res =
collide(o1, tf1, o2, tf2,
103 solver.enable_cached_guess = cached;
111 res = func(o2, tf2, o1, tf1, &solver, request, result);
114 res = func (o1, tf1, o2, tf2, &solver, request, result);
127 std::size_t res = operator()(tf1, tf2, (
const CollisionRequest&) request, result);
support_func_guess_t cached_support_func_guess
the support function intial guess set by user
Definition: collision_data.h:149
support_func_guess_t cached_support_func_guess
stores the last support function vertex index, when relevant.
Definition: collision_data.h:175
Main namespace.
Definition: AABB.h:43
collision result
Definition: collision_data.h:249
bool enable_cached_gjk_guess
whether enable gjk intial guess
Definition: collision_data.h:143
std::size_t operator()(const Transform3f &tf1, const Transform3f &tf2, const CollisionRequest &request, CollisionResult &result)
Definition: collision.h:99
std::size_t(* CollisionFunc)(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *nsolver, const CollisionRequest &request, CollisionResult &result)
the uniform call interface for collision: for collision, we need know
Definition: collision_func_matrix.h:61
request to the collision algorithm
Definition: collision_data.h:197
void updateGuess(const QueryResult &result)
Definition: collision_data.h:178
Definition: collision.h:95
Vec3f cached_gjk_guess
the gjk intial guess set by user
Definition: collision_data.h:146
std::size_t operator()(const Transform3f &tf1, const Transform3f &tf2, CollisionRequest &request, CollisionResult &result)
Definition: collision.h:124
std::size_t collide(const CollisionObject *o1, const CollisionObject *o2, const CollisionRequest &request, CollisionResult &result)
Main collision interface: given two collision objects, and the requirements for contacts, including num of max contacts, whether perform exhaustive collision (i.e., returning returning all the contact points), whether return detailed contact information (i.e., normal, contact point, depth; otherwise only contact primitive id is returned), this function performs the collision between them. Return value is the number of contacts generated between the two objects.
Vec3f cached_gjk_guess
stores the last GJK ray when relevant.
Definition: collision_data.h:172
collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the ...
Definition: narrowphase.h:50
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:157
The geometry for the object for collision or distance computation.
Definition: collision_object.h:63
void swapObjects()
reposition Contact objects when fcl inverts them during their construction.
#define HPP_FCL_DLLAPI
Definition: config.hh:64