|
ASCO Aerial Autonomy
|
Math namespace to separate math functions from system functions if exist. More...
Functions | |
| double | angleWrap (double x) |
| Wrap an angle to be in the range [-pi, pi) More... | |
| double | clamp (double x, double min, double max) |
| Clip a number to bewteen a min and max value. More... | |
| template<class T > | |
| tf::Transform | getTransformFromVector (const T &input) |
| Generate a tf transform from a vector of xyzrpy. More... | |
| template<class T > | |
| std::vector< tf::Transform > | getTransformsFromVector (const T &input) |
| Generate a vector of tf transforms from a vector of xyzrpy. More... | |
Math namespace to separate math functions from system functions if exist.
| double math::angleWrap | ( | double | x | ) |
Wrap an angle to be in the range [-pi, pi)
| x | Angle to wrap |
| double math::clamp | ( | double | x, |
| double | min, | ||
| double | max | ||
| ) |
Clip a number to bewteen a min and max value.
| x | Number to clamp |
| min | Minimum value |
| max | Maximum value |
| tf::Transform math::getTransformFromVector | ( | const T & | input | ) |
Generate a tf transform from a vector of xyzrpy.
| T | The vector type can be Eigen, std vector, protobuf |
| input | The input vector containing x,y,z, r,p,y |
| std::vector<tf::Transform> math::getTransformsFromVector | ( | const T & | input | ) |
Generate a vector of tf transforms from a vector of xyzrpy.
| T | The vector type can be Eigen, std vector, protobuf |
| input | The input vector containing x,y,z, r,p,y |
1.8.6