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. | |
const std::size_t & | id () const |
Return the component id. | |
virtual void | addNumericalConstraint (const ImplicitPtr_t &numConstraint) |
Add constraint to the component. | |
virtual void | addNumericalCost (const ImplicitPtr_t &numCost) |
Add a cost function Implicit to the component. | |
virtual void | resetNumericalConstraints () |
Reset the numerical constraints stored in the component. | |
bool | insertNumericalConstraints (ConfigProjectorPtr_t &proj) const |
const NumericalConstraints_t & | numericalConstraints () const |
Get a reference to the NumericalConstraints_t. | |
const NumericalConstraints_t & | numericalCosts () const |
Get a reference to the NumericalConstraints_t. | |
void | parentGraph (const GraphWkPtr_t &parent) |
Set the parent graph. | |
GraphPtr_t | parentGraph () const |
Set the parent graph. | |
virtual std::ostream & | dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const |
Print the component in DOT language. | |
virtual void | invalidate () |
void | solveLevelByLevel (bool solveLevelByLevel) |
bool | solveLevelByLevel () const |
Protected Member Functions | |
void | init (const GraphComponentWkPtr_t &weak) |
Initialize the component. | |
GraphComponent (const std::string &name) | |
void | throwIfNotInitialized () const |
virtual std::ostream & | print (std::ostream &os) const |
Print the object in a stream. | |
virtual void | populateTooltip (dot::Tooltip &tp) const |
Populate DrawingAttributes tooltip. | |
virtual void | initialize ()=0 |
Protected Attributes | |
NumericalConstraints_t | numericalConstraints_ |
Stores the numerical constraints. | |
NumericalConstraints_t | numericalCosts_ |
Stores the numerical costs. | |
GraphWkPtr_t | graph_ |
A weak pointer to the parent graph. | |
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::Edge, hpp::manipulation::graph::WaypointEdge, hpp::manipulation::graph::LevelSetEdge, hpp::manipulation::graph::Graph, and hpp::manipulation::graph::State.
|
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::LevelSetEdge, and hpp::manipulation::graph::State.
|
protectedvirtual |
Print the object in a stream.
Reimplemented in hpp::manipulation::graph::Edge, hpp::manipulation::graph::WaypointEdge, hpp::manipulation::graph::LevelSetEdge, hpp::manipulation::graph::Graph, and hpp::manipulation::graph::State.
|
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.