hpp::manipulation::graph::NodeSelector Class Reference

This class is used to get the state of a configuration. More...

#include <hpp/manipulation/graph/node-selector.hh>

Inheritance diagram for hpp::manipulation::graph::NodeSelector:
Collaboration diagram for hpp::manipulation::graph::NodeSelector:

Public Member Functions

NodePtr_t createNode ()
 Create an empty node. More...
 
NodePtr_t getNode (ConfigurationIn_t config) const
 Returns the state of a configuration. More...
 
virtual EdgePtr_t chooseEdge (const NodePtr_t &node) const
 Select randomly an outgoing edge of the given node. More...
 
void addNumericalConstraint (const core::NumericalConstraintPtr_t &, const SizeIntervals_t &=SizeIntervals_t())
 Should never be called. More...
 
void addLockedJointConstraint (const core::LockedJoint &)
 Should never be called. 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
const std::string & name () const
 Get the component name. More...
 
void name (const std::string &name)
 Set the component name. More...
 
int id () const
 Return the component id. More...
 
virtual void addNumericalConstraint (const DifferentiableFunctionPtr_t &function, const ComparisonTypePtr_t &ineq) HPP_MANIPULATION_DEPRECATED
 Add core::DifferentiableFunction to the component. More...
 
virtual void addLockedJointConstraint (const LockedJointPtr_t &constraint)
 Add core::LockedJoint constraint to the component. More...
 
bool insertNumericalConstraints (ConfigProjectorPtr_t &proj) const
 Insert the numerical constraints in a ConfigProjector. More...
 
bool insertLockedJoints (ConfigProjectorPtr_t &cs) const
 Insert the LockedJoint constraints in a ConstraintSet. More...
 
const NumericalConstraints_tnumericalConstraints () const
 Get a reference to the NumericalConstraints_t. More...
 
const LockedJoints_tlockedJoints () const
 Get a reference to the LockedJoints_t. More...
 
void parentGraph (const GraphWkPtr_t &parent)
 Set the parent graph. More...
 

Static Public Member Functions

static NodeSelectorPtr_t create ()
 Create a new NodeSelector. More...
 
- Static Public Member Functions inherited from hpp::manipulation::graph::GraphComponent
static GraphComponentWkPtr_t get (int id)
 Get the component by its ID. More...
 

Protected Member Functions

void init (const NodeSelectorPtr_t &weak)
 Initialization of the object. More...
 
 NodeSelector ()
 Constructor. More...
 
std::ostream & print (std::ostream &os) const
 Print the object in a stream. More...
 
- Protected Member Functions inherited from hpp::manipulation::graph::GraphComponent
void init (const GraphComponentWkPtr_t &weak)
 Initialize the component. More...
 
 GraphComponent ()
 
virtual void populateTooltip (dot::Tooltip &tp) const
 Populate DrawingAttributes tooltip. More...
 

Additional Inherited Members

- Protected Attributes inherited from hpp::manipulation::graph::GraphComponent
NumericalConstraints_t numericalConstraints_
 Stores the numerical constraints. More...
 
std::vector< SizeIntervals_tpassiveDofs_
 Stores the passive dofs for each numerical constraints. More...
 
LockedJoints_t lockedJoints_
 List of LockedJoint constraints. More...
 
GraphWkPtr_t graph_
 A weak pointer to the parent graph. More...
 

Detailed Description

This class is used to get the state of a configuration.

States have to be ordered because a configuration can be in several states.

Constructor & Destructor Documentation

◆ NodeSelector()

hpp::manipulation::graph::NodeSelector::NodeSelector ( )
inlineprotected

Constructor.

Member Function Documentation

◆ addLockedJointConstraint()

void hpp::manipulation::graph::NodeSelector::addLockedJointConstraint ( const core::LockedJoint &  )
inline

Should never be called.

◆ addNumericalConstraint()

void hpp::manipulation::graph::NodeSelector::addNumericalConstraint ( const core::NumericalConstraintPtr_t &  ,
const SizeIntervals_t = SizeIntervals_t () 
)
inlinevirtual

Should never be called.

Reimplemented from hpp::manipulation::graph::GraphComponent.

◆ chooseEdge()

virtual EdgePtr_t hpp::manipulation::graph::NodeSelector::chooseEdge ( const NodePtr_t node) const
virtual

Select randomly an outgoing edge of the given node.

◆ create()

static NodeSelectorPtr_t hpp::manipulation::graph::NodeSelector::create ( )
static

Create a new NodeSelector.

◆ createNode()

NodePtr_t hpp::manipulation::graph::NodeSelector::createNode ( )

Create an empty node.

◆ dotPrint()

std::ostream& hpp::manipulation::graph::NodeSelector::dotPrint ( std::ostream &  os,
dot::DrawingAttributes  da = dot::DrawingAttributes() 
) const
virtual

Print the object in a stream.

Reimplemented from hpp::manipulation::graph::GraphComponent.

◆ getNode()

NodePtr_t hpp::manipulation::graph::NodeSelector::getNode ( ConfigurationIn_t  config) const

Returns the state of a configuration.

◆ init()

void hpp::manipulation::graph::NodeSelector::init ( const NodeSelectorPtr_t weak)
protected

Initialization of the object.

◆ print()

std::ostream& hpp::manipulation::graph::NodeSelector::print ( std::ostream &  os) const
protectedvirtual

Print the object in a stream.

Reimplemented from hpp::manipulation::graph::GraphComponent.