Skip to content
Snippets Groups Projects
Commit a8860952 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Add StateSelector::getWaypointStates

parent 4bf4f278
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,9 @@ namespace hpp { ...@@ -48,6 +48,9 @@ namespace hpp {
/// Returns a list of all the states /// Returns a list of all the states
States_t getStates () const; States_t getStates () const;
/// Returns a list of all the states
States_t getWaypointStates () const;
/// Select randomly an outgoing edge of the given state. /// Select randomly an outgoing edge of the given state.
virtual EdgePtr_t chooseEdge(RoadmapNodePtr_t from) const; virtual EdgePtr_t chooseEdge(RoadmapNodePtr_t from) const;
......
...@@ -72,6 +72,11 @@ namespace hpp { ...@@ -72,6 +72,11 @@ namespace hpp {
return ret; return ret;
} }
States_t StateSelector::getWaypointStates () const
{
return waypoints_;
}
StatePtr_t StateSelector::getState(ConfigurationIn_t config) const StatePtr_t StateSelector::getState(ConfigurationIn_t config) const
{ {
for (WeighedStates_t::const_iterator it = orderedStates_.begin(); for (WeighedStates_t::const_iterator it = orderedStates_.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment