35 lines
967 B
Python
35 lines
967 B
Python
robot.task_create("simulateEvents",3, name = "test", priority = 20)
|
|
|
|
try:
|
|
while(True):
|
|
robot.is_powered()
|
|
robot.get_task_status("test")
|
|
robot.get_monitor_speed()
|
|
#robot.set_monitor_speed(20)
|
|
#robot.enable()
|
|
robot.disable()
|
|
robot.is_calibrated()
|
|
robot.read_working_mode()
|
|
robot.get_emergency_stop_sts()
|
|
robot.get_safety_fault_signal()
|
|
robot.stop()
|
|
robot.resume()
|
|
robot.resetMotion()
|
|
robot.is_empty()
|
|
robot.is_settled()
|
|
robot.get_move_id()
|
|
robot.set_move_id(10)
|
|
robot.get_joint_forces()
|
|
#robot.open("gripper")
|
|
#robot.close("gripper")
|
|
robot.herej()
|
|
robot.distance_t("t", "t")
|
|
robot.distance_p("p", "p")
|
|
robot.compose( "p", "world", "t")
|
|
robot.here("gripper", "world")
|
|
robot.joint_to_point("gripper", "world", "j")
|
|
robot.point_to_joint("gripper", "j", "p")
|
|
robot.position("p", "world")
|
|
robot.mount(1, 2)
|
|
finally:
|
|
robot.task_kill("test") |