Script execution

This commit is contained in:
gac-S_Changer
2017-02-27 10:14:26 +01:00
parent cbef47e9a6
commit b2e75d7b11

34
script/test/TestRobot2.py Normal file
View File

@@ -0,0 +1,34 @@
robot.task_create("simulateEvents",3, name = "test", priority = 20)
try:
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")