RobWorkProject  24.12.4-
Public Types | Public Member Functions | List of all members
MinimumClearanceCalculator Class Reference

Implements a MinimumClearanceCalculator. More...

#include <MinimumClearanceCalculator.hpp>

Inherits ClearanceCalculator.

Public Types

typedef rw::core::Ptr< MinimumClearanceCalculatorPtr
 A pointer to a MinimumClearanceCalculator.
 
typedef rw::core::Ptr< const MinimumClearanceCalculatorCPtr
 A pointer to a const MinimumClearanceCalculator.
 
- Public Types inherited from ClearanceCalculator
typedef rw::core::Ptr< ClearanceCalculatorPtr
 A pointer to a ClearanceCalculator.
 
typedef rw::core::Ptr< const ClearanceCalculatorCPtr
 A pointer to a const ClearanceCalculator.
 

Public Member Functions

 MinimumClearanceCalculator (const rw::core::Ptr< const rw::proximity::DistanceCalculator > &distancecalculator)
 Constructs a MinimumClearanceCalculator using the DistanceCalculator provided. More...
 
 MinimumClearanceCalculator (const rw::core::Ptr< rw::models::WorkCell > &workcell, const rw::kinematics::State &state)
 Constructs a MinimumClearanceCalculator for a workcell. More...
 
virtual ~MinimumClearanceCalculator ()
 Destructor.
 
double clearance (const rw::kinematics::State &state) const
 Calculates Clearance for the state. More...
 
- Public Member Functions inherited from ClearanceCalculator
virtual ~ClearanceCalculator ()
 Destructor.
 

Detailed Description

Implements a MinimumClearanceCalculator.

The minimum clearance is defined as the minimal distance between any two geometries, which are not excluded by the collision setup.

Constructor & Destructor Documentation

◆ MinimumClearanceCalculator() [1/2]

Constructs a MinimumClearanceCalculator using the DistanceCalculator provided.

Use this constructor to use an already existing DistanceCalculator

Parameters
distancecalculator[in] The distance calculator to use

◆ MinimumClearanceCalculator() [2/2]

Constructs a MinimumClearanceCalculator for a workcell.

Parameters
workcell[in] WorkCell for which to calculate the minimum clearance
state[in] State of the workcell

Member Function Documentation

◆ clearance()

double clearance ( const rw::kinematics::State state) const
virtual

Calculates Clearance for the state.

Parameters
state[in] State for which to calculate the clearance
Returns
The clearance.

Implements ClearanceCalculator.


The documentation for this class was generated from the following file: