#include <DHData.h>
Inheritance diagram for OSCAR::DHData:

Public Types | |
| enum | DHDataFormat { Craig, Paul } |
Public Methods | |
| DHData (const String &filename, OSCARError &err=DUMMY_ERROR(noError), char commentMarker= '#', const String name=String("")) | |
| DHData (const Matrix &dhParams, AngleUnits angUnits=Degrees, DHDataFormat dhFormat=Craig, OSCARError &err=DUMMY_ERROR(noError), const String name=String("")) | |
| DHData (OSCARError &err=DUMMY_ERROR(noError), const String name=String("")) | |
| DHData (const DHData &rhs) | |
| virtual | ~DHData () |
| DHData & | operator= (const DHData &rhs) |
| unsigned int | GetDOF (void) const |
| const Matrix * | GetParameters () const |
| bool | SetParameters (const Matrix &dhParams, AngleUnits angUnits=Degrees, DHDataFormat dhFormat=Craig) |
| AngleUnits | GetAngleUnits () const |
| void | SetAngleUnits (AngleUnits angUnits) |
| double | operator() (unsigned int jointNumber, unsigned int col) const |
| char | GetJointType (unsigned int jointNumber) const |
| DHDataFormat | GetDHDataFormat () const |
| void | SetDHDataFormat (DHDataFormat dhFormat) |
Static Public Attributes | |
| const double | var |
| const double | VAR |
Protected Attributes | |
| Matrix * | dhparameters |
| char * | joint_type |
| unsigned int | DOF |
| DHDataFormat | dhFormat |
| AngleUnits | angleUnits |
Private Methods | |
| void | loadparameters (std::ifstream &fileStream, const char commentMarker) |
| void | toLowerCase (char *inputString, char *outputString) |
|
|
Enumeration DHDataFormat contains format for DHData. Enumeration DHDataFormat contains format for DHData. |
|
||||||||||||||||||||
|
Constructor. This is the constructor for an object of type DHData. Use this to construct an DHData object by supplying a datafile that contains the DH parameters of the robot. Default for angle units is degrees. Possible errors that may occur include a fileOpenError or dhParamsIllformed exception.
# This is a DH parameter file for a Puma 760 6 DOF robot. # The variable is specified by typing a "var' or a "VAR" in its # field. i.e. If the joint is revolute then it will be in the fourth # coulumn and if the joint is prismatic it will be in the third column # The notation is based on the "Introduction to Robotics, Mechanics and Controls" # book by John Craig. # The word below should specify the format of the DH Parameters (Craig or Paul) Craig
# Note: The tool point for this robot is at approximately 0, 0, 180 # expressed in the last joints DH frame
|
|
||||||||||||||||||||||||
|
Constructor. This is the constructor for an object of type DHData. Use this to construct an DHData object from an Matrix of size (DOF by 4) that contains the DH parameters of the robot instead of loading the DH parameters from a data file. The units for angles will default to Degrees. Possible errors that may occur include dhParamsIllformed exception.
|
|
||||||||||||
|
Constructor for creating an empty DHData object. This creates an empty RDDHData object whose DOF is 0 and DH parameters are not defined. User should call SetParameters() to define the parameters. The type of Joint (R or P) will be automatically decoded from the DH parameters specified by the user. Default for angle unit is assumed to be Degrees and dh format is defaulted to Craig
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type DHData. Use this to construct an DHData object from an existing DHData object.
|
|
|
Destructor. This is the Destructor for an object of type DHData. |
|
|
|
|
|
Get the format for the DH parameters. This method is used to get the format for the DH parameters. The format will be either Craig or Paul.
|
|
|
Get the degrees-of-freedom (DOF) represented by the DH parameters. This method is used to get the degrees-of-freedom (DOF) as represented by the DH parameters.
|
|
|
Get the joint type of a particular joint. This method is used to get the joint type of a particular joint. The joint type will be either prismatic or revolute.
|
|
|
Get a matrix representation of the DH parameters. This method returns a matrix representation of the DH parameters.
|
|
||||||||||||
|
Load dh parameters from a file. This method is used to load dh parameters from a file.
|
|
||||||||||||
|
Get a particular element of the DH Parameter matrix. This method is used to get a particular element of the DH Parameter matrix.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type DHData.
|
|
|
|
|
|
Set the format for the DH parameters. This method is used to set the format for the DH parameters. The format will be either Craig or Paul.
|
|
||||||||||||||||
|
Change the value of the DH parameters. Use this to modify the DH parameters stored in this objectby specifying a matrix of size (DOF by 4). Possible errors that may occur include dhParamsIllformed exception. The DOF of the manipulator represented by these parameters is calcuated based on the number of rows of dhParams. The type of the joint is also computed automatically based on specification of either 'd' or 'theta'
|
|
||||||||||||
|
Convert a string from Upper case to Lower Case. This method is used to convert a string from Upper case to Lower Case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |