Robot Dynamics Library
|
Describes a joint relative to the predecessor body. More...
#include <Joint.hpp>
Public Member Functions | |
Joint () | |
Joint (JointType type) | |
Joint (JointType type, int degreesOfFreedom) | |
Joint (const Joint &joint) | |
Joint & | operator= (const Joint &joint) |
~Joint () | |
Joint (const JointType joint_type, const Math::Vector3d &joint_axis) | |
Constructs a joint from the given cartesian parameters. More... | |
Joint (const Math::SpatialVector &axis_0) | |
Constructs a 1 DoF joint with the given motion subspaces. More... | |
Joint (const Math::SpatialVector &axis_0, const Math::SpatialVector &axis_1) | |
Constructs a 2 DoF joint with the given motion subspaces. More... | |
Joint (const Math::SpatialVector &axis_0, const Math::SpatialVector &axis_1, const Math::SpatialVector &axis_2) | |
Constructs a 3 DoF joint with the given motion subspaces. More... | |
Joint (const Math::SpatialVector &axis_0, const Math::SpatialVector &axis_1, const Math::SpatialVector &axis_2, const Math::SpatialVector &axis_3) | |
Constructs a 4 DoF joint with the given motion subspaces. More... | |
Joint (const Math::SpatialVector &axis_0, const Math::SpatialVector &axis_1, const Math::SpatialVector &axis_2, const Math::SpatialVector &axis_3, const Math::SpatialVector &axis_4) | |
Constructs a 5 DoF joint with the given motion subspaces. More... | |
Joint (const Math::SpatialVector &axis_0, const Math::SpatialVector &axis_1, const Math::SpatialVector &axis_2, const Math::SpatialVector &axis_3, const Math::SpatialVector &axis_4, const Math::SpatialVector &axis_5) | |
Constructs a 6 DoF joint with the given motion subspaces. More... | |
bool | validate_spatial_axis (Math::SpatialVector &axis) |
Checks whether we have pure rotational or translational axis. More... | |
Public Attributes | |
Math::SpatialVector * | mJointAxes |
The spatial axes of the joint. More... | |
JointType | mJointType |
Type of joint. More... | |
unsigned int | mDoFCount |
Number of degrees of freedom of the joint. Note: CustomJoints. More... | |
unsigned int | q_index |
unsigned int | custom_joint_index |
Describes a joint relative to the predecessor body.
This class contains all information required for one single joint. This contains the joint type and the axis of the joint. See Joint Modeling for detailed description.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Constructs a joint from the given cartesian parameters.
This constructor creates all the required spatial values for the given cartesian parameters.
joint_type | whether the joint is revolute or prismatic |
joint_axis | the axis of rotation or translation |
|
inlineexplicit |
Constructs a 1 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
|
inline |
Constructs a 2 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
axis_1 | Motion subspace for axis 1 |
|
inline |
Constructs a 3 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
axis_1 | Motion subspace for axis 1 |
axis_2 | Motion subspace for axis 2 |
|
inline |
Constructs a 4 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
axis_1 | Motion subspace for axis 1 |
axis_2 | Motion subspace for axis 2 |
axis_3 | Motion subspace for axis 3 |
|
inline |
Constructs a 5 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
axis_1 | Motion subspace for axis 1 |
axis_2 | Motion subspace for axis 2 |
axis_3 | Motion subspace for axis 3 |
axis_4 | Motion subspace for axis 4 |
|
inline |
Constructs a 6 DoF joint with the given motion subspaces.
The motion subspaces are of the format:
axis_0 | Motion subspace for axis 0 |
axis_1 | Motion subspace for axis 1 |
axis_2 | Motion subspace for axis 2 |
axis_3 | Motion subspace for axis 3 |
axis_4 | Motion subspace for axis 4 |
axis_5 | Motion subspace for axis 5 |
|
inline |
Checks whether we have pure rotational or translational axis.
This function is mainly used to print out warnings when specifying an axis that might not be intended.
unsigned int RobotDynamics::Joint::custom_joint_index |
unsigned int RobotDynamics::Joint::mDoFCount |
Number of degrees of freedom of the joint. Note: CustomJoints.
Math::SpatialVector* RobotDynamics::Joint::mJointAxes |
The spatial axes of the joint.
JointType RobotDynamics::Joint::mJointType |
Type of joint.
unsigned int RobotDynamics::Joint::q_index |