Examples
1.
Python SDK Examples
Examples for AIRBOT Python SDK.
The examples are shipped with the AIRBOT Python SDK and can
directly run on the command line. Running examples would require
package airbot_py
to be installed.
After launching the AIRBOT driver serivice (see step 1 and step 2 of introduction), the examples can be run with the following command:
Available arguments for each examples could be examined by
Modules:
Name | Description |
---|---|
app_load |
Example of loading an internal app |
app_unload |
Example of unloading an internal app |
get_end_pose |
Example of getting end effector pose. |
get_joint_pos |
Example of getting joint position. |
get_params |
Example of getting parameters from control service. |
mit_joint_integrated |
Example of sending continuous mit joint commands to the robot arm. |
move_cart_pose |
Example of moving the robot arm to a specified cartesian pose. |
move_joint_pos |
Example of moving the robot to a joint position |
move_with_cart_waypoints |
Example of moving the robot arm with waypoints. |
move_with_joint_waypoints |
Example of moving the robot arm with waypoints. |
servo_cart_pose |
Example of sending continuous cartesian pose commands to the robot arm. |
servo_cart_twist |
Example of sending continuous cartesian twist commands to the robot arm. |
servo_joint_pos |
Example of sending continuous joint position commands to the robot arm. |
set_params |
Example of setting parameters to control service. |
set_speed_profile |
Example of demonstrating the speed profile of the robot arm. |
switch_mode |
Example of switching control mode. |
task_follow |
Make one arm follow the movement of another arm. |
task_kbd_ctrl |
Example application of controlling the robot arm using keyboard input. |
task_swing |
Example application: making the robot arm swing in a sinusoidal motion in joint space. |
task_wipe |
Example application: making the robot arm swing in a sinusoidal motion in cartesian space. |
1.1
airbot_examples.app_load
Example of loading an internal app
Functions:
Name | Description |
---|---|
app_load |
Load app according to the given app name |
1.1.1
airbot_examples.app_load.app_load()
Load app according to the given app name
Source code in airbot_examples/app_load.py
1.2
airbot_examples.app_unload
Example of unloading an internal app
Functions:
Name | Description |
---|---|
app_unload |
Unload app according to the given app name |
1.2.1
airbot_examples.app_unload.app_unload()
Unload app according to the given app name
Source code in airbot_examples/app_unload.py
1.3
airbot_examples.get_end_pose
Example of getting end effector pose.
The end effector pose along with robot state and control mode will be printed.
Functions:
Name | Description |
---|---|
get_end_pose |
Get end effector pose |
1.3.1
airbot_examples.get_end_pose.get_end_pose()
Get end effector pose
Source code in airbot_examples/get_end_pose.py
1.4
airbot_examples.get_joint_pos
Example of getting joint position.
The joint position along with robot state and control mode will be printed.
Functions:
Name | Description |
---|---|
get_joint_pos |
Get joint position |
1.4.1
airbot_examples.get_joint_pos.get_joint_pos()
Get joint position
Source code in airbot_examples/get_joint_pos.py
1.5
airbot_examples.get_params
Example of getting parameters from control service.
Functions:
Name | Description |
---|---|
get_params |
Example of getting parameters from control service. |
1.5.1
airbot_examples.get_params.get_params()
Example of getting parameters from control service.
Source code in airbot_examples/get_params.py
1.6
airbot_examples.mit_joint_integrated
Example of sending continuous mit joint commands to the robot arm.
Functions:
Name | Description |
---|---|
mit_joint_integrated |
Example of sending continuous joint position commands to the robot arm. |
1.6.1
airbot_examples.mit_joint_integrated.mit_joint_integrated()
Example of sending continuous joint position commands to the robot arm.
Source code in airbot_examples/mit_joint_integrated.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
1.7
airbot_examples.move_cart_pose
Example of moving the robot arm to a specified cartesian pose.
Functions:
Name | Description |
---|---|
move_cart_pose |
Example of moving the robot arm to a specified cartesian pose. |
1.7.1
airbot_examples.move_cart_pose.move_cart_pose()
Example of moving the robot arm to a specified cartesian pose.
Source code in airbot_examples/move_cart_pose.py
1.8
airbot_examples.move_joint_pos
Example of moving the robot to a joint position
Functions:
Name | Description |
---|---|
move_joint_pos |
Move the robot to a joint position |
1.8.1
airbot_examples.move_joint_pos.move_joint_pos()
Move the robot to a joint position
Source code in airbot_examples/move_joint_pos.py
1.9
airbot_examples.move_with_cart_waypoints
Example of moving the robot arm with waypoints.
Functions:
Name | Description |
---|---|
move_with_cart_waypoints |
Example of moving the robot arm with waypoints.. |
1.9.1
airbot_examples.move_with_cart_waypoints.move_with_cart_waypoints()
Example of moving the robot arm with waypoints..
Source code in airbot_examples/move_with_cart_waypoints.py
1.10
airbot_examples.move_with_joint_waypoints
Example of moving the robot arm with waypoints.
Functions:
Name | Description |
---|---|
move_with_joint_waypoints |
Example of moving the robot arm with waypoints.. |
1.10.1
airbot_examples.move_with_joint_waypoints.move_with_joint_waypoints()
Example of moving the robot arm with waypoints..
Source code in airbot_examples/move_with_joint_waypoints.py
1.11
airbot_examples.servo_cart_pose
Example of sending continuous cartesian pose commands to the robot arm.
Functions:
Name | Description |
---|---|
servo_cart_pose |
Example of sending continuous cartesian pose commands to the robot arm. |
1.11.1
airbot_examples.servo_cart_pose.servo_cart_pose()
Example of sending continuous cartesian pose commands to the robot arm.
Source code in airbot_examples/servo_cart_pose.py
1.12
airbot_examples.servo_cart_twist
Example of sending continuous cartesian twist commands to the robot arm.
Functions:
Name | Description |
---|---|
servo_cart_twist |
Example of sending continuous cartesian twist commands to the robot arm. |
1.12.1
airbot_examples.servo_cart_twist.servo_cart_twist()
Example of sending continuous cartesian twist commands to the robot arm.
Source code in airbot_examples/servo_cart_twist.py
1.13
airbot_examples.servo_joint_pos
Example of sending continuous joint position commands to the robot arm.
Functions:
Name | Description |
---|---|
servo_joint_pos |
Example of sending continuous joint position commands to the robot arm. |
1.13.1
airbot_examples.servo_joint_pos.servo_joint_pos()
Example of sending continuous joint position commands to the robot arm.
Source code in airbot_examples/servo_joint_pos.py
1.14
airbot_examples.set_params
Example of setting parameters to control service.
Functions:
Name | Description |
---|---|
set_params |
Example of setting parameters to control service. |
1.14.1
airbot_examples.set_params.set_params()
Example of setting parameters to control service.
Source code in airbot_examples/set_params.py
1.15
airbot_examples.set_speed_profile
Example of demonstrating the speed profile of the robot arm.
Functions:
Name | Description |
---|---|
set_speed_profile |
Example of demonstrating the speed profile of the robot arm. |
1.15.1
airbot_examples.set_speed_profile.set_speed_profile()
Example of demonstrating the speed profile of the robot arm.
Source code in airbot_examples/set_speed_profile.py
1.16
airbot_examples.switch_mode
Example of switching control mode.
Functions:
Name | Description |
---|---|
switch_mode |
Switch control mode according to the given mode |
1.16.1
airbot_examples.switch_mode.switch_mode()
Switch control mode according to the given mode
Source code in airbot_examples/switch_mode.py
1.17
airbot_examples.task_follow
Make one arm follow the movement of another arm.
Functions:
Name | Description |
---|---|
follow |
Follow the lead robot arm |
1.17.1
airbot_examples.task_follow.follow()
Follow the lead robot arm
Source code in airbot_examples/task_follow.py
1.18
airbot_examples.task_kbd_ctrl
Example application of controlling the robot arm using keyboard input.
Functions:
Name | Description |
---|---|
task_kbd_ctrl |
Example application of controlling the robot arm using keyboard input. |
1.18.1
airbot_examples.task_kbd_ctrl.task_kbd_ctrl()
Example application of controlling the robot arm using keyboard input.
Source code in airbot_examples/task_kbd_ctrl.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
|
1.19
airbot_examples.task_swing
Example application: making the robot arm swing in a sinusoidal motion in joint space.
Functions:
Name | Description |
---|---|
task_swing |
Make the robot arm swing in a sinusoidal motion in joint space. |
1.19.1
airbot_examples.task_swing.task_swing()
Make the robot arm swing in a sinusoidal motion in joint space.
Source code in airbot_examples/task_swing.py
1.20
airbot_examples.task_wipe
Example application: making the robot arm swing in a sinusoidal motion in cartesian space.
Functions:
Name | Description |
---|---|
task_wipe |
Example application: making the robot arm swing in a sinusoidal motion in joint space. |
1.20.1
airbot_examples.task_wipe.task_wipe()
Example application: making the robot arm swing in a sinusoidal motion in joint space.