74 static const char header_quat_rcsid[] =
"$Id: quaternion.h,v 1.12 2005/11/15 19:25:58 gourdeau Exp $";
81 using namespace NEWMAT;
86 #define EPSILON 0.0000001 Quaternion class definition.
ReturnMatrix v() const
Return vector part.
Quaternion Squad(const Quaternion &p, const Quaternion &a, const Quaternion &b, const Quaternion &q, const Real t)
Spherical Cubic Interpolation.
static const char header_quat_rcsid[]
RCS/CVS version.
NegShiftedMatrix operator-(Real, const BaseMatrix &)
Robots class definitions.
ShiftedMatrix operator+(Real f, const BaseMatrix &BM)
short Integ_quat(Quaternion &dquat_present, Quaternion &dquat_past, Quaternion &quat, const Real dt)
Trapezoidal quaternion integration.
Real Integ_Trap_quat_s(const Quaternion &present, Quaternion &past, const Real dt)
Trapezoidal quaternion scalar part integration.
Real s_
Quaternion scalar part.
Real s() const
Return scalar part.
Quaternion Slerp_prime(const Quaternion &q0, const Quaternion &q1, const Real t)
Spherical Linear Interpolation derivative.
void set_s(const Real s)
Set scalar part.
Quaternion Slerp(const Quaternion &q0, const Quaternion &q1, const Real t)
Spherical Linear Interpolation.
Quaternion Squad_prime(const Quaternion &p, const Quaternion &a, const Quaternion &b, const Quaternion &q, const Real t)
Spherical Cubic Interpolation derivative.
The usual rectangular matrix.
FloatVector FloatVector * a
ColumnVector v_
Quaternion vector part.
Quaternion operator*(const Real c, const Quaternion &rhs)
Overload * operator, multiplication by a scalar.
ReturnMatrix Integ_Trap_quat_v(const Quaternion &present, Quaternion &past, const Real dt)
Trapezoidal quaternion vector part integration.
ReturnMatrix Omega(const Quaternion &q, const Quaternion &q_dot)
Return angular velocity from a quaternion and it's time derivative.
Quaternion operator/(const Real c, const Quaternion &rhs)
Overload / operator, division by a scalar.