This class is used to get the state of a configuration. More...
#include <hpp/manipulation/graph/node-selector.hh>
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... | |
![]() | |
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_t & | numericalConstraints () const |
Get a reference to the NumericalConstraints_t. More... | |
const LockedJoints_t & | lockedJoints () 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 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... | |
![]() | |
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 | |
![]() | |
NumericalConstraints_t | numericalConstraints_ |
Stores the numerical constraints. More... | |
std::vector< SizeIntervals_t > | passiveDofs_ |
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... | |
This class is used to get the state of a configuration.
States have to be ordered because a configuration can be in several states.
|
inlineprotected |
Constructor.
|
inline |
Should never be called.
|
inlinevirtual |
Should never be called.
Reimplemented from hpp::manipulation::graph::GraphComponent.
|
virtual |
Select randomly an outgoing edge of the given node.
|
static |
Create a new NodeSelector.
NodePtr_t hpp::manipulation::graph::NodeSelector::createNode | ( | ) |
Create an empty node.
|
virtual |
Print the object in a stream.
Reimplemented from hpp::manipulation::graph::GraphComponent.
NodePtr_t hpp::manipulation::graph::NodeSelector::getNode | ( | ConfigurationIn_t | config | ) | const |
Returns the state of a configuration.
|
protected |
Initialization of the object.
|
protectedvirtual |
Print the object in a stream.
Reimplemented from hpp::manipulation::graph::GraphComponent.