hpp::manipulation::graph::GuidedStateSelector Class Reference

#include <hpp/manipulation/graph/guided-state-selector.hh>

Inheritance diagram for hpp::manipulation::graph::GuidedStateSelector:
[legend]
Collaboration diagram for hpp::manipulation::graph::GuidedStateSelector:
[legend]

Public Member Functions

void setStateList (const States_t &stateList)
 Set the target. More...
 
virtual EdgePtr_t chooseEdge (RoadmapNodePtr_t from) const
 Select randomly an outgoing edge of the given node. More...
 
std::ostream & dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const
 Print the object in a stream. More...
 
- Public Member Functions inherited from hpp::manipulation::graph::StateSelector
virtual ~StateSelector ()
 
StatePtr_t createState (const std::string &name, bool waypoint=false, const int w=0)
 Create an empty state. More...
 
StatePtr_t getState (ConfigurationIn_t config) const
 Returns the state of a configuration. More...
 
StatePtr_t getState (RoadmapNodePtr_t node) const
 Returns the state of a roadmap state. More...
 
States_t getStates () const
 Returns a list of all the states. More...
 
void addNumericalConstraint (const constraints::ImplicitPtr_t &, const segments_t &=segments_t())
 Should never be called. More...
 
void addLockedJointConstraint (const constraints::LockedJoint &)
 Should never be called. More...
 
- Public Member Functions inherited from hpp::manipulation::graph::GraphComponent
virtual ~GraphComponent ()
 
const std::string & name () const
 Get the component name. More...
 
const std::size_t & id () const
 Return the component id. More...
 
virtual void addNumericalConstraint (const DifferentiableFunctionPtr_t &function, const ComparisonTypes_t &ineq) HPP_MANIPULATION_DEPRECATED
 Add core::DifferentiableFunction to the component. More...
 
virtual void resetNumericalConstraints ()
 Reset the numerical constraints stored in the component. More...
 
virtual void addLockedJointConstraint (const LockedJointPtr_t &constraint)
 Add core::LockedJoint constraint to the component. More...
 
virtual void resetLockedJoints ()
 Reset the locked joint in the component. More...
 
bool insertNumericalConstraints (ConfigProjectorPtr_t &proj) const
 Insert the numerical constraints in a ConfigProjector. More...
 
bool insertLockedJoints (ConfigProjectorPtr_t &cs) const
 Insert the LockedJoint constraints in a ConstraintSet. More...
 
const NumericalConstraints_tnumericalConstraints () const
 Get a reference to the NumericalConstraints_t. More...
 
const IntervalsContainer_tpassiveDofs () const
 Get a reference to the NumericalConstraints_t. More...
 
const LockedJoints_tlockedJoints () const
 Get a reference to the LockedJoints_t. More...
 
void parentGraph (const GraphWkPtr_t &parent)
 Set the parent graph. More...
 
GraphPtr_t parentGraph () const
 Set the parent graph. More...
 
void setDirty ()
 Declare a component as dirty. More...
 

Static Public Member Functions

static GuidedStateSelectorPtr_t create (const std::string &name, const core::RoadmapPtr_t &roadmap)
 Create a new GuidedStateSelector. More...
 
- Static Public Member Functions inherited from hpp::manipulation::graph::StateSelector
static StateSelectorPtr_t create (const std::string &name)
 Create a new StateSelector. More...
 

Protected Member Functions

void init (const GuidedStateSelectorPtr_t &weak)
 Initialization of the object. More...
 
 GuidedStateSelector (const std::string &name, const core::RoadmapPtr_t roadmap)
 Constructor. More...
 
std::ostream & print (std::ostream &os) const
 Print the object in a stream. More...
 
- Protected Member Functions inherited from hpp::manipulation::graph::StateSelector
void init (const StateSelectorPtr_t &weak)
 Initialization of the object. More...
 
 StateSelector (const std::string &name)
 Constructor. More...
 
virtual void initialize ()
 
- Protected Member Functions inherited from hpp::manipulation::graph::GraphComponent
void init (const GraphComponentWkPtr_t &weak)
 Initialize the component. More...
 
 GraphComponent (const std::string &name)
 
void throwIfNotInitialized () const
 
virtual void populateTooltip (dot::Tooltip &tp) const
 Populate DrawingAttributes tooltip. More...
 

Additional Inherited Members

- Protected Types inherited from hpp::manipulation::graph::StateSelector
typedef std::pair< int, StatePtr_tWeighedState_t
 List of the states of one end-effector, ordered by priority. More...
 
typedef std::list< WeighedState_tWeighedStates_t
 
- Protected Attributes inherited from hpp::manipulation::graph::StateSelector
WeighedStates_t orderedStates_
 
States_t waypoints_
 
- Protected Attributes inherited from hpp::manipulation::graph::GraphComponent
NumericalConstraints_t numericalConstraints_
 Stores the numerical constraints. More...
 
IntervalsContainer_t passiveDofs_
 Stores the passive dofs for each numerical constraints. More...
 
LockedJoints_t lockedJoints_
 List of LockedJoint constraints. More...
 
GraphWkPtr_t graph_
 A weak pointer to the parent graph. More...
 
bool isInit_
 

Constructor & Destructor Documentation

hpp::manipulation::graph::GuidedStateSelector::GuidedStateSelector ( const std::string &  name,
const core::RoadmapPtr_t  roadmap 
)
inlineprotected

Constructor.

References print().

Member Function Documentation

virtual EdgePtr_t hpp::manipulation::graph::GuidedStateSelector::chooseEdge ( RoadmapNodePtr_t  from) const
virtual

Select randomly an outgoing edge of the given node.

Reimplemented from hpp::manipulation::graph::StateSelector.

static GuidedStateSelectorPtr_t hpp::manipulation::graph::GuidedStateSelector::create ( const std::string &  name,
const core::RoadmapPtr_t roadmap 
)
static

Create a new GuidedStateSelector.

std::ostream& hpp::manipulation::graph::GuidedStateSelector::dotPrint ( std::ostream &  os,
dot::DrawingAttributes  da = dot::DrawingAttributes() 
) const
virtual

Print the object in a stream.

Reimplemented from hpp::manipulation::graph::StateSelector.

void hpp::manipulation::graph::GuidedStateSelector::init ( const GuidedStateSelectorPtr_t weak)
protected

Initialization of the object.

std::ostream& hpp::manipulation::graph::GuidedStateSelector::print ( std::ostream &  os) const
protectedvirtual

Print the object in a stream.

Reimplemented from hpp::manipulation::graph::StateSelector.

void hpp::manipulation::graph::GuidedStateSelector::setStateList ( const States_t stateList)

Set the target.