summaryrefslogtreecommitdiff
path: root/host/simu/robots/aquajim/view/robot.py
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-09 01:42:11 +0200
committerNicolas Schodet2009-05-09 01:42:11 +0200
commit45e3ef9221d905d8a3da0fc7e19899352d646fee (patch)
treefe78c7aaa16085fba83703761880b6908dd32680 /host/simu/robots/aquajim/view/robot.py
parentc6367a657f9326cf590c721f4c9ab4b7fcdbc59b (diff)
* digital/asserv, host/simu/robot/aquajim:
- use real robot dimension.
Diffstat (limited to 'host/simu/robots/aquajim/view/robot.py')
-rw-r--r--host/simu/robots/aquajim/view/robot.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/host/simu/robots/aquajim/view/robot.py b/host/simu/robots/aquajim/view/robot.py
index 8974b179..713a30c4 100644
--- a/host/simu/robots/aquajim/view/robot.py
+++ b/host/simu/robots/aquajim/view/robot.py
@@ -46,15 +46,14 @@ class Robot (simu.inter.drawable.Drawable):
self.trans_rotate (self.angle)
self.trans_translate (self.pos)
# Draw robot body.
- # TODO
- self.draw_polygon ((150, 150), (150, -150), (-150, -150),
- (-150, 150), (150, 150))
+ self.draw_polygon ((150, 155), (-90, 155), (-150, 70),
+ (-150, -70), (-90, -155), (150, -155))
# Draw Robot axis.
axes_fill = '#404040'
self.draw_line ((-150, 0), (150, 0), fill = axes_fill,
arrow = 'last')
# Draw Robot wheels.
- f = 150 # Wheel spacing
+ f = 142 + 2 * 31.5 - 13.5 # Wheel spacing
wr = 63 / 2 # Wheel diameter
self.draw_line ((0, +f / 2), (0, -f / 2), fill = axes_fill)
self.draw_line ((-wr, f / 2), (+wr, f / 2), fill = axes_fill)