From 21ca265b3b58d1a1dff0fe97c6a401b7203c4528 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 6 Apr 2012 23:25:36 +0200 Subject: digital/ai/tools: set robot position in control scripts --- digital/ai/tools/test_simu_control_guybrush.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'digital/ai/tools/test_simu_control_guybrush.py') diff --git a/digital/ai/tools/test_simu_control_guybrush.py b/digital/ai/tools/test_simu_control_guybrush.py index 321b0d86..6d742e90 100644 --- a/digital/ai/tools/test_simu_control_guybrush.py +++ b/digital/ai/tools/test_simu_control_guybrush.py @@ -33,7 +33,8 @@ class TestSimuControl (TestSimu): LOWER_CLAMP_ROTATION_STROKE = int (16 * 250) def __init__ (self, robot_class, *args): - TestSimu.__init__ (self, robot_class, *args, color_switch = False) + TestSimu.__init__ (self, robot_class, *args, + color_switch_set_pos = True) self.io = self.robots[0].io self.asserv = self.robots[0].asserv self.mimot = self.robots[0].mimot @@ -90,8 +91,5 @@ class TestSimuControl (TestSimu): def lower_clamp_rotate_command (self): self.mimot.speed_pos ('a0', self.LOWER_CLAMP_ROTATION_STROKE / 2) - def change_color (self, *dummy): - pass - if __name__ == '__main__': run ('guybrush', TestSimuControl) -- cgit v1.2.3