test_IPKF

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

MACRO_GROUP

MACRO_GROUP

Functions

void DHP_update (DHP *dhp, matrix *joints)
 this function allows to update the current dh parameter with the actual joints angle
void DH_Transf (DHP *dhp, matrix *T)
 this function allows to compute the homogeneouse trasformation matrix starting from DH parameters
void DPKF (matrix *joint, matrix *p)
 Function which performs the direct position kinematic function.
void JacobianG (matrix *joint, matrix *Jg, matrix *T_TCP)
 Function which returns the geometric Jacobian given the joints values.
void JacobianA (matrix *joint, matrix *Ja)
 Function which returns the Analytical Jacobian given the joints values.
int IPKF (matrix *p, matrix *joint)
 Computes the inverse kinematics (returns the joints values for a desired pose).

Function Documentation

void DH_Transf ( DHP dhp,
matrix T 
)

this function allows to compute the homogeneouse trasformation matrix starting from DH parameters

Parameters:
pointerto the actual DH parameter
pointerto the trasformation matrix to compute
Returns:
void

Definition at line 94 of file kinematic.c.

void DHP_update ( DHP dhp,
matrix joints 
)

this function allows to update the current dh parameter with the actual joints angle

Parameters:
pointerto the DH parameter to update
pointerto the new joint angle, value which update the DHP
Returns:
void

Definition at line 59 of file kinematic.c.

void DPKF ( matrix joint,
matrix p 
)

Function which performs the direct position kinematic function.

Given the joints values the TCP pose is computed

Parameters:
pointerto the structure containing the actual joints values
pointerto the pose structure where the result will be stored
Returns:
void

< initialization of matrices

< DHP initialization

< Homogeneous transformations

< Tool center point transformation

< matrix delation

Definition at line 120 of file kinematic.c.

int IPKF ( matrix p,
matrix joint 
)

Computes the inverse kinematics (returns the joints values for a desired pose).

Parameters:
pis the pointer to the desired pose
jointis where the result will be saved
Returns:
0 if the inverse kinematics is computed correctly
1 if the point to reach is not in the task space

Definition at line 471 of file kinematic.c.

void JacobianA ( matrix joint,
matrix Ja 
)

Function which returns the Analytical Jacobian given the joints values.

Parameters:
jointis the address to the structure containing the joints values
Jais the address where the Analytical Jacobian will be stored
Returns:
void

Definition at line 395 of file kinematic.c.

void JacobianG ( matrix joint,
matrix Jg,
matrix T_TCP 
)

Function which returns the geometric Jacobian given the joints values.

Parameters:
pointerto the structure containing the joints values
Jgis the address where the geometric Jacobian will be stored
T_TCPis the matrix in which the homogeneous transformation from 0 to TCP is stored once computed
Returns:
void

<compute dh_par="">compute T from dhp

compute distance from TCP

compute jacobian

Definition at line 187 of file kinematic.c.