|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DHSystem | +--CRSPlusA150 | +--ArmSimulator
A class to simulate the action of the robot arm
Constructor Summary | |
ArmSimulator()
Default constructor purpose : initialize the simulator |
Method Summary | |
Pic3DCanvas |
getCanvas(int usize,
int vsize)
get the output canvas |
boolean |
grip(double width)
purpose : execute the command GRIP of the arm |
void |
home()
purpose : home the arm |
boolean |
ma(double waist,
double shoulder,
double elbow,
double wrist,
double twist)
purpose : execute the command MA of the arm |
boolean |
madeg(double waist,
double shoulder,
double elbow,
double wrist,
double twist)
purpose : execute the command MA of the arm |
boolean |
mi(double waist,
double shoulder,
double elbow,
double wrist,
double twist)
purpose : execute command MI of the arm |
boolean |
mideg(double waist,
double shoulder,
double elbow,
double wrist,
double twist)
purpose : execute command MI of the arm |
boolean |
openWindow()
purpose : create an output window |
boolean |
openWindow(int usize,
int vsize)
purpose : create an output window |
void |
ready()
purpose : set the arm to ready position |
boolean |
speed(int value)
purpose : execute the command SPEED of the arm |
Methods inherited from class CRSPlusA150 |
degToRad,
move,
radToDeg |
Methods inherited from class DHSystem |
changeA,
changeAlpha,
changeD,
changeTheta,
getA,
getAlpha,
getD,
getFramePosition,
getTheta,
getTransformation,
reset,
setDH |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ArmSimulator()
Method Detail |
public boolean openWindow()
public boolean openWindow(int usize, int vsize)
public Pic3DCanvas getCanvas(int usize, int vsize)
usize
- total number of pixels of the output canvas horizontallyvsize
- total number of pixels of the output canvas verticallypublic void home()
public void ready()
public boolean ma(double waist, double shoulder, double elbow, double wrist, double twist)
waist
- waist angle in radianshoulder
- shoulder angle in radianelbow
- elbow angle in radianwrist
- wrist's bend angle in radiantwist
- wrist's twist angle in radianpublic boolean madeg(double waist, double shoulder, double elbow, double wrist, double twist)
waist
- waist angle in degreeshoulder
- shoulder angle in degreeelbow
- elbow angle in degreewrist
- wrist's bend angle in degreetwist
- wrist's twist angle in degreepublic boolean mi(double waist, double shoulder, double elbow, double wrist, double twist)
waist
- increment of waist angle in radianshoulder
- increment of shoulder angle in radianelbow
- increment of elbow angle in radianwrist
- increment of wrist's bend angle in radiantwist
- increment of wrist's twist angle in radianpublic boolean mideg(double waist, double shoulder, double elbow, double wrist, double twist)
waist
- increment of waist angle in degreeshoulder
- increment of shoulder angle in degreeelbow
- increment of elbow angle in degreewrist
- increment of wrist's bend angle in degreetwist
- increment of wrist's twist angle in degreepublic boolean grip(double width)
width
- width between the fingers of the gripper in inchpublic boolean speed(int value)
value
- speed of the arm
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |