Class CompoundState

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class CompoundState : public ompl::base::State

Definition of a compound state.

Subclassed by ompl::base::KleinBottleStateSpace::StateType, ompl::base::MobiusStateSpace::StateType, ompl::base::OwenStateSpace::StateType, ompl::base::SE2StateSpace::StateType, ompl::base::SE3StateSpace::StateType, ompl::base::SphereStateSpace::StateType, ompl::base::TorusStateSpace::StateType, ompl::base::VanaOwenStateSpace::StateType, ompl::base::VanaStateSpace::StateType

Public Functions

CompoundState() = default
~CompoundState() override = default
template<class T>
inline const T *as(unsigned int index) const

Cast a component of this instance to a desired type.

template<class T>
inline T *as(const unsigned int index)

Cast a component of this instance to a desired type.

inline const State *operator[](unsigned int i) const

Access const element ith component. This does not check whether the index is within bounds.

inline State *operator[](unsigned int i)

Access element ith component. This does not check whether the index is within bounds.

Public Members

State **components = {nullptr}

The components that make up a compound state.