SDK-Python Interface ENG V1.0
SDK-Python Interface ENG V1.0
Parameters:
Success: 0
Returns:
Fail: other
Parameters:
Success: 0
Returns:
Fail: other
Parameters:
Success: context handle RSHD >= 0
Returns:
Fail: -1
Parameters:
Success: 0
Returns:
Fail: other
Parameters: end_maxacc is the end side acceleration, unit: meter per sec
Success: 0
Returns:
Fail: other
Parameters:
Success: the maximum acceleration of the robot end, unit(m/s) Success: 0
Returns:
Fail: None
Parameters:
Parameters:
Success: 0
Returns:
Fail: other
Parameters:
Success: the maximum velocity of the robot end, unit: rad/s
Returns:
Fail: None
Parameters:
Returns: Success: 0
Fail: other
Result:
Returns: Success: 0
Fail: other
Parameters:
Result:
Returns: Success: 0
Fail: other
Returns: Success: 0
Fail: other
Returns: Success: 0
Fail: other
Returns: {"pos":(1,2,3),
"ori":(1,2,3,4)}
Parameters:
Result:
Returns: Success: 0
Fail: other
Parameters:
Result:
Returns: Success: 0
Fail: other
Parameters:
Result:
Returns: Success: 0
Fail: other
Parameters:
Result:
Returns: Success: 0
Fail: other
Parameters:
Result:
Returns: Success: 0
Fail: other
state
0 ROBOT_SERVICE_READY ready
1 ROBOT_SERVICE_STARTING starting
Startup the 2 ROBOT_SERVICE_WORKING working
state of 3 ROBOT_SERVICE_CLOSING closing
robot: 4 ROBOT_SERVICE_CLOSED closed
5 ROBOT_SETVICE_FAULT_POWER power fault
6 ROBOT_SETVICE_FAULT_BRAKE, brake fault
7 ROBOT_SETVICE_FAULT_NO_ROBOT no robot
Parameters:
Mode 0 simulation mode
Returns: 1 real robot
Parameters:
The real robot exists or not
Returns: Not-exist: 0
Exist :1
Parameters:
Joint state
{‘joint1’:
{‘current':current(mA),'voltage':voltage(Volts),'temperature':temperature(
Celsius)},
Returns: 'joint2':{'current':0,'voltage':0.0,'temperature':0},
'joint3':{'current':0,'voltage':0.0,'temperature':0},
'joint4':{'current':0,'voltage':0.0,'temperature':0},
'joint5':{'current':0,'voltage':0.0,'temperature':0},
'joint6':{'current':0,'voltage':0.0,'temperature':0}}
Name: get_tool_power_type()
Parameters:
Power_type:
OUT_0V = 0,
Returns: OUT_12V = 1,
OUT_24V = 2
Name: get_tool_power_voltage()
Parameters:
Returns: Voltage value: voltage
import libpyauboi5
# robot event
def robot_event(event):
Example print(event)
# set the robot event callback function
libpyauboi5.setcallback_robot_event(robot_event)