|
hpp-manipulation
6.0.0
Classes for manipulation planning.
|
#include <hpp/manipulation/graph/state.hh>


Public Types | |
| typedef std::function< EdgePtr_t(const std::string &, const GraphWkPtr_t &, const StateWkPtr_t &, const StateWkPtr_t &)> | EdgeFactory |
Public Member Functions | |
| ~State () | |
| Destructor. More... | |
| EdgePtr_t | linkTo (const std::string &name, const StatePtr_t &to, const size_type &w=1, EdgeFactory create=Edge::create) |
| virtual bool | contains (ConfigurationIn_t config) const |
| bool | isWaypoint () const |
| void | isWaypoint (bool isWaypoint) |
| StateSelectorWkPtr_t | stateSelector () const |
| Get the parent StateSelector. More... | |
| void | stateSelector (const StateSelectorWkPtr_t &parent) |
| Set the StateSelector containing this state. More... | |
| const Neighbors_t & | neighbors () const |
| Get the neighbors. More... | |
| Edges_t | neighborEdges () const |
| Get the neighbors. More... | |
| const Edges_t & | hiddenNeighbors () const |
| void | updateWeight (const EdgePtr_t &edge, const Weight_t &w) |
| Set weight of edge starting from this state. More... | |
| Weight_t | getWeight (const EdgePtr_t &edge) |
| Get weight of edge starting from this state. More... | |
| ConstraintSetPtr_t | configConstraint () const |
| Constraint to project onto this state. More... | |
| virtual void | addNumericalConstraint (const ImplicitPtr_t &numConstraint) |
| virtual void | addNumericalConstraintForPath (const ImplicitPtr_t &nm) |
| Add a constraint for paths that lie in this state. More... | |
| bool | insertNumericalConstraintsForPath (ConfigProjectorPtr_t &proj) const |
| const NumericalConstraints_t & | numericalConstraintsForPath () const |
| Get a reference to the NumericalConstraints_t. 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::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 | addNumericalCost (const ImplicitPtr_t &numCost) |
| Add a cost function Implicit to the component. More... | |
| virtual void | resetNumericalConstraints () |
| Reset the numerical constraints stored in the component. More... | |
| bool | insertNumericalConstraints (ConfigProjectorPtr_t &proj) const |
| const NumericalConstraints_t & | numericalConstraints () const |
| Get a reference to the NumericalConstraints_t. More... | |
| const NumericalConstraints_t & | numericalCosts () const |
| Get a reference to the NumericalConstraints_t. More... | |
| void | parentGraph (const GraphWkPtr_t &parent) |
| Set the parent graph. More... | |
| GraphPtr_t | parentGraph () const |
| Set the parent graph. More... | |
| virtual void | invalidate () |
| void | solveLevelByLevel (bool solveLevelByLevel) |
| bool | solveLevelByLevel () const |
Static Public Member Functions | |
| static StatePtr_t | create (const std::string &name) |
| Create a new state. More... | |
Protected Member Functions | |
| void | init (const StateWkPtr_t &self) |
| Initialize the object. More... | |
| State (const std::string &name) | |
| Constructor. More... | |
| std::ostream & | print (std::ostream &os) const |
| Print the object in a stream. More... | |
| virtual void | populateTooltip (dot::Tooltip &tp) const |
| Populate DrawingAttributes tooltip. 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 |
Additional Inherited Members | |
Protected Attributes inherited from hpp::manipulation::graph::GraphComponent | |
| NumericalConstraints_t | numericalConstraints_ |
| Stores the numerical constraints. More... | |
| NumericalConstraints_t | numericalCosts_ |
| Stores the numerical costs. More... | |
| GraphWkPtr_t | graph_ |
| A weak pointer to the parent graph. More... | |
| bool | isInit_ |
State of an end-effector.
States of the graph of constraints. There is one graph for each end-effector.
| typedef std::function<EdgePtr_t(const std::string&, const GraphWkPtr_t&, const StateWkPtr_t&, const StateWkPtr_t&)> hpp::manipulation::graph::State::EdgeFactory |
| hpp::manipulation::graph::State::~State | ( | ) |
Destructor.
|
protected |
Constructor.
|
virtual |
Add constraint to the state Call the parent implementation.
| std::logic_error | if the constraint is parameterizable (contains at least one Equality comparison type). |
Reimplemented from hpp::manipulation::graph::GraphComponent.
|
inlinevirtual |
Add a constraint for paths that lie in this state.
|
inline |
Constraint to project onto this state.
|
virtual |
Check whether the configuration is in this state.
|
static |
Create a new state.
|
virtual |
Print the object in a stream.
Reimplemented from hpp::manipulation::graph::GraphComponent.
Get weight of edge starting from this state.
|
inline |
Get the hidden neighbors It is a vector of transitions outgoing from this state and that are included in a waypoint edge.
|
protected |
Initialize the object.
|
protectedvirtual |
Implements hpp::manipulation::graph::GraphComponent.
|
inline |
Insert the numerical constraints in a ConfigProjector
|
inline |
|
inline |
| EdgePtr_t hpp::manipulation::graph::State::linkTo | ( | const std::string & | name, |
| const StatePtr_t & | to, | ||
| const size_type & | w = 1, |
||
| EdgeFactory | create = Edge::create |
||
| ) |
Create a link from this state to the given state.
| w | if strictly negative, the edge is not included in the neighbor list. Otherwise, it is included with Weight_t w |
|
inline |
Get the neighbors.
|
inline |
Get the neighbors.
|
inline |
Get a reference to the NumericalConstraints_t.
|
protectedvirtual |
Populate DrawingAttributes tooltip.
Reimplemented from hpp::manipulation::graph::GraphComponent.
|
protectedvirtual |
Print the object in a stream.
Reimplemented from hpp::manipulation::graph::GraphComponent.
|
inline |
Get the parent StateSelector.
|
inline |
Set the StateSelector containing this state.
Set weight of edge starting from this state.