hpp::manipulation::graph::Graph Class Reference

Description of the constraint graph. More...

#include <hpp/manipulation/graph/graph.hh>

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

List of all members.

Public Member Functions

NodeSelectorPtr_t createNodeSelector ()
 Create and insert a NodeSelector inside the graph.
NodePtr_t getNode (ConfigurationIn_t config) const
 Returns the states of a configuration.
Edges_t getEdges (const NodePtr_t &from, const NodePtr_t &to) const
 Get possible edges between two nodes.
EdgePtr_t chooseEdge (const NodePtr_t &node) const
 Select randomly outgoing edge of the given node.
ConstraintSetPtr_t configConstraint (const NodePtr_t &node)
 Constraint to project onto the Node.
ConstraintSetPtr_t configConstraint (const EdgePtr_t &edge)
 Constraint to project onto the same leaf as config.
ConstraintSetPtr_t pathConstraint (const EdgePtr_t &edge)
 Constraint to project a path.
void maxIterations (size_type iterations)
 Set maximal number of iterations.
size_type maxIterations () const
 Get maximal number of iterations in config projector.
void errorThreshold (const value_type &threshold)
 Set error threshold.
value_type errorThreshold () const
 Get errorimal number of threshold in config projector.
const DevicePtr_trobot () const
 Get the robot.
virtual std::ostream & dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const
 Print the component in DOT language.

Static Public Member Functions

static GraphPtr_t create (DevicePtr_t robot)
 Create a new Graph.

Protected Member Functions

void init (const GraphWkPtr_t &weak, DevicePtr_t robot)
 Initialization of the object.
 Graph ()
 Constructor.
std::ostream & print (std::ostream &os) const
 Print the object in a stream.

Detailed Description

Description of the constraint graph.

This class contains a graph representing a robot with several end-effectors.

One must make sure not to create loop with shared pointers. To ensure that, the classes are defined as follow:


Constructor & Destructor Documentation

hpp::manipulation::graph::Graph::Graph ( ) [inline, protected]

Constructor.


Member Function Documentation

Select randomly outgoing edge of the given node.

Constraint to project onto the Node.

Parameters:
theNode_t on which to project.
Returns:
The initialized projector.

Constraint to project onto the same leaf as config.

Parameters:
edgesa list of edges defining the foliation.
Returns:
The constraint.

Create a new Graph.

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

Print the component in DOT language.

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

Set error threshold.

Get errorimal number of threshold in config projector.

Edges_t hpp::manipulation::graph::Graph::getEdges ( const NodePtr_t from,
const NodePtr_t to 
) const

Get possible edges between two nodes.

Returns the states of a configuration.

void hpp::manipulation::graph::Graph::init ( const GraphWkPtr_t &  weak,
DevicePtr_t  robot 
) [protected]

Initialization of the object.

Set maximal number of iterations.

Get maximal number of iterations in config projector.

Constraint to project a path.

Parameters:
edgea list of edges defining the foliation.
Returns:
The constraint.
std::ostream& hpp::manipulation::graph::Graph::print ( std::ostream &  os) const [protected, virtual]

Print the object in a stream.

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

Get the robot.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends