29#ifndef HPP_MANIPULATION_GRAPH_STATE_SELECTOR_HH
30#define HPP_MANIPULATION_GRAPH_STATE_SELECTOR_HH
38namespace manipulation {
49 const std::string&
name()
const {
return name_; }
89 virtual std::ostream&
print(std::ostream& os)
const;
105 friend std::ostream& operator<<(std::ostream& os,
const StateSelector& ss);
Definition roadmap-node.hh:42
Definition state-selector.hh:42
StatePtr_t getState(ConfigurationIn_t config) const
Returns the state of a configuration.
virtual ~StateSelector()
Definition state-selector.hh:44
void parentGraph(const GraphWkPtr_t &parent)
Set the parent graph.
StateSelector(const std::string &name)
Constructor.
Definition state-selector.hh:86
std::pair< int, StatePtr_t > WeighedState_t
List of the states of one end-effector, ordered by priority.
Definition state-selector.hh:92
States_t getStates() const
Returns a list of all the states.
void init(const StateSelectorPtr_t &weak)
Initialization of the object.
const std::string & name() const
Definition state-selector.hh:49
States_t waypoints_
Definition state-selector.hh:95
virtual EdgePtr_t chooseEdge(RoadmapNodePtr_t from) const
Select randomly an outgoing edge of the given state.
StatePtr_t getState(RoadmapNodePtr_t node) const
Returns the state of a roadmap state.
WeighedStates_t orderedStates_
Definition state-selector.hh:94
States_t getWaypointStates() const
Returns a list of all the states.
virtual std::ostream & print(std::ostream &os) const
Print the object in a stream.
virtual std::ostream & dotPrint(std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const
Print the object in a stream.
static StateSelectorPtr_t create(const std::string &name)
Create a new StateSelector.
StatePtr_t createState(const std::string &name, bool waypoint=false, const int w=0)
Create an empty state.
GraphPtr_t parentGraph() const
Set the parent graph.
std::list< WeighedState_t > WeighedStates_t
Definition state-selector.hh:93
#define HPP_MANIPULATION_DLLAPI
Definition config.hh:88
std::ostream & operator<<(std::ostream &os, const GraphComponent &graphComp)
shared_ptr< Edge > EdgePtr_t
Definition fwd.hh:49
shared_ptr< State > StatePtr_t
Definition fwd.hh:48
shared_ptr< StateSelector > StateSelectorPtr_t
Definition fwd.hh:52
std::vector< StatePtr_t > States_t
Definition fwd.hh:56
shared_ptr< Graph > GraphPtr_t
Definition fwd.hh:47
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition fwd.hh:49