![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
Joint class defining relationship between frames. More...
#include <Joint.h>
Public Member Functions | |
| Joint () | |
| Default constructor for the joint object. | |
| Joint (joint_type_e joint_type) | |
| Constructor to set joint type. | |
| Joint (bool x_free, bool y_free, bool z_free) | |
| Constructor to set free axes on the joint for the object. | |
| void | setFreeAxes (bool x_free, bool y_free, bool z_free) |
| Function to set the axes free on this joint. | |
| void | setJointType (joint_type_e joint_type) |
| Function to set the joint type. | |
| const clockwerk::Matrix< 3, 3 > & | freedom () const |
| Functions to return freedom or dependency matrix. | |
| const clockwerk::Matrix< 3, 3 > & | dependency () const |
| warptwin::joint_type_e | jointType () const |
| Getter/setter for joint type. | |
| void | jointType (joint_type_e joint_type) |
Protected Attributes | |
| joint_type_e | _joint_type |
| clockwerk::Matrix< 3, 3 > | _freedom |
| Freedom and dependency matrix. | |
| clockwerk::Matrix< 3, 3 > | _dependency |
Joint class defining relationship between frames.
The joint class defines the relationship between a frame and its parent for a given motion type (translational or rotational). It defines two matrices: the freedom matrix, which defines whether each axis is a degree of freedom, and the dependency matrix, which is the opposite of the freedom matrix defined as D = I - F.
For now, the joint class is assumed to be fully free or fully locked for simplicity. Updating to reflect configurable degrees of freedom is a TODO
| warptwin::Joint::Joint | ( | ) |
Default constructor for the joint object.
| warptwin::Joint::Joint | ( | joint_type_e | joint_type | ) |
Constructor to set joint type.
| joint_type | The type of joint to use |
| warptwin::Joint::Joint | ( | bool | x_free, |
| bool | y_free, | ||
| bool | z_free ) |
Constructor to set free axes on the joint for the object.
| x_free | Bool indicating whether x should be a degree of freedom (true) |
| y_free | Bool indicating whether y should be a degree of freedom (true) |
| z_free | Bool indicating whether z should be a degree of freedom (true) |
|
inline |
|
inline |
Functions to return freedom or dependency matrix.
|
inline |
Getter/setter for joint type.
|
inline |
| void warptwin::Joint::setFreeAxes | ( | bool | x_free, |
| bool | y_free, | ||
| bool | z_free ) |
Function to set the axes free on this joint.
| x_free | Bool indicating whether x should be a degree of freedom (true) |
| y_free | Bool indicating whether y should be a degree of freedom (true) |
| z_free | Bool indicating whether z should be a degree of freedom (true) |
| void warptwin::Joint::setJointType | ( | joint_type_e | joint_type | ) |
Function to set the joint type.
| joint_type | The type of joint to use |
|
protected |
|
protected |
Freedom and dependency matrix.
|
protected |