|
tinyrobotics
|
Contains various math related functions. More...
#include <Eigen/Core>#include <Eigen/Geometry>Go to the source code of this file.
Functions | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 3, 3 > | tinyrobotics::skew (const Eigen::Matrix< Scalar, 3, 3 > &input) |
| Computes the skew of a 3x3 vector. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 3, 3 > | tinyrobotics::skew (const Eigen::Matrix< Scalar, 3, 1 > &input) |
| Computes the skew matrix for a 3x1 vector. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > | tinyrobotics::null (const Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > &A) |
| Computes an orthonormal basis for the null space of a matrix. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::cross_spatial (const Eigen::Matrix< Scalar, 6, 1 > &v) |
| Computes the 6x6 cross-product matrix for a 6D spatial vector. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::cross_motion (const Eigen::Matrix< Scalar, 6, 1 > &v) |
| Computes the 6x6 cross-product matrix for a motion vector and a force vector. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::translation_to_spatial (const Eigen::Matrix< Scalar, 3, 1 > &xyz) |
| Spatial coordinate transform from a xyz translation. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::rpy_to_spatial (const Eigen::Matrix< Scalar, 3, 1 > &rpy) |
| Spatial coordinate transform from roll-pitch-yaw angles. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::homogeneous_to_spatial (const Eigen::Transform< Scalar, 3, Eigen::Isometry > &H) |
| Spatial coordinate transform from homogeneous transformation matrix. | |
| template<typename Scalar > | |
| Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::inertia_to_spatial (const Scalar m, const Eigen::Matrix< Scalar, 3, 1 > &c, const Eigen::Matrix< Scalar, 3, 3 > &I) |
| Spatial inertia matrix from inertia parameters. | |
Contains various math related functions.
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::cross_motion | ( | const Eigen::Matrix< Scalar, 6, 1 > & | v | ) |
Computes the 6x6 cross-product matrix for a motion vector and a force vector.
| v | The motion and force vector. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::cross_spatial | ( | const Eigen::Matrix< Scalar, 6, 1 > & | v | ) |
Computes the 6x6 cross-product matrix for a 6D spatial vector.
| v | The 6D spatial vector. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::homogeneous_to_spatial | ( | const Eigen::Transform< Scalar, 3, Eigen::Isometry > & | H | ) |
Spatial coordinate transform from homogeneous transformation matrix.
| H | The homogeneous transformation matrix. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::inertia_to_spatial | ( | const Scalar | m, |
| const Eigen::Matrix< Scalar, 3, 1 > & | c, | ||
| const Eigen::Matrix< Scalar, 3, 3 > & | I | ||
| ) |
Spatial inertia matrix from inertia parameters.
| m | Mass of link. |
| C | Vector from the origin of the link to the center of mass. |
| I | Inertia of link. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > tinyrobotics::null | ( | const Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > & | A | ) |
Computes an orthonormal basis for the null space of a matrix.
| A | Input matrix. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::rpy_to_spatial | ( | const Eigen::Matrix< Scalar, 3, 1 > & | rpy | ) |
Spatial coordinate transform from roll-pitch-yaw angles.
| rpy | The roll-pitch-yaw angles. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 3, 3 > tinyrobotics::skew | ( | const Eigen::Matrix< Scalar, 3, 1 > & | input | ) |
Computes the skew matrix for a 3x1 vector.
| input | The 3x1 vector. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 3, 3 > tinyrobotics::skew | ( | const Eigen::Matrix< Scalar, 3, 3 > & | input | ) |
Computes the skew of a 3x3 vector.
| input | The 3x3 vector. |
| Scalar | Scalar type. |
| Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::translation_to_spatial | ( | const Eigen::Matrix< Scalar, 3, 1 > & | xyz | ) |
Spatial coordinate transform from a xyz translation.
| v | The spatial vector |