summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
authorNicolas Schodet2012-04-21 09:12:48 +0200
committerNicolas Schodet2012-04-21 09:12:48 +0200
commit7c8f2999d8a61fa4f7666484a9ead9541121d4c0 (patch)
tree1d3784050ca2f9e90b0c1dd0237bda789f5b927e /digital
parent7399342e11e0f025a1904ae5cbf5946100231472 (diff)
host/simu/robots/guybrush: add load/unload simulation
Diffstat (limited to 'digital')
-rw-r--r--digital/ai/tools/test_simu_control_guybrush.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/digital/ai/tools/test_simu_control_guybrush.py b/digital/ai/tools/test_simu_control_guybrush.py
index b9106eab..9be6a7b0 100644
--- a/digital/ai/tools/test_simu_control_guybrush.py
+++ b/digital/ai/tools/test_simu_control_guybrush.py
@@ -33,6 +33,8 @@ class TestSimuControl (TestSimu):
UPPER_CLAMP_IN = 1 << 3
UPPER_CLAMP_DOWN = 1 << 4
UPPER_CLAMP_UP = 1 << 5
+ DOOR_OPEN = 1 << 6
+ DOOR_CLOSE = 1 << 7
LOWER_CLAMP_1_OPEN = 1 << 8
LOWER_CLAMP_2_OPEN = 1 << 9
LOWER_CLAMP_ROTATION_STROKE = int (16 * 250)
@@ -46,6 +48,7 @@ class TestSimuControl (TestSimu):
self.robot_model = self.robots[0].model
self.io.output (self.UPPER_CLAMP_UP, 'toggle')
self.io.output (self.UPPER_CLAMP_IN, 'toggle')
+ self.io.output (self.DOOR_CLOSE, 'toggle')
def create_widgets (self):
TestSimu.create_widgets (self)
@@ -69,6 +72,7 @@ class TestSimuControl (TestSimu):
out_button ('UClamp in/out',
self.UPPER_CLAMP_IN | self.UPPER_CLAMP_OUT)
out_button ('UClamp open', self.UPPER_CLAMP_OPEN)
+ out_button ('Door open', self.DOOR_OPEN | self.DOOR_CLOSE)
self.backward_var = IntVar ()
self.backward_button = Checkbutton (self.control_frame,
text = 'Backward', variable = self.backward_var)