In Cartesian space control, the movement speed of expected place and posture for the end of robot arm can be given by directly through the keyboard or handle, and thus to control the movement of the robotic arm.
Keyboard | Q/A | W/S | E/D | R/F | T/G | Y/H |
Key Function | forward/ backward | right/ left | up/ down | roll | pitch | yaw |
Input the coordinates of the specific point [roll pitch yaw x y z]
The coordinates of the points can be moved to the target position through joint control, and then saved to "csv" file through the "savestate" state machine or obtained by calling the "getJointState" executable file.
Example:
First run the robotic arm to the "forward" pose
Press 0, input forward, then click Enter
MOVEJ
Press 4, input 0.5 0.1 0.1 0.5 -0.2 0.5
Please make sure the input is correct, and click Enter twice, then the robotic arm starts to move.
Note: The purpose of clicking Enter twice: When controlling the keyboard, the user is allowed to continually input the next pose after clicking Enter. Once you finish the input, click Enter twice, it will execute in order.
MOVEL
Press 5, input 0 0 0 0.45 -0.2 0.2, then click Enter twice.
MOVEC
Press 6, input two poses, the intermediate pose, and the final pose.
Input 0 0 0 0.45 0 0.4 and then click Enter, then input 0 0 0 0.45 0.2 0.2 and click Enter twice. The sample program details, please find in the bigDemo example.
First, press"~"to make the robotic arm return to the origin, or control the robotic arm move to a certain initial point, press 2 to enter the joint control state machine, then press 7 to enter the teaching state machine, input the label name and click Enter , then you can manipulate the robotic arm to move in a certain trajectory, the trajectory will be recorded constantly until the user clicks 2 to enter the joint space control.
The trajectory will be saved in a new ".csv" file in directory catalog Z1_controller/config.
Press 8 on the keyboard to enter the repeated teaching state machine, input the saved trajectory label name (check the csv file to confirm), the robotic arm will repeat the teaching trajectory movement.
Pressing 9 on the keyboard allows to record the angle of each joint of the robotic arm as a label at a certain moment, this function is called "label recording".
The robotic arm will automatically save the current pose state and input a custom label name according to the prompts. The recorded labels are saved in the file "savedArmStates.csv". After completion, the robotic arm will automatically turn to the joint space control state.
Press 0 on the keyboard, input the stored label name, then click Enter, the robotic arm will automatically move to the corresponding pose.
When the movement completed, the robotic arm will automatically turn to the joint space control state.
Press"="on the keyboard to set the current position as the initial position. After completing the setting, the robotic arm will automatically turn to the passive state.
A new robotic arm needs to perform this operation in the first step of running the program.