#include <R3Arma.h>
Public Member Functions | |
Odometry3DArma () | |
Default constructor. | |
Odometry3DArma (const Decimal &linVelX, const Decimal &linVelY, const Decimal &linVelZ, const Decimal &velAngX, const Decimal &velAngY, const Decimal &velAngZ) | |
Complete constructor. | |
Odometry3DArma (const Decimal &linVelX, const Decimal &linVelY, const Decimal &linVelZ, const Velocity3DArma &angVel) | |
Complete constructor. | |
Odometry3DArma (const Velocity3DArma &linVel, const Decimal &velAngX, const Decimal &velAngY, const Decimal &velAngZ) | |
Complete constructor. | |
Odometry3DArma (const Velocity3DArma &linVel, const Velocity3DArma &angVel) | |
Complete constructor. | |
Odometry3DArma & | operator= (const Odometry3DArma &rhs) |
Assignment operator. | |
Odometry3DArma & | operator= (const arma::Mat< Decimal > &rhs) |
Assignment operator. | |
Odometry3DArma & | operator+= (const Odometry3DArma &pos) |
Compound assignment operator product by a another IMU3DArma pos +=. | |
Odometry3DArma & | operator+= (const Decimal &scalar) |
Compound assignment operator sum by a scalar +. | |
Odometry3DArma | operator- (Odometry3DArma &other) const |
Binary arithmetic operator element-wise IMU3DArma. | |
Odometry3DArma & | operator-= (const Odometry3DArma &pos) |
Compound assignment operator product by a another IMU3DArma pos -=. | |
Odometry3DArma & | operator-= (const Decimal &scalar) |
Compound assignment operator sum by a scalar +. | |
Odometry3DArma | operator+ (Odometry3DArma &other) const |
Binary arithmetic operator element-wise IMU3DArma. | |
Odometry3DArma & | operator*= (const Odometry3DArma &pos) |
Compound assignment operator product by a another IMU3DArma pos *=. | |
Odometry3DArma & | operator*= (const Decimal &scalar) |
Compound assignment operator product by a scalar *. | |
Odometry3DArma | operator* (Odometry3DArma &other) const |
Binary arithmetic operator element-wise scalar. | |
Odometry3DArma & | operator/= (const Odometry3DArma &pos) |
Compound assignment operator product by a another Position3DArma pos *=. | |
Odometry3DArma & | operator/= (const Decimal &scalar) |
Compound assignment operator product by a scalar *. | |
Odometry3DArma | operator/ (Odometry3DArma &other) const |
Binary arithmetic operator element-wise scalar. | |
bool | operator== (const Odometry3DArma &other) const |
Operator ==. | |
Decimal | getLinVelX () const |
Get the current linear velocity along x. | |
Decimal | getLinVelY () const |
Get the current linear velocity along y. | |
Decimal | getLinVelZ () const |
Get the current linear velocity along z. | |
Velocity3DArma | getLinearVelocity () const |
Get the current linear velocity. | |
Decimal | getAngVelX () const |
Get the current angular velocity along x. | |
Decimal | getAngVelY () const |
Get the current angular velocity along y. | |
Decimal | getAngVelZ () const |
Get the current angular velocity along z. | |
Velocity3DArma | getAngularVelocity () const |
Get the current angular velocity. | |
void | setLinVelX (const Decimal &x) |
Set the linear velocity along x axis. | |
void | setLinVelY (const Decimal &y) |
Set the linear velocity along x axis. | |
void | setLinVelZ (const Decimal &z) |
Set the acceleration along x axis. | |
void | setLinearVelocity (const Velocity3DArma &acc) |
Set the linear velocity along x axis. | |
void | setAngVelX (const Decimal &x) |
Set the angular velocity along x axis. | |
void | setAngVelY (const Decimal &y) |
Set the angular velocity along y axis. | |
void | setAngVelZ (const Decimal &z) |
Set the angular velocity along z axis. | |
void | setAngularVelocity (const Velocity3DArma &angVel) |
Set the angular velocity. | |
Odometry3DArma & | matrixProd (const arma::Mat< Decimal >::fixed< 3, 3 > &in) |
Product by a matrix. | |
Odometry3DArma & | matrixProd (const Roto3DArma &in) |
Product by a matrix. | |
Odometry3DArma & | matrixProdLinVel (const arma::Mat< Decimal >::fixed< 3, 3 > &in) |
Product by a matrix only the acceleration component. | |
Odometry3DArma & | matrixProdAngVel (const arma::Mat< Decimal >::fixed< 3, 3 > &in) |
Product by a matrix only the angular velocity component. | |
Odometry3DArma & | matrixProdLinVel (const Roto3DArma &in) |
Product by a matrix only the acceleration component. | |
Odometry3DArma & | matrixProdAngVel (const Roto3DArma &in) |
Product by a matrix only the angular velocity component. | |
Odometry2DArma | getOdometry2D () const |
Get the 2D Odometry data. | |
string | print () |
Print function. |
Odometry3DArma::Odometry3DArma | ( | ) |
Default constructor.
Odometry3DArma::Odometry3DArma | ( | const Decimal & | linVelX, | |
const Decimal & | linVelY, | |||
const Decimal & | linVelZ, | |||
const Decimal & | velAngX, | |||
const Decimal & | velAngY, | |||
const Decimal & | velAngZ | |||
) |
Complete constructor.
Odometry3DArma::Odometry3DArma | ( | const Decimal & | linVelX, | |
const Decimal & | linVelY, | |||
const Decimal & | linVelZ, | |||
const Velocity3DArma & | angVel | |||
) |
Complete constructor.
Odometry3DArma::Odometry3DArma | ( | const Velocity3DArma & | linVel, | |
const Decimal & | velAngX, | |||
const Decimal & | velAngY, | |||
const Decimal & | velAngZ | |||
) |
Complete constructor.
Odometry3DArma::Odometry3DArma | ( | const Velocity3DArma & | linVel, | |
const Velocity3DArma & | angVel | |||
) |
Complete constructor.
Odometry3DArma & Odometry3DArma::operator= | ( | const Odometry3DArma & | rhs | ) |
Assignment operator.
Odometry3DArma & Odometry3DArma::operator= | ( | const arma::Mat< Decimal > & | rhs | ) |
Assignment operator.
Odometry3DArma & Odometry3DArma::operator+= | ( | const Odometry3DArma & | pos | ) |
Compound assignment operator product by a another IMU3DArma pos +=.
Odometry3DArma & Odometry3DArma::operator+= | ( | const Decimal & | scalar | ) |
Compound assignment operator sum by a scalar +.
Odometry3DArma Odometry3DArma::operator- | ( | Odometry3DArma & | other | ) | const |
Binary arithmetic operator element-wise IMU3DArma.
Odometry3DArma & Odometry3DArma::operator-= | ( | const Odometry3DArma & | pos | ) |
Compound assignment operator product by a another IMU3DArma pos -=.
Odometry3DArma & Odometry3DArma::operator-= | ( | const Decimal & | scalar | ) |
Compound assignment operator sum by a scalar +.
Odometry3DArma Odometry3DArma::operator+ | ( | Odometry3DArma & | other | ) | const |
Binary arithmetic operator element-wise IMU3DArma.
Odometry3DArma & Odometry3DArma::operator*= | ( | const Odometry3DArma & | pos | ) |
Compound assignment operator product by a another IMU3DArma pos *=.
Odometry3DArma & Odometry3DArma::operator*= | ( | const Decimal & | scalar | ) |
Compound assignment operator product by a scalar *.
Odometry3DArma Odometry3DArma::operator* | ( | Odometry3DArma & | other | ) | const |
Binary arithmetic operator element-wise scalar.
Odometry3DArma & Odometry3DArma::operator/= | ( | const Odometry3DArma & | pos | ) |
Compound assignment operator product by a another Position3DArma pos *=.
Odometry3DArma & Odometry3DArma::operator/= | ( | const Decimal & | scalar | ) |
Compound assignment operator product by a scalar *.
Odometry3DArma Odometry3DArma::operator/ | ( | Odometry3DArma & | other | ) | const |
Binary arithmetic operator element-wise scalar.
bool Odometry3DArma::operator== | ( | const Odometry3DArma & | other | ) | const |
Operator ==.
Decimal Odometry3DArma::getLinVelX | ( | ) | const |
Get the current linear velocity along x.
Decimal Odometry3DArma::getLinVelY | ( | ) | const |
Get the current linear velocity along y.
Decimal Odometry3DArma::getLinVelZ | ( | ) | const |
Get the current linear velocity along z.
Velocity3DArma Odometry3DArma::getLinearVelocity | ( | ) | const |
Get the current linear velocity.
Decimal Odometry3DArma::getAngVelX | ( | ) | const |
Get the current angular velocity along x.
Decimal Odometry3DArma::getAngVelY | ( | ) | const |
Get the current angular velocity along y.
Decimal Odometry3DArma::getAngVelZ | ( | ) | const |
Get the current angular velocity along z.
Velocity3DArma Odometry3DArma::getAngularVelocity | ( | ) | const |
Get the current angular velocity.
void Odometry3DArma::setLinVelX | ( | const Decimal & | x | ) |
Set the linear velocity along x axis.
[in] | &x | Linear velocity to be set |
void Odometry3DArma::setLinVelY | ( | const Decimal & | y | ) |
Set the linear velocity along x axis.
[in] | &x | Linear velocity to be set |
void Odometry3DArma::setLinVelZ | ( | const Decimal & | z | ) |
Set the acceleration along x axis.
[in] | &x | Acceleration to be set |
void Odometry3DArma::setLinearVelocity | ( | const Velocity3DArma & | acc | ) |
Set the linear velocity along x axis.
[in] | &x | Linear velocity to be set |
void Odometry3DArma::setAngVelX | ( | const Decimal & | x | ) |
Set the angular velocity along x axis.
[in] | &x | Angular velocity to be set |
void Odometry3DArma::setAngVelY | ( | const Decimal & | y | ) |
Set the angular velocity along y axis.
[in] | &y | Angular velocity to be set |
void Odometry3DArma::setAngVelZ | ( | const Decimal & | z | ) |
Set the angular velocity along z axis.
[in] | &z | Angular velocity to be set |
void Odometry3DArma::setAngularVelocity | ( | const Velocity3DArma & | angVel | ) |
Set the angular velocity.
[in] | &y | Angular velocity to be set |
Odometry3DArma & Odometry3DArma::matrixProd | ( | const arma::Mat< Decimal >::fixed< 3, 3 > & | in | ) |
Product by a matrix.
[in] | &in Matrix 3x3 |
Odometry3DArma & Odometry3DArma::matrixProd | ( | const Roto3DArma & | in | ) |
Product by a matrix.
[in] | &in Matrix 3x3 |
Odometry3DArma & Odometry3DArma::matrixProdLinVel | ( | const arma::Mat< Decimal >::fixed< 3, 3 > & | in | ) |
Product by a matrix only the acceleration component.
[in] | &in Matrix 3x3 |
Odometry3DArma & Odometry3DArma::matrixProdAngVel | ( | const arma::Mat< Decimal >::fixed< 3, 3 > & | in | ) |
Product by a matrix only the angular velocity component.
[in] | &in Matrix 3x3 |
Odometry3DArma & Odometry3DArma::matrixProdLinVel | ( | const Roto3DArma & | in | ) |
Product by a matrix only the acceleration component.
[in] | &in Matrix 3x3 |
Odometry3DArma & Odometry3DArma::matrixProdAngVel | ( | const Roto3DArma & | in | ) |
Product by a matrix only the angular velocity component.
[in] | &in Matrix 3x3 |
Odometry2DArma Odometry3DArma::getOdometry2D | ( | ) | const |
Get the 2D Odometry data.
string Odometry3DArma::print | ( | ) |
Print function.