hpp-manipulation  4.9.0
Classes for manipulation planning.
hpp::manipulation::WeighedDistance Class Reference

Class for distance between configurations. More...

#include <hpp/manipulation/weighed-distance.hh>

Inheritance diagram for hpp::manipulation::WeighedDistance:
Collaboration diagram for hpp::manipulation::WeighedDistance:

Public Member Functions

virtual core::DistancePtr_t clone () const
 
void constraintGraph (const graph::GraphPtr_t &graph)
 Set the graph of constraints. More...
 
graph::GraphPtr_t constraintGraph () const
 Get the graph of constraints. More...
 
- Public Member Functions inherited from hpp::core::WeighedDistance
value_type getWeight (size_type rank) const
 
void setWeight (size_type rank, value_type weight)
 
const vector_tweights () const
 
void weights (const vector_t &ws)
 
size_type size () const
 
const DevicePtr_trobot () const
 
value_type getWeight (size_type rank) const
 
void setWeight (size_type rank, value_type weight)
 
const vector_tweights () const
 
void weights (const vector_t &ws)
 
size_type size () const
 
const DevicePtr_trobot () const
 
- Public Member Functions inherited from hpp::core::Distance
value_type operator() (ConfigurationIn_t q1, ConfigurationIn_t q2) const
 
value_type operator() (NodePtr_t n1, NodePtr_t n2) const
 
value_type compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const
 
value_type compute (NodePtr_t n1, NodePtr_t n2) const
 
virtual ~Distance ()
 
value_type operator() (ConfigurationIn_t q1, ConfigurationIn_t q2) const
 
value_type operator() (NodePtr_t n1, NodePtr_t n2) const
 
value_type compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const
 
value_type compute (NodePtr_t n1, NodePtr_t n2) const
 
virtual ~Distance ()
 

Static Public Member Functions

static WeighedDistancePtr_t create (const DevicePtr_t &robot, const graph::GraphPtr_t &graph)
 
static WeighedDistancePtr_t createCopy (const WeighedDistancePtr_t &distance)
 
- Static Public Member Functions inherited from hpp::core::WeighedDistance
static WeighedDistancePtr_t createFromProblem (const Problem &problem)
 
static WeighedDistancePtr_t create (const DevicePtr_t &robot)
 
static WeighedDistancePtr_t createWithWeight (const DevicePtr_t &robot, const vector_t &weights)
 
static WeighedDistancePtr_t createCopy (const WeighedDistancePtr_t &distance)
 
static WeighedDistancePtr_t createFromProblem (const Problem &problem)
 
static WeighedDistancePtr_t create (const DevicePtr_t &robot)
 
static WeighedDistancePtr_t createWithWeight (const DevicePtr_t &robot, const vector_t &weights)
 
static WeighedDistancePtr_t createCopy (const WeighedDistancePtr_t &distance)
 

Protected Member Functions

 WeighedDistance (const DevicePtr_t &robot, const graph::GraphPtr_t graph)
 
 WeighedDistance (const WeighedDistance &distance)
 
virtual value_type impl_distance (ConfigurationIn_t q1, ConfigurationIn_t q2) const
 Derived class should implement this function. More...
 
virtual value_type impl_distance (core::NodePtr_t n1, core::NodePtr_t n2) const
 
void init (WeighedDistanceWkPtr_t self)
 
- Protected Member Functions inherited from hpp::core::WeighedDistance
 WeighedDistance (const Problem &problem)
 
 WeighedDistance (const DevicePtr_t &robot)
 
 WeighedDistance (const DevicePtr_t &robot, const vector_t &weights)
 
 WeighedDistance (const WeighedDistance &distance)
 
void init (WeighedDistanceWkPtr_t self)
 
 WeighedDistance (const Problem &problem)
 
 WeighedDistance (const DevicePtr_t &robot)
 
 WeighedDistance (const DevicePtr_t &robot, const vector_t &weights)
 
 WeighedDistance (const WeighedDistance &distance)
 
void init (WeighedDistanceWkPtr_t self)
 
- Protected Member Functions inherited from hpp::core::Distance
 Distance ()
 
 Distance ()
 

Detailed Description

Class for distance between configurations.

Constructor & Destructor Documentation

◆ WeighedDistance() [1/2]

hpp::manipulation::WeighedDistance::WeighedDistance ( const DevicePtr_t robot,
const graph::GraphPtr_t  graph 
)
protected

◆ WeighedDistance() [2/2]

hpp::manipulation::WeighedDistance::WeighedDistance ( const WeighedDistance distance)
protected

Member Function Documentation

◆ clone()

virtual core::DistancePtr_t hpp::manipulation::WeighedDistance::clone ( ) const
virtual

Reimplemented from hpp::core::WeighedDistance.

◆ constraintGraph() [1/2]

void hpp::manipulation::WeighedDistance::constraintGraph ( const graph::GraphPtr_t graph)
inline

Set the graph of constraints.

◆ constraintGraph() [2/2]

graph::GraphPtr_t hpp::manipulation::WeighedDistance::constraintGraph ( ) const
inline

Get the graph of constraints.

◆ create()

static WeighedDistancePtr_t hpp::manipulation::WeighedDistance::create ( const DevicePtr_t robot,
const graph::GraphPtr_t graph 
)
static

◆ createCopy()

static WeighedDistancePtr_t hpp::manipulation::WeighedDistance::createCopy ( const WeighedDistancePtr_t distance)
static

◆ impl_distance() [1/2]

virtual value_type hpp::manipulation::WeighedDistance::impl_distance ( ConfigurationIn_t  q1,
ConfigurationIn_t  q2 
) const
protectedvirtual

Derived class should implement this function.

Reimplemented from hpp::core::WeighedDistance.

◆ impl_distance() [2/2]

virtual value_type hpp::manipulation::WeighedDistance::impl_distance ( core::NodePtr_t  n1,
core::NodePtr_t  n2 
) const
protectedvirtual

Reimplemented from hpp::core::Distance.

◆ init()

void hpp::manipulation::WeighedDistance::init ( WeighedDistanceWkPtr_t  self)
protected

The documentation for this class was generated from the following file: