summaryrefslogtreecommitdiff
path: root/host/simu/robots
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-12 02:02:03 +0200
committerNicolas Schodet2012-05-12 11:15:57 +0200
commit382b99e11c033f1952cbe2b9e082cd35812a13e3 (patch)
tree008571474836ee5913085089a0835911239c13cb /host/simu/robots
parentfb73dbae0dc7d6b9f117c74bb8de2a073ab4253b (diff)
digital/ui-hub: add debug draw module to debug path finding
Diffstat (limited to 'host/simu/robots')
-rw-r--r--host/simu/robots/guybrush/model/bag.py1
-rw-r--r--host/simu/robots/guybrush/view/bag.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/host/simu/robots/guybrush/model/bag.py b/host/simu/robots/guybrush/model/bag.py
index ec83cb29..caeba351 100644
--- a/host/simu/robots/guybrush/model/bag.py
+++ b/host/simu/robots/guybrush/model/bag.py
@@ -84,4 +84,5 @@ class Bag:
]
self.path = link_bag.io_hub.path
self.pos_report = link_bag.io_hub.pos_report
+ self.debug_draw = link_bag.io_hub.debug_draw
diff --git a/host/simu/robots/guybrush/view/bag.py b/host/simu/robots/guybrush/view/bag.py
index 3d5fb621..a2eadf7f 100644
--- a/host/simu/robots/guybrush/view/bag.py
+++ b/host/simu/robots/guybrush/view/bag.py
@@ -26,6 +26,7 @@ from simu.view.switch import Switch
from simu.view.distance_sensor_us import DistanceSensorUS
from simu.view.path import Path
from simu.view.pos_report import PosReport
+from simu.view.debug_draw import DebugDraw
from simu.robots.guybrush.view.robot import Robot
from simu.robots.guybrush.view.clamps import ClampsSide
@@ -44,4 +45,5 @@ class Bag:
for ds in model_bag.distance_sensor]
self.path = Path (table, model_bag.path)
self.pos_report = PosReport (table, model_bag.pos_report)
+ self.debug_draw = DebugDraw (table, model_bag.debug_draw)