7 #error This class is not to be included by the user directly. Use UniversalJointd.h or UniversalJointf.h instead.
14 enum Axis { eAxis1, eAxis2 };
17 void set_axis(
const VECTOR3& axis, Axis a);
23 virtual unsigned num_dof()
const {
return 2; }
VECTOR3 _u[2]
The local joint axes.
Definition: UniversalJoint.h:36
virtual void evaluate_constraints(REAL C[])
Evaluates the constraint equations for this joint.
virtual void determine_q(VECTORN &q)
Abstract method to determine the value of Q (joint position) from current transforms.
virtual void calc_constraint_jacobian(bool inboard, MATRIXN &Cq)
Computes the constraint Jacobian for this joint with respect to the given body.
virtual const std::vector< SVELOCITY > & get_spatial_axes_dot()
Abstract method to get the spatial axes derivatives for this joint.
VECTOR3 _h2
The second joint axis in outboard pose frame.
Definition: UniversalJoint.h:39
virtual boost::shared_ptr< const POSE3 > get_induced_pose()
Abstract method to get the local transform for this joint.
A generic, possibly non-square matrix.
Definition: MatrixN.h:18
Defines a joint for purely rotational motion.
Definition: UniversalJoint.h:11
VECTORN q
The position of this joint.
Definition: Joint.h:144
A generic N-dimensional floating point vector.
Definition: VectorN.h:16
virtual bool is_singular_config() const
Universal joint is never singular.
Definition: UniversalJoint.h:29
A three-dimensional floating point vector used for representing points and vectors in 3D with associa...
Definition: Vector3.h:15
Defines a bilateral constraint (a joint)
Definition: Joint.h:14
virtual void calc_constraint_jacobian_dot(bool inboard, MATRIXN &Cq)
Computes the time derivative of the constraint Jacobian for this joint with respect to the given body...
A 3x3 matrix that may be used for orientation, inertia tensors, etc.
Definition: Matrix3.h:20
virtual const std::vector< SVELOCITY > & get_spatial_axes()
Gets the spatial axes for this joint.
virtual void update_spatial_axes()
Abstract method to update the local spatial axes.
virtual unsigned num_dof() const
Gets the number of degrees-of-freedom for this joint.
Definition: UniversalJoint.h:23
std::vector< SVELOCITY > _s_dot
The derivative of the spatial axis.
Definition: UniversalJoint.h:42