Public Member Functions | Public Attributes | List of all members
coal::DistanceCallBackDefault Struct Reference

Default distance callback to check collision between collision objects. More...

#include <default_broadphase_callbacks.h>

Inheritance diagram for coal::DistanceCallBackDefault:
Inheritance graph
[legend]

Public Member Functions

bool distance (CollisionObject *o1, CollisionObject *o2, CoalScalar &dist)
 Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. More...
 
void init ()
 Initialize the callback. Clears the distance result and sets the done boolean to false. More...
 
virtual ~DistanceCallBackDefault ()
 
- Public Member Functions inherited from coal::DistanceCallBackBase
virtual bool operator() (CollisionObject *o1, CollisionObject *o2, CoalScalar &dist)
 Functor call associated to the distance operation. More...
 

Public Attributes

DistanceData data
 

Detailed Description

Default distance callback to check collision between collision objects.

Definition at line 210 of file coal/broadphase/default_broadphase_callbacks.h.

Constructor & Destructor Documentation

◆ ~DistanceCallBackDefault()

virtual coal::DistanceCallBackDefault::~DistanceCallBackDefault ( )
inlinevirtual

Member Function Documentation

◆ distance()

bool coal::DistanceCallBackDefault::distance ( CollisionObject o1,
CollisionObject o2,
CoalScalar dist 
)
virtual

Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true.

Parameters
[in]o1Collision object #1.
[in]o2Collision object #2.
[out]distDistance between the two collision geometries.

Implements coal::DistanceCallBackBase.

Definition at line 87 of file default_broadphase_callbacks.cpp.

◆ init()

void coal::DistanceCallBackDefault::init ( )
inlinevirtual

Initialize the callback. Clears the distance result and sets the done boolean to false.

Reimplemented from coal::DistanceCallBackBase.

Definition at line 213 of file coal/broadphase/default_broadphase_callbacks.h.

Member Data Documentation

◆ data

DistanceData coal::DistanceCallBackDefault::data

The documentation for this struct was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00