Collection of utilities related to KDL and std::vector classes.
|
KDL::Frame | vectorToFrame (const std::vector< double > &x) |
| Convert from std::vector<double> to KDL::Frame. More...
|
|
std::vector< double > | frameToVector (const KDL::Frame &f) |
| Convert from KDL::Frame to std::vector<double> More...
|
|
KDL::Twist | vectorToTwist (const std::vector< double > &xdot) |
| Convert from std::vector<double> to KDL::Twist. More...
|
|
std::vector< double > | twistToVector (const KDL::Twist &t) |
| Convert from KDL::Twist to std::vector<double> More...
|
|
KDL::Wrench | vectorToWrench (const std::vector< double > &f) |
| Convert from std::vector<double> to KDL::Wrench. More...
|
|
std::vector< double > | wrenchToVector (const KDL::Wrench &w) |
| Convert from KDL::Wrench to std::vector<double> More...
|
|
◆ frameToVector()
std::vector< double > roboticslab::KdlVectorConverter::frameToVector |
( |
const KDL::Frame & |
f | ) |
|
- Parameters
-
f | Input KDL::Frame object. |
- Returns
- Resulting 6-element vector describing a position in cartesian space; first three elements denote translation (meters), last three denote rotation in scaled axis-angle representation (radians).
◆ twistToVector()
std::vector< double > roboticslab::KdlVectorConverter::twistToVector |
( |
const KDL::Twist & |
t | ) |
|
- Parameters
-
- Returns
- Resulting 6-element vector describing a velocity in cartesian space; first three elements denote translational velocity (meters/second), last three denote angular velocity (radians/second).
◆ vectorToFrame()
KDL::Frame roboticslab::KdlVectorConverter::vectorToFrame |
( |
const std::vector< double > & |
x | ) |
|
- Parameters
-
x | 6-element vector describing a position in cartesian space; first three elements denote translation (meters), last three denote rotation in scaled axis-angle representation (radians). |
- Returns
- Resulting KDL::Frame object.
◆ vectorToTwist()
KDL::Twist roboticslab::KdlVectorConverter::vectorToTwist |
( |
const std::vector< double > & |
xdot | ) |
|
- Parameters
-
xdot | 6-element vector describing a velocity in cartesian space; first three elements denote translational velocity (meters/second), last three denote angular velocity (radians/second). |
- Returns
- Resulting KDL::Twist object.
◆ vectorToWrench()
KDL::Wrench roboticslab::KdlVectorConverter::vectorToWrench |
( |
const std::vector< double > & |
f | ) |
|
- Parameters
-
xdot | 6-element vector describing a wrench in cartesian space; first three elements denote force (N), last three denote torque (Nm). |
- Returns
- Resulting KDL::Wrench object.
◆ wrenchToVector()
std::vector< double > roboticslab::KdlVectorConverter::wrenchToVector |
( |
const KDL::Wrench & |
w | ) |
|
- Parameters
-
t | Input KDL::Wrench object |
- Returns
- Resulting 6-element vector describing a wrench in cartesian space; first three elements denote force (N), last three denote torque (Nm).