Configuration of a JointSO3. More...
#include <hpp/model/joint-configuration.hh>
Public Member Functions | |
SO3JointConfig () | |
virtual | ~SO3JointConfig () |
virtual void | interpolate (ConfigurationIn_t q1, ConfigurationIn_t q2, const value_type &u, const size_type &index, ConfigurationOut_t result) |
Interpolate two configurations of the joint. | |
virtual value_type | distance (ConfigurationIn_t q1, ConfigurationIn_t q2, const size_type &index) const |
Distance between two configurations of the joint. | |
virtual void | integrate (ConfigurationIn_t q, vectorIn_t v, const size_type &indexConfig, const size_type &indexVelocity, ConfigurationOut_t result) const |
Integrate constant derivative during unit time. | |
virtual void | difference (ConfigurationIn_t q1, ConfigurationIn_t q2, const size_type &indexConfig, const size_type &indexVelocity, vectorOut_t result) const |
Difference between two configurations. | |
virtual void | uniformlySample (const size_type &index, ConfigurationOut_t result) const |
Uniformly sample the configuration space of the joint. |
Configuration of a JointSO3.
virtual hpp::model::SO3JointConfig::~SO3JointConfig | ( | ) | [virtual] |
virtual void hpp::model::SO3JointConfig::difference | ( | ConfigurationIn_t | q1, |
ConfigurationIn_t | q2, | ||
const size_type & | indexConfig, | ||
const size_type & | indexVelocity, | ||
vectorOut_t | result | ||
) | const [virtual] |
Difference between two configurations.
q1 | configuration, |
q2 | configuration, |
indexConfig | index of first component of q corresponding to the joint. |
indexVelocity | index of first component of v corresponding to the joint |
result[index:index+ | joint number dof] part of vector representing the difference between q1 and q2. |
The difference is computed as follows:
Implements hpp::model::JointConfiguration.
virtual value_type hpp::model::SO3JointConfig::distance | ( | ConfigurationIn_t | q1, |
ConfigurationIn_t | q2, | ||
const size_type & | index | ||
) | const [virtual] |
Distance between two configurations of the joint.
q1,q2 | two configurations of the robot |
index | index of first component of q1 and q2 corresponding to the joint. |
Implements hpp::model::JointConfiguration.
virtual void hpp::model::SO3JointConfig::integrate | ( | ConfigurationIn_t | q, |
vectorIn_t | v, | ||
const size_type & | indexConfig, | ||
const size_type & | indexVelocity, | ||
ConfigurationOut_t | result | ||
) | const [virtual] |
Integrate constant derivative during unit time.
q | initial configuration |
v | joint velocity |
indexConfig | index of first component of q corresponding to the joint. |
indexVelocity | index of first component of v corresponding to the joint |
result | write joint configuration in result [indexConfig:indexConfig + joint config size] |
Implements hpp::model::JointConfiguration.
virtual void hpp::model::SO3JointConfig::interpolate | ( | ConfigurationIn_t | q1, |
ConfigurationIn_t | q2, | ||
const value_type & | u, | ||
const size_type & | index, | ||
ConfigurationOut_t | result | ||
) | [virtual] |
Interpolate two configurations of the joint.
q1,q2,two | configurations to interpolate |
u | in [0,1] position along the interpolation: q1 for u=0, q2 for u=1 |
index | index of first component of q1 and q2 corresponding to the joint. |
result | write joint configuration in result [index:index+nb dofs] |
q1 and q2 are configurations of the robot where coordinates between index and index + number of dofs - 1 correspond to the configuration of the joint:
Implements hpp::model::JointConfiguration.
virtual void hpp::model::SO3JointConfig::uniformlySample | ( | const size_type & | index, |
ConfigurationOut_t | result | ||
) | const [virtual] |
Uniformly sample the configuration space of the joint.
index | index of first component of q corresponding to the joint. |
result | write joint configuration in result [index:index+nb dofs] |
Implements hpp::model::JointConfiguration.