hpp-manipulation
6.0.0
Classes for manipulation planning.
|
Define common methods of the graph components. More...
#include <hpp/manipulation/graph/graph-component.hh>
Public Member Functions | |
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 ImplicitPtr_t &numConstraint) |
Add constraint to the component. 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 std::ostream & | dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const |
Print the component in DOT language. More... | |
virtual void | invalidate () |
void | solveLevelByLevel (bool solveLevelByLevel) |
bool | solveLevelByLevel () const |
Protected Member Functions | |
void | init (const GraphComponentWkPtr_t &weak) |
Initialize the component. More... | |
GraphComponent (const std::string &name) | |
void | throwIfNotInitialized () const |
virtual 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 ()=0 |
Protected Attributes | |
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_ |
Friends | |
class | Graph |
std::ostream & | operator<< (std::ostream &, const GraphComponent &) |
Define common methods of the graph components.
|
inlinevirtual |
|
inlineprotected |
|
virtual |
Add constraint to the component.
Reimplemented in hpp::manipulation::graph::State.
|
virtual |
Add a cost function Implicit to the component.
|
virtual |
Print the component in DOT language.
Reimplemented in hpp::manipulation::graph::State, hpp::manipulation::graph::Graph, hpp::manipulation::graph::LevelSetEdge, hpp::manipulation::graph::WaypointEdge, and hpp::manipulation::graph::Edge.
|
inline |
Return the component id.
|
protected |
Initialize the component.
|
protectedpure virtual |
bool hpp::manipulation::graph::GraphComponent::insertNumericalConstraints | ( | ConfigProjectorPtr_t & | proj | ) | const |
Insert the numerical constraints in a ConfigProjector
|
inlinevirtual |
Invalidate the component The component needs to be initialized again.
Reimplemented in hpp::manipulation::graph::Graph.
const std::string& hpp::manipulation::graph::GraphComponent::name | ( | ) | const |
Get the component name.
const NumericalConstraints_t& hpp::manipulation::graph::GraphComponent::numericalConstraints | ( | ) | const |
Get a reference to the NumericalConstraints_t.
const NumericalConstraints_t& hpp::manipulation::graph::GraphComponent::numericalCosts | ( | ) | const |
Get a reference to the NumericalConstraints_t.
GraphPtr_t hpp::manipulation::graph::GraphComponent::parentGraph | ( | ) | const |
Set the parent graph.
void hpp::manipulation::graph::GraphComponent::parentGraph | ( | const GraphWkPtr_t & | parent | ) |
Set the parent graph.
|
protectedvirtual |
Populate DrawingAttributes tooltip.
Reimplemented in hpp::manipulation::graph::State, and hpp::manipulation::graph::LevelSetEdge.
|
protectedvirtual |
Print the object in a stream.
Reimplemented in hpp::manipulation::graph::State, hpp::manipulation::graph::Graph, hpp::manipulation::graph::LevelSetEdge, hpp::manipulation::graph::WaypointEdge, and hpp::manipulation::graph::Edge.
|
virtual |
Reset the numerical constraints stored in the component.
|
inline |
Get whether hierachical constraints are solved level by level
|
inline |
Set whether hierachical constraints are solved level by level
|
protected |
|
friend |
|
friend |
|
protected |
A weak pointer to the parent graph.
|
protected |
|
protected |
Stores the numerical constraints.
|
protected |
Stores the numerical costs.