Loading...
Searching...
No Matches
ompl::base::TypedStateValidityChecker< SpaceType_ > Class Template Reference
Inheritance diagram for ompl::base::TypedStateValidityChecker< SpaceType_ >:

Public Types

using SpaceType = SpaceType_
using SpaceInformationType = TypedSpaceInformation<SpaceType>

Public Member Functions

 TypedStateValidityChecker (SpaceInformationType *si)
 TypedStateValidityChecker (const typename SpaceInformationType::Ptr &si)
SpaceInformationTypegetTypedSpaceInformation () const
SpaceType * getTypedStateSpace () const
Public Member Functions inherited from ompl::base::StateValidityChecker
 StateValidityChecker (SpaceInformation *si)
 Constructor.
 StateValidityChecker (const SpaceInformationPtr &si)
 Constructor.
virtual bool isValid (const State *state) const =0
 Return true if the state state is valid. Usually, this means at least collision checking. If it is possible that ompl::base::StateSpace::interpolate() or ompl::control::ControlSpace::propagate() return states that are outside of bounds, this function should also make a call to ompl::base::SpaceInformation::satisfiesBounds().
virtual bool isValid (const State *state, double &dist) const
 Return true if the state state is valid. In addition, set dist to the distance to the nearest invalid state.
virtual bool isValid (const State *state, double &dist, State *validState, bool &validStateAvailable) const
 Return true if the state state is valid. In addition, set dist to the distance to the nearest invalid state (using clearance()). If a direction that moves state away from being invalid is available, a valid state in that direction is also set (validState). validStateAvailable is set to true if validState is updated.
virtual double clearance (const State *) const
 Report the distance to the nearest invalid state when starting from state. If the distance is negative, the value of clearance is the penetration depth.
virtual double clearance (const State *state, State *, bool &validStateAvailable) const
 Report the distance to the nearest invalid state when starting from state, and if possible, also specify a valid state validState in the direction that moves away from the colliding state. The validStateAvailable flag is set to true if validState is updated.
const StateValidityCheckerSpecsgetSpecs () const
 Return the specifications (capabilities of this state validity checker)
virtual bool operator== (const StateValidityChecker &) const
 Checks for equivalence between two Statevaliditycheckers.
bool operator!= (const StateValidityChecker &rhs) const

Static Public Member Functions

static SpaceType::StateType * state_as (State *s)
static const SpaceType::StateType * state_as (const State *s)

Additional Inherited Members

Protected Attributes inherited from ompl::base::StateValidityChecker
SpaceInformationsi_
 The instance of space information this state validity checker operates on.
StateValidityCheckerSpecs specs_
 The specifications of the state validity checker (its capabilities)

Detailed Description

template<typename SpaceType_>
class ompl::base::TypedStateValidityChecker< SpaceType_ >

Definition at line 49 of file TypedStateValidityChecker.h.

Member Typedef Documentation

◆ SpaceInformationType

template<typename SpaceType_>
using ompl::base::TypedStateValidityChecker< SpaceType_ >::SpaceInformationType = TypedSpaceInformation<SpaceType>

Definition at line 53 of file TypedStateValidityChecker.h.

◆ SpaceType

template<typename SpaceType_>
using ompl::base::TypedStateValidityChecker< SpaceType_ >::SpaceType = SpaceType_

Definition at line 52 of file TypedStateValidityChecker.h.

Constructor & Destructor Documentation

◆ TypedStateValidityChecker() [1/2]

template<typename SpaceType_>
ompl::base::TypedStateValidityChecker< SpaceType_ >::TypedStateValidityChecker ( SpaceInformationType * si)
inline

Definition at line 55 of file TypedStateValidityChecker.h.

◆ TypedStateValidityChecker() [2/2]

template<typename SpaceType_>
ompl::base::TypedStateValidityChecker< SpaceType_ >::TypedStateValidityChecker ( const typename SpaceInformationType::Ptr & si)
inline

Definition at line 59 of file TypedStateValidityChecker.h.

Member Function Documentation

◆ getTypedSpaceInformation()

template<typename SpaceType_>
SpaceInformationType * ompl::base::TypedStateValidityChecker< SpaceType_ >::getTypedSpaceInformation ( ) const
inline

Definition at line 63 of file TypedStateValidityChecker.h.

◆ getTypedStateSpace()

template<typename SpaceType_>
SpaceType * ompl::base::TypedStateValidityChecker< SpaceType_ >::getTypedStateSpace ( ) const
inline

Definition at line 68 of file TypedStateValidityChecker.h.

◆ state_as() [1/2]

template<typename SpaceType_>
const SpaceType::StateType * ompl::base::TypedStateValidityChecker< SpaceType_ >::state_as ( const State * s)
inlinestatic

Definition at line 78 of file TypedStateValidityChecker.h.

◆ state_as() [2/2]

template<typename SpaceType_>
SpaceType::StateType * ompl::base::TypedStateValidityChecker< SpaceType_ >::state_as ( State * s)
inlinestatic

Definition at line 73 of file TypedStateValidityChecker.h.


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