hpp-manipulation
4.9.0
Classes for manipulation planning.
|
#include <hpp/manipulation/graph/state-selector.hh>
Public Member Functions | |
virtual | ~StateSelector () |
const std::string & | name () const |
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... | |
States_t | getWaypointStates () const |
Returns a list of all the states. More... | |
virtual EdgePtr_t | chooseEdge (RoadmapNodePtr_t from) const |
Select randomly an outgoing edge of the given state. More... | |
virtual std::ostream & | dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const |
Print the object in a stream. More... | |
void | parentGraph (const GraphWkPtr_t &parent) |
Set the parent graph. More... | |
GraphPtr_t | parentGraph () const |
Set the parent graph. More... | |
Static Public Member Functions | |
static StateSelectorPtr_t | create (const std::string &name) |
Create a new StateSelector. More... | |
Protected Types | |
typedef std::pair< int, StatePtr_t > | WeighedState_t |
List of the states of one end-effector, ordered by priority. More... | |
typedef std::list< WeighedState_t > | WeighedStates_t |
Protected Member Functions | |
void | init (const StateSelectorPtr_t &weak) |
Initialization of the object. More... | |
StateSelector (const std::string &name) | |
Constructor. More... | |
virtual std::ostream & | print (std::ostream &os) const |
Print the object in a stream. More... | |
Protected Attributes | |
WeighedStates_t | orderedStates_ |
States_t | waypoints_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const StateSelector &ss) |
This class is used to get the state of a configuration. States have to be ordered because a configuration can be in several states.
|
protected |
List of the states of one end-effector, ordered by priority.
|
protected |
|
inlinevirtual |
|
inlineprotected |
Constructor.
|
virtual |
Select randomly an outgoing edge of the given state.
Reimplemented in hpp::manipulation::graph::GuidedStateSelector.
|
static |
Create a new StateSelector.
StatePtr_t hpp::manipulation::graph::StateSelector::createState | ( | const std::string & | name, |
bool | waypoint = false , |
||
const int | w = 0 |
||
) |
Create an empty state.
|
virtual |
Print the object in a stream.
Reimplemented in hpp::manipulation::graph::GuidedStateSelector.
StatePtr_t hpp::manipulation::graph::StateSelector::getState | ( | ConfigurationIn_t | config | ) | const |
Returns the state of a configuration.
StatePtr_t hpp::manipulation::graph::StateSelector::getState | ( | RoadmapNodePtr_t | node | ) | const |
Returns the state of a roadmap state.
States_t hpp::manipulation::graph::StateSelector::getStates | ( | ) | const |
Returns a list of all the states.
States_t hpp::manipulation::graph::StateSelector::getWaypointStates | ( | ) | const |
Returns a list of all the states.
|
protected |
Initialization of the object.
|
inline |
void hpp::manipulation::graph::StateSelector::parentGraph | ( | const GraphWkPtr_t & | parent | ) |
Set the parent graph.
GraphPtr_t hpp::manipulation::graph::StateSelector::parentGraph | ( | ) | const |
Set the parent graph.
|
protectedvirtual |
Print the object in a stream.
Reimplemented in hpp::manipulation::graph::GuidedStateSelector.
|
friend |
|
protected |
|
protected |