From b2e75d7b1149f5fb21bb4ec441b6dfe9b6a3185a Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Mon, 27 Feb 2017 10:14:26 +0100 Subject: [PATCH] Script execution --- script/test/TestRobot2.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 script/test/TestRobot2.py diff --git a/script/test/TestRobot2.py b/script/test/TestRobot2.py new file mode 100644 index 0000000..cfc056e --- /dev/null +++ b/script/test/TestRobot2.py @@ -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") \ No newline at end of file