|
hpp-core
6.0.0
Implement basic classes for canonical path planning for kinematic chains.
|
#include <hpp/core/weighed-distance.hh>


Public Member Functions | |
| virtual DistancePtr_t | clone () const |
| value_type | getWeight (size_type rank) const |
| void | setWeight (size_type rank, value_type weight) |
| const vector_t & | weights () const |
| Get weights. More... | |
| void | weights (const vector_t &ws) |
| Set weights. More... | |
| size_type | size () const |
| Get size of weight vector. More... | |
| const DevicePtr_t & | robot () const |
| Get robot. More... | |
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 () |
Static Public Member Functions | |
| static WeighedDistancePtr_t | createFromProblem (const ProblemConstPtr_t &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 ProblemConstPtr_t &problem) | |
| WeighedDistance (const DevicePtr_t &robot) | |
| WeighedDistance (const DevicePtr_t &robot, const vector_t &weights) | |
| WeighedDistance (const WeighedDistance &distance) | |
| void | init (WeighedDistanceWkPtr_t self) |
| virtual value_type | impl_distance (ConfigurationIn_t q1, ConfigurationIn_t q2) const |
| Derived class should implement this function. More... | |
| WeighedDistance () | |
| For serialization only. More... | |
Protected Member Functions inherited from hpp::core::Distance | |
| Distance () | |
| virtual value_type | impl_distance (NodePtr_t n1, NodePtr_t n2) const |
| HPP_SERIALIZABLE () | |
Weighed distance between configurations
Euclidean distance between configurations seen as vectors. Each degree of freedom is weighed by a positive value.
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
For serialization only.
|
virtual |
Implements hpp::core::Distance.
|
static |
|
static |
|
static |
|
static |
| value_type hpp::core::WeighedDistance::getWeight | ( | size_type | rank | ) | const |
Get weight of joint at given rank
| rank | rank of the joint in robot joint vector |
|
protectedvirtual |
Derived class should implement this function.
Implements hpp::core::Distance.
|
protected |
|
inline |
Get robot.
| void hpp::core::WeighedDistance::setWeight | ( | size_type | rank, |
| value_type | weight | ||
| ) |
Set weight of joint at given rank
| rank | rank of the joint in robot joint vector |
|
inline |
Get size of weight vector.
| const vector_t& hpp::core::WeighedDistance::weights | ( | ) | const |
Get weights.
| void hpp::core::WeighedDistance::weights | ( | const vector_t & | ws | ) |
Set weights.