This is python api for Waveshare roarm product
We support Python2, Python3.5 or later.
roarm_m2 api 说明 | roarm_m2 api Description
roarm_m3 api 说明 | roarm_m3 api Description
Catalogue:
- roarm_sdk
- roarm
- echo_set(cmd)
- middle_set()
- move_init()
- led_ctrl(led)
- breath_led(duration,steps)
- torque_set(cmd)
- dynamic_adaptation_set(mode,torques)
- feedback_get()
- joint_radian_ctrl(joint,radian,speed,acc)
- joints_radian_ctrl(radians,speed,acc)
- joints_radian_get()
- joint_angle_ctrl(joint,angle,speed,acc)
- joints_angle_ctrl(angles,speed,acc)
- joints_angle_get()
- gripper_mode_set(mode)
- gripper_radian_ctrl(radian,speed,acc)
- gripper_angle_ctrl(angle,speed,acc)
- gripper_radian_get()
- gripper_angle_get()
- pose_ctrl(pose)
- pose_get()
- drag_teach_start(filename)
- drag_teach_replay(filename)
- wifi_on_boot(wifi_cmd)
- ap_set(ssid,password)
- sta_set(ssid,password)
- apsta_set(ap_ssid,ap_password,sta_ssid,sta_password)
- wifi_info_get()
- wifi_config_creat_by_status()
- wifi_config_creat_by_input(ap_ssid,ap_password,sta_ssid,sta_password)
- wifi_stop()
- disconnect()
- roarm
Set echo 0 : disable echo 1 : enable echo
-
Parameters
- cmd – : [0,1], type : int
Set current position to neutral calibration
Move roarm to home position
Ctrl led brightness
-
Parameters
-
led – : [0,255], type : int
0: darkest 255: brightest
-
Set breath_led
-
Parameters
-
duration – : breath duration, type : float
-
steps – : breath steps, type : int
-
Set the torque of the robot
-
Parameters
-
cmd – : [0,1], type : int
0: disable torque 1: enable torque
-
Set the dynamic adaptation of the robot
-
Parameters
-
mode – : [0,1], type : int
0: disable dynamic adaptation 1: enable dynamic adaptation
-
torques – : [0,1000], type : list
-
Get the feedback of the robot
-
Returns
- list – : a list of roarm feedback, type : List[float]
Control the joint radian of the robot
-
Parameters
-
joint – : id, type : int
-
radian – : value, type : float
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Control the joints radian of the robot
-
Parameters
-
radians – : a list of radian, type : List[float]
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Get the joints radian of the robot
-
Returns
- list – : a list of all radians, type : List[float]
Control the joint angle of the robot
-
Parameters
-
joint – : id, type : int
-
angle – : value, type : float
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Control the joints angle of the robot
-
Parameters
-
angles – : a list of angle, type : List[float]
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Get the joints angle of the robot
-
Returns
- list – : a list of all angles, type : List[float]
Start the drag teach of the robot
-
Parameters
- filename – : filename, type : str
Replay the drag teach of the robot
-
Parameters
- filename – : filename, type : str
Set the gripper mode of the robot
-
Parameters
-
mode – : [0,1], type : int
0: gripper 1: wrist
-
Control the gripper radian of the robot
-
Parameters
-
radian – : value, type : float
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Control the gripper angle of the robot
-
Parameters
-
angle – : value, type : float
-
speed – : [1,4096], type : int
-
acc – : [1,254], type : int
-
Get the gripper radian of the robot
-
Returns
- float – : gripper radian, type : float
Get the gripper angle of the robot
-
Returns
- float – : gripper angle, type : float
Control the pose of the robot
-
Parameters
- pose – : a list of coords value, type : List[float]
Get the pose of the robot
-
Returns
- list – : a list of coords value, type : List[float]
Set the wifi on boot of the robot
-
Parameters
-
wifi_cmd – : [0,3], type : int
0 : WIFI close 1 : AP model 2 : STA model 3 : AP + STA model
-
Set the ap of the robot
-
Parameters
-
ssid – : ssid, type : str
-
password – : password, type : str
-
Set the sta of the robot
-
Parameters
-
ssid – : ssid, type : str
-
password – : password, type : str
-
Set the apsta of the robot
-
Parameters
-
ap_ssid – : ap ssid, type : str
-
ap_password – : ap password, type : str
-
sta_ssid – : sta ssid, type : str
-
sta_password – : sta password, type : str
-
Creat the wifi config by status of the robot
Creat the wifi config by input of the robot
Stop the wifi of the robot
Disconnect the roarm
More demo can go to here.