#include <robot.h>
Public Member Functions | |
Real | get_a (void) const |
Return a. More... | |
Real | get_alpha (void) const |
Return alpha. More... | |
Real | get_B (void) const |
Return B. More... | |
Real | get_Cf (void) const |
Return Cf. More... | |
Real | get_d (void) const |
Return d. More... | |
bool | get_DH (void) const |
Return DH value. More... | |
Real | get_Gr (void) const |
Return Gr. More... | |
ReturnMatrix | get_I (void) const |
Return I. More... | |
Real | get_Im (void) const |
Return Im. More... | |
bool | get_immobile (void) const |
Return immobile. More... | |
Real | get_joint_offset (void) const |
Return joint_offset. More... | |
int | get_joint_type (void) const |
Return the joint type. More... | |
Real | get_m (void) const |
Return m. More... | |
ReturnMatrix | get_mc (void) |
Return mc. More... | |
ReturnMatrix | get_p (void) const |
Return p. More... | |
Real | get_q (void) const |
Return joint position (theta if joint type is rotoide, d otherwise). More... | |
ReturnMatrix | get_r (void) |
Return r. More... | |
Real | get_theta (void) const |
Return theta. More... | |
Real | get_theta_max (void) const |
Return theta_max. More... | |
Real | get_theta_min (void) const |
Return theta_min. More... | |
Link (const int jt=0, const Real it=0.0, const Real id=0.0, const Real ia=0.0, const Real ial=0.0, const Real theta_min=-M_PI/2, const Real theta_max=M_PI/2, const Real it_off=0.0, const Real mass=1.0, const Real cmx=0.0, const Real cmy=0.0, const Real cmz=0.0, const Real ixx=0.0, const Real ixy=0.0, const Real ixz=0.0, const Real iyy=0.0, const Real iyz=0.0, const Real izz=0.0, const Real iIm=0.0, const Real iGr=0.0, const Real iB=0.0, const Real iCf=0.0, const bool dh=true, const bool min_inertial_para=false, const bool immobile=false) | |
Constructor. More... | |
void | set_B (const Real B_) |
Set B. More... | |
void | set_Cf (const Real Cf_) |
Set Cf. More... | |
void | set_I (const Matrix &I) |
Set I. More... | |
void | set_Im (const Real Im_) |
Set Im. More... | |
void | set_immobile (bool im) |
Set immobile. More... | |
void | set_m (const Real m_) |
Set m. More... | |
void | set_mc (const ColumnVector &mc_) |
Set mc. More... | |
void | set_r (const ColumnVector &r_) |
Set r. More... | |
void | transform (const Real q) |
Set the rotation matrix R and the vector p. More... | |
~Link () | |
Destructor. More... | |
Public Attributes | |
Real | qp |
Joint velocity. More... | |
Real | qpp |
Joint acceleration. More... | |
Matrix | R |
Orientation matrix of actual link w.r.t to previous link. More... | |
Private Attributes | |
Real | a |
a DH parameter. More... | |
Real | alpha |
alpha DH parameter. More... | |
Real | B |
Viscous coefficient. More... | |
Real | Cf |
Coulomb fiction coefficient. More... | |
Real | d |
d DH parameter. More... | |
bool | DH |
DH notation(true) or DH modified notation. More... | |
Real | Gr |
Gear Ratio. More... | |
Matrix | I |
Inertia matrix w.r.t. center of mass and link coordinate system orientation. More... | |
Real | Im |
Motor Inertia. More... | |
bool | immobile |
true if the joint is to be considered locked - ignored for inverse kinematics, but can still be reassigned through transform More... | |
Real | joint_offset |
Offset in joint angle (rotoide and prismatic). More... | |
int | joint_type |
Joint type. More... | |
Real | m |
Mass of the link. More... | |
ColumnVector | mc |
Mass center of gravity (used if min_para = true). More... | |
bool | min_para |
Minimum inertial parameter. More... | |
ColumnVector | p |
Position vector of actual link w.r.t to previous link. More... | |
ColumnVector | r |
Position of center of mass w.r.t. link coordinate system (min_para=F). More... | |
Real | theta |
theta DH parameter. More... | |
Real | theta_max |
Max joint angle. More... | |
Real | theta_min |
Min joint angle. More... | |
Friends | |
class | mRobot |
class | mRobot_min_para |
class | Robot |
class | Robot_basic |
Link definitions.
A n degree of freedom (dof) serial manipulator is composed of n links. This class describe the property of a link. A n dof robot has n instance of the class Link.
Link::Link | ( | const int | jt = 0 , |
const Real | it = 0.0 , |
||
const Real | id = 0.0 , |
||
const Real | ia = 0.0 , |
||
const Real | ial = 0.0 , |
||
const Real | theta_min = -M_PI/2 , |
||
const Real | theta_max = M_PI/2 , |
||
const Real | it_off = 0.0 , |
||
const Real | mass = 1.0 , |
||
const Real | cmx = 0.0 , |
||
const Real | cmy = 0.0 , |
||
const Real | cmz = 0.0 , |
||
const Real | ixx = 0.0 , |
||
const Real | ixy = 0.0 , |
||
const Real | ixz = 0.0 , |
||
const Real | iyy = 0.0 , |
||
const Real | iyz = 0.0 , |
||
const Real | izz = 0.0 , |
||
const Real | iIm = 0.0 , |
||
const Real | iGr = 0.0 , |
||
const Real | iB = 0.0 , |
||
const Real | iCf = 0.0 , |
||
const bool | dh = true , |
||
const bool | min_inertial_para = false , |
||
const bool | immobile = false |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Real Link::get_q | ( | void | ) | const |
|
inline |
|
inline |
|
inline |
void Link::set_I | ( | const Matrix & | I | ) |
void Link::set_mc | ( | const ColumnVector & | mc_ | ) |
void Link::set_r | ( | const ColumnVector & | r_ | ) |
void Link::transform | ( | const Real | q | ) |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Matrix Link::R |
|
private |