Aikido
aikido::planner::dart::ConfigurationToTSR Class Reference

Planning problem to plan to a given single Task Space Region (TSR). More...

#include <aikido/planner/dart/ConfigurationToTSR.hpp>

Inheritance diagram for aikido::planner::dart::ConfigurationToTSR:
aikido::planner::Problem

Public Member Functions

 ConfigurationToTSR (statespace::dart::ConstMetaSkeletonStateSpacePtr stateSpace, ::dart::dynamics::ConstMetaSkeletonPtr metaSkeleton, ::dart::dynamics::ConstBodyNodePtr endEffectorBodyNode, std::size_t maxSamples, constraint::dart::ConstTSRPtr goalTSR, constraint::ConstTestablePtr constraint=nullptr)
 Constructor. More...
 
 ConfigurationToTSR (statespace::dart::ConstMetaSkeletonStateSpacePtr stateSpace, const statespace::dart::MetaSkeletonStateSpace::State *startState, ::dart::dynamics::ConstBodyNodePtr endEffectorBodyNode, std::size_t maxSamples, constraint::dart::ConstTSRPtr goalTSR, constraint::ConstTestablePtr constraint=nullptr)
 Constructor. More...
 
const std::string & getType () const override
 Returns type of this planning problem. More...
 
::dart::dynamics::ConstBodyNodePtr getEndEffectorBodyNode () const
 Returns the end-effector BodyNode to be planned to move to a desired TSR. More...
 
std::size_t getMaxSamples () const
 Returns the maximum number of TSR samples to plan to. More...
 
const statespace::dart::MetaSkeletonStateSpace::StategetStartState () const
 Returns the start state to plan from, either set on construction or taken from the current state of the MetaSkeleton. More...
 
constraint::dart::ConstTSRPtr getGoalTSR () const
 Returns the goal TSR. More...
 
- Public Member Functions inherited from aikido::planner::Problem
 Problem (statespace::ConstStateSpacePtr stateSpace, constraint::ConstTestablePtr constraint=nullptr)
 Constructor. More...
 
virtual ~Problem ()=default
 Destructor. More...
 
statespace::ConstStateSpacePtr getStateSpace () const
 Returns const state space. More...
 
constraint::ConstTestablePtr getConstraint () const
 Returns the constraint that must be satisfied throughout the trajectory. More...
 

Static Public Member Functions

static const std::string & getStaticType ()
 Returns the type of the planning problem. More...
 

Protected Attributes

statespace::dart::ConstMetaSkeletonStateSpacePtr mMetaSkeletonStateSpace
 MetaSkeletonStateSpace. More...
 
::dart::dynamics::ConstMetaSkeletonPtr mMetaSkeleton
 MetaSkeleton, if given. More...
 
statespace::dart::MetaSkeletonStateSpace::ScopedState mStartState
 Start state, if set on construction. More...
 
const ::dart::dynamics::ConstBodyNodePtr mEndEffectorBodyNode
 End-effector body node. More...
 
std::size_t mMaxSamples
 Maximum number of TSR samples to plan to. More...
 
const constraint::dart::ConstTSRPtr mGoalTSR
 Goal TSR. More...
 
- Protected Attributes inherited from aikido::planner::Problem
statespace::ConstStateSpacePtr mStateSpace
 State space associated with this problem. More...
 
constraint::ConstTestablePtr mConstraint
 Trajectory-wide constraint that must be satisfied. More...
 

Detailed Description

Planning problem to plan to a given single Task Space Region (TSR).

Constructor & Destructor Documentation

◆ ConfigurationToTSR() [1/2]

aikido::planner::dart::ConfigurationToTSR::ConfigurationToTSR ( statespace::dart::ConstMetaSkeletonStateSpacePtr  stateSpace,
::dart::dynamics::ConstMetaSkeletonPtr  metaSkeleton,
::dart::dynamics::ConstBodyNodePtr  endEffectorBodyNode,
std::size_t  maxSamples,
constraint::dart::ConstTSRPtr  goalTSR,
constraint::ConstTestablePtr  constraint = nullptr 
)

Constructor.

Note that this constructor takes the start state from the current state of the passed MetaSkeleton.

Parameters
[in]stateSpaceState space.
[in]metaSkeletonMetaSkeleton that getStartState will return the current state of when called.
[in]endEffectorBodyNodeBodyNode to be planned to move to a desired TSR.
[in]maxSamplesMaximum number of TSR samples to plan to.
[in]goalTSRGoal TSR.
[in]constraintTrajectory-wide constraint that must be satisfied.
Exceptions
IfstateSpace is not compatible with constraint's state space.

◆ ConfigurationToTSR() [2/2]

aikido::planner::dart::ConfigurationToTSR::ConfigurationToTSR ( statespace::dart::ConstMetaSkeletonStateSpacePtr  stateSpace,
const statespace::dart::MetaSkeletonStateSpace::State startState,
::dart::dynamics::ConstBodyNodePtr  endEffectorBodyNode,
std::size_t  maxSamples,
constraint::dart::ConstTSRPtr  goalTSR,
constraint::ConstTestablePtr  constraint = nullptr 
)

Constructor.

Note that this constructor sets the start state on construction.

Parameters
[in]stateSpaceState space.
[in]startStateStart state to plan from.
[in]endEffectorBodyNodeBodyNode to be planned to move to a desired TSR.
[in]maxSamplesMaximum number of TSR samples to plan to.
[in]goalTSRGoal TSR.
[in]constraintTrajectory-wide constraint that must be satisfied.
Exceptions
IfstateSpace is not compatible with constraint's state space.

Member Function Documentation

◆ getEndEffectorBodyNode()

::dart::dynamics::ConstBodyNodePtr aikido::planner::dart::ConfigurationToTSR::getEndEffectorBodyNode ( ) const

Returns the end-effector BodyNode to be planned to move to a desired TSR.

◆ getGoalTSR()

constraint::dart::ConstTSRPtr aikido::planner::dart::ConfigurationToTSR::getGoalTSR ( ) const

Returns the goal TSR.

◆ getMaxSamples()

std::size_t aikido::planner::dart::ConfigurationToTSR::getMaxSamples ( ) const

Returns the maximum number of TSR samples to plan to.

◆ getStartState()

const statespace::dart::MetaSkeletonStateSpace::State* aikido::planner::dart::ConfigurationToTSR::getStartState ( ) const

Returns the start state to plan from, either set on construction or taken from the current state of the MetaSkeleton.

◆ getStaticType()

static const std::string& aikido::planner::dart::ConfigurationToTSR::getStaticType ( )
static

Returns the type of the planning problem.

◆ getType()

const std::string& aikido::planner::dart::ConfigurationToTSR::getType ( ) const
overridevirtual

Returns type of this planning problem.

Implements aikido::planner::Problem.

Member Data Documentation

◆ mEndEffectorBodyNode

const ::dart::dynamics::ConstBodyNodePtr aikido::planner::dart::ConfigurationToTSR::mEndEffectorBodyNode
protected

End-effector body node.

◆ mGoalTSR

const constraint::dart::ConstTSRPtr aikido::planner::dart::ConfigurationToTSR::mGoalTSR
protected

Goal TSR.

◆ mMaxSamples

std::size_t aikido::planner::dart::ConfigurationToTSR::mMaxSamples
protected

Maximum number of TSR samples to plan to.

◆ mMetaSkeleton

::dart::dynamics::ConstMetaSkeletonPtr aikido::planner::dart::ConfigurationToTSR::mMetaSkeleton
protected

MetaSkeleton, if given.

◆ mMetaSkeletonStateSpace

statespace::dart::ConstMetaSkeletonStateSpacePtr aikido::planner::dart::ConfigurationToTSR::mMetaSkeletonStateSpace
protected

MetaSkeletonStateSpace.

Prevents use of expensive dynamic cast on mStateSpace.

◆ mStartState

statespace::dart::MetaSkeletonStateSpace::ScopedState aikido::planner::dart::ConfigurationToTSR::mStartState
protected

Start state, if set on construction.