From fd1c46e3bbb4a98b7a263c051bd8bda9797c508f Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 4 May 2010 02:25:23 +0200 Subject: host/simu/robots/marcel: nicer values for clamp size --- host/simu/robots/marcel/model/loader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/simu') diff --git a/host/simu/robots/marcel/model/loader.py b/host/simu/robots/marcel/model/loader.py index ec987816..f80da1ba 100644 --- a/host/simu/robots/marcel/model/loader.py +++ b/host/simu/robots/marcel/model/loader.py @@ -36,7 +36,7 @@ class Loader (Observable): ELEVATOR_LINEAR_STROKE = 32 ELEVATOR_ROTATING_STROKE = 200 - 32 - FRONT_ZONE_X_MIN = 120 + 15 + FRONT_ZONE_X_MIN = 120 - 15 FRONT_ZONE_X_MAX = 120 + CLAMP_LENGTH - 15 def __init__ (self, table, robot_position, left_clamp_link, right_clamp_link, @@ -155,8 +155,8 @@ class Loader (Observable): # pushed: #ymin = -self.CLAMP_WIDTH / 2 + self.clamp_pos[1] #ymax = self.CLAMP_WIDTH / 2 - self.clamp_pos[0] - ymin = -self.CLAMP_WIDTH + 40 - ymax = self.CLAMP_WIDTH - 40 + ymin = -self.CLAMP_WIDTH + 20 + ymax = self.CLAMP_WIDTH - 20 for o in self.table.obstacles: if o.level == 1 and o.pos is not None: pos = m.apply (o.pos) -- cgit v1.2.3