hpp-manipulation
4.9.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, const segments_t &passiveDofs=segments_t()) |
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... | |
virtual void | addLockedJointConstraint (const LockedJointPtr_t &constraint) HPP_MANIPULATION_DEPRECATED |
virtual void | resetLockedJoints () HPP_MANIPULATION_DEPRECATED |
Reset the locked joint in the component. More... | |
bool | insertNumericalConstraints (ConfigProjectorPtr_t &proj) const |
bool | insertLockedJoints (ConfigProjectorPtr_t &cs) const HPP_MANIPULATION_DEPRECATED |
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... | |
const IntervalsContainer_t & | passiveDofs () const |
Get a reference to the NumericalConstraints_t. More... | |
const LockedJoints_t & | lockedJoints () const HPP_MANIPULATION_DEPRECATED |
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... | |
void | setDirty () |
Declare a component as dirty. More... | |
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... | |
IntervalsContainer_t | passiveDofs_ |
Stores the passive dofs for each numerical constraints. More... | |
NumericalConstraints_t | numericalCosts_ |
Stores the numerical costs. More... | |
const LockedJoints_t | lockedJoints_ |
List of LockedJoint constraints: 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 core::LockedJoint constraint to the component.
|
virtual |
Add Implicit to the component.
passiveDofs | see ConfigProjector::addNumericalConstraint |
|
virtual |
Add a cost function Implicit to the component.
|
virtual |
Print the component in DOT language.
Reimplemented in hpp::manipulation::graph::LevelSetEdge, hpp::manipulation::graph::WaypointEdge, hpp::manipulation::graph::Graph, hpp::manipulation::graph::Edge, and hpp::manipulation::graph::State.
|
inline |
Return the component id.
|
protected |
Initialize the component.
|
protectedpure virtual |
bool hpp::manipulation::graph::GraphComponent::insertLockedJoints | ( | ConfigProjectorPtr_t & | cs | ) | const |
Insert the LockedJoint constraints in a ConstraintSet
bool hpp::manipulation::graph::GraphComponent::insertNumericalConstraints | ( | ConfigProjectorPtr_t & | proj | ) | const |
Insert the numerical constraints in a ConfigProjector
const LockedJoints_t& hpp::manipulation::graph::GraphComponent::lockedJoints | ( | ) | const |
Get a reference to the LockedJoints_t
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.
void hpp::manipulation::graph::GraphComponent::parentGraph | ( | const GraphWkPtr_t & | parent | ) |
Set the parent graph.
GraphPtr_t hpp::manipulation::graph::GraphComponent::parentGraph | ( | ) | const |
Set the parent graph.
const IntervalsContainer_t& hpp::manipulation::graph::GraphComponent::passiveDofs | ( | ) | const |
Get a reference to the NumericalConstraints_t.
|
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::LevelSetEdge, hpp::manipulation::graph::WaypointEdge, hpp::manipulation::graph::Graph, hpp::manipulation::graph::Edge, and hpp::manipulation::graph::State.
|
virtual |
Reset the locked joint in the component.
|
virtual |
Reset the numerical constraints stored in the component.
void hpp::manipulation::graph::GraphComponent::setDirty | ( | ) |
Declare a component as dirty.
|
protected |
|
friend |
|
friend |
|
protected |
A weak pointer to the parent graph.
|
protected |
|
protected |
List of LockedJoint constraints:
|
protected |
Stores the numerical constraints.
|
protected |
Stores the numerical costs.
|
protected |
Stores the passive dofs for each numerical constraints.