|
LRAUV
revA
|
Wraps six double precision (8-byte) floating point numbers. More...
#include <Point6D.h>


Public Member Functions | |
| void | setX (const double x) |
| X, and also U=dX/dt. More... | |
| double | getX () const |
| void | setY (const double y) |
| Y, and also V=dY/dt. More... | |
| double | getY () const |
| void | setZ (const double z) |
| Z, and also W=dZ/dt. More... | |
| double | getZ () const |
| void | setRoll (const double roll) |
| X axis rotation, also Roll, Phi, and P=dPhi/dt. More... | |
| double | getRoll () const |
| void | setPitch (const double pitch) |
| Y axis rotation, also Pitch, Theta, and Q=dPtheta/dt. More... | |
| double | getPitch () const |
| void | setHeading (const double heading) |
| Z axis rotation, also Heading, Psi, and R=dPsi/dt. More... | |
| double | getHeading () const |
| void | setU (const double u) |
| U – alias for dX/dt. More... | |
| double | getU () const |
| void | setV (const double v) |
| V – alias for dY/dt. More... | |
| double | getV () const |
| void | setW (const double w) |
| W – alias for dZ/dt. More... | |
| double | getW () const |
| void | setP (const double p) |
| P – alias for dRoll/dt. More... | |
| double | getP () const |
| void | setQ (const double q) |
| Q – alias for dPitch/dt. More... | |
| double | getQ () const |
| void | setR (const double r) |
| R – alias for dHeading/dt. More... | |
| double | getR () const |
| Point6D () | |
| Default constructior. More... | |
| Point6D (const double &init) | |
| Single value constructior. More... | |
| Point6D (const double &x, const double &y, const double &z, const double &roll, const double &pitch, const double &heading) | |
| Multi value constructior. More... | |
| Point6D (const Point6D &value) | |
| Copy Constructor. More... | |
| virtual | ~Point6D () |
| Destructor. More... | |
| Point6D * | copy () const |
| Return a pointer to a new copy. More... | |
| virtual Str | toString () const |
| Point6D & | operator= (const Point6D &rhs) |
| Point6D & | operator= (const double rhs) |
| Point6D & | operator+= (const Point6D &rhs) |
| Point6D & | operator+= (const Point3D &rhs) |
| Point6D & | operator+= (const double rhs) |
| Point6D & | operator-= (const Point6D &rhs) |
| Point6D & | operator-= (const double rhs) |
| Point6D & | operator*= (const Point6D &rhs) |
| Point6D & | operator*= (const double rhs) |
| Point6D & | addProduct (Matrix6x6 &lhs, Point6D &rhs) |
| Point6D & | addProduct (const Point6D &lhs, const double rhs) |
| Point6D & | addProduct (const Point3D &lhs, const double rhs) |
| Point6D & | toAbs () |
| double & | operator[] (int index) |
| const double | absSum () const |
| const double | sum () const |
| const double | sumSquared () const |
| virtual double * | getPtr1d () |
| Implement abstract I1D method. More... | |
| virtual int | getM () const |
| Implement abstract I2D method. More... | |
Public Member Functions inherited from I1D< double > | |
| virtual | ~I1D () |
Protected Attributes | |
| double | value_ [6] |
Additional Inherited Members | |
Static Public Member Functions inherited from I1D< double > | |
| static double * | New1D (int m, bool extra=false) |
| static void | Delete1D (double *array) |
Protected Member Functions inherited from I1D< double > | |
| I1D () | |
| I1D (const I1D &) | |
Wraps six double precision (8-byte) floating point numbers.
The 6 numbers are normally accessed as
| Point6D::Point6D | ( | ) |
Default constructior.
Referenced by copy().
| Point6D::Point6D | ( | const double & | init | ) |
Single value constructior.
| Point6D::Point6D | ( | const double & | x, |
| const double & | y, | ||
| const double & | z, | ||
| const double & | roll, | ||
| const double & | pitch, | ||
| const double & | heading | ||
| ) |
Multi value constructior.
References setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
| Point6D::Point6D | ( | const Point6D & | value | ) |
Copy Constructor.
|
inlinevirtual |
Destructor.
| const double Point6D::absSum | ( | ) | const |
References getHeading(), getPitch(), getRoll(), getX(), getY(), and getZ().
Referenced by Simulator::motion().
References getP(), Matrix6x6::getPtr1d(), getPtr1d(), getQ(), getR(), getX(), getY(), getZ(), setP(), setQ(), setR(), setX(), setY(), and setZ().
Referenced by Simulator::motion().
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
References Point3D::getX(), getX(), Point3D::getY(), getY(), Point3D::getZ(), getZ(), setX(), setY(), and setZ().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), Matrix3x3::Matrix3x3(), Matrix6x6::Matrix6x6(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), Simulator::run(), sum(), sumSquared(), and toAbs().
|
inlinevirtual |
Implement abstract I2D method.
Implements I1D< double >.
|
inline |
References value_.
Referenced by addProduct(), Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), Matrix3x3::Matrix3x3(), Matrix6x6::Matrix6x6(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), sum(), sumSquared(), and toAbs().
|
inlinevirtual |
Implement abstract I1D method.
Implements I1D< double >.
References value_.
Referenced by addProduct().
|
inline |
References value_.
Referenced by addProduct(), Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by addProduct(), Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), Matrix3x3::Matrix3x3(), Matrix6x6::Matrix6x6(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), sum(), sumSquared(), and toAbs().
|
inline |
References value_.
Referenced by Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by Simulator::calcFinForces(), Simulator::calcForce(), and Simulator::publishState().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), Simulator::motion(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), sum(), sumSquared(), and toAbs().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), sum(), sumSquared(), and toAbs().
|
inline |
References value_.
Referenced by absSum(), addProduct(), Simulator::calcForce(), Simulator::invertMass(), operator*=(), operator+=(), operator-=(), operator=(), Simulator::publishState(), EnvSimulator::simulateSensors(), sum(), sumSquared(), and toAbs().
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
| Point6D & Point6D::operator*= | ( | const double | rhs | ) |
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
References Point3D::getX(), getX(), Point3D::getY(), getY(), Point3D::getZ(), getZ(), setX(), setY(), and setZ().
| Point6D & Point6D::operator+= | ( | const double | rhs | ) |
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
| Point6D & Point6D::operator-= | ( | const double | rhs | ) |
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
| Point6D & Point6D::operator= | ( | const double | rhs | ) |
References setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
| double & Point6D::operator[] | ( | int | index | ) |
References value_.
|
inline |
Z axis rotation, also Heading, Psi, and R=dPsi/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::run(), Simulator::setHeading(), and toAbs().
|
inline |
|
inline |
Y axis rotation, also Pitch, Theta, and Q=dPtheta/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::setPitch(), and toAbs().
|
inline |
Q – alias for dPitch/dt.
References value_.
Referenced by addProduct(), and Simulator::loadParams().
|
inline |
R – alias for dHeading/dt.
References value_.
Referenced by addProduct(), and Simulator::loadParams().
|
inline |
X axis rotation, also Roll, Phi, and P=dPhi/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::setRoll(), and toAbs().
|
inline |
|
inline |
|
inline |
|
inline |
X, and also U=dX/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::publishState(), and toAbs().
|
inline |
Y, and also V=dY/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::publishState(), and toAbs().
|
inline |
Z, and also W=dZ/dt.
References value_.
Referenced by addProduct(), Simulator::calcForce(), Simulator::loadParams(), operator*=(), operator+=(), operator-=(), operator=(), Point6D(), Simulator::setDepth(), and toAbs().
| const double Point6D::sum | ( | ) | const |
References getHeading(), getPitch(), getRoll(), getX(), getY(), and getZ().
| const double Point6D::sumSquared | ( | ) | const |
References getHeading(), getPitch(), getRoll(), getX(), getY(), and getZ().
| Point6D & Point6D::toAbs | ( | ) |
References getHeading(), getPitch(), getRoll(), getX(), getY(), getZ(), setHeading(), setPitch(), setRoll(), setX(), setY(), and setZ().
|
virtual |
References value_.
Referenced by Simulator::motion().
|
protected |
Referenced by getHeading(), getP(), getPitch(), getPtr1d(), getQ(), getR(), getRoll(), getU(), getV(), getW(), getX(), getY(), getZ(), operator[](), setHeading(), setP(), setPitch(), setQ(), setR(), setRoll(), setU(), setV(), setW(), setX(), setY(), setZ(), and toString().