summaryrefslogtreecommitdiff
path: root/host/simu/robots
diff options
context:
space:
mode:
Diffstat (limited to 'host/simu/robots')
-rw-r--r--host/simu/robots/aquajim/link/bag.py6
-rw-r--r--host/simu/robots/giboulee/link/bag.py6
-rw-r--r--host/simu/robots/marcel/link/bag.py8
-rw-r--r--host/simu/robots/robospierre/link/bag.py8
4 files changed, 14 insertions, 14 deletions
diff --git a/host/simu/robots/aquajim/link/bag.py b/host/simu/robots/aquajim/link/bag.py
index 3cb9e1b2..f0f96b9d 100644
--- a/host/simu/robots/aquajim/link/bag.py
+++ b/host/simu/robots/aquajim/link/bag.py
@@ -27,7 +27,7 @@ import asserv.mex
class Bag:
- def __init__ (self, node):
- self.asserv = asserv.mex.Mex (node)
- self.io = io.mex.Mex (node)
+ def __init__ (self, node, instance = 'robot0'):
+ self.asserv = asserv.mex.Mex (node, '%s:asserv0' % instance)
+ self.io = io.mex.Mex (node, '%s:io0' % instance)
diff --git a/host/simu/robots/giboulee/link/bag.py b/host/simu/robots/giboulee/link/bag.py
index c8c1b285..4dbf0554 100644
--- a/host/simu/robots/giboulee/link/bag.py
+++ b/host/simu/robots/giboulee/link/bag.py
@@ -27,7 +27,7 @@ import asserv.mex
class Bag:
- def __init__ (self, node):
- self.asserv = asserv.mex.Mex (node)
- self.io = io.mex.Mex (node)
+ def __init__ (self, node, instance = 'robot0'):
+ self.asserv = asserv.mex.Mex (node, '%s:asserv0' % instance)
+ self.io = io.mex.Mex (node, '%s:io0' % instance)
diff --git a/host/simu/robots/marcel/link/bag.py b/host/simu/robots/marcel/link/bag.py
index 7cb34c28..c0e36dea 100644
--- a/host/simu/robots/marcel/link/bag.py
+++ b/host/simu/robots/marcel/link/bag.py
@@ -28,8 +28,8 @@ import mimot.mex
class Bag:
- def __init__ (self, node):
- self.asserv = asserv.mex.Mex (node)
- self.io = io.mex.Mex (node)
- self.mimot = mimot.mex.Mex (node)
+ def __init__ (self, node, instance = 'robot0'):
+ self.asserv = asserv.mex.Mex (node, '%s:asserv0' % instance)
+ self.io = io.mex.Mex (node, '%s:io0' % instance)
+ self.mimot = mimot.mex.Mex (node, '%s:mimot0' % instance)
diff --git a/host/simu/robots/robospierre/link/bag.py b/host/simu/robots/robospierre/link/bag.py
index ac68889a..e3368d55 100644
--- a/host/simu/robots/robospierre/link/bag.py
+++ b/host/simu/robots/robospierre/link/bag.py
@@ -28,8 +28,8 @@ import mimot.mex
class Bag:
- def __init__ (self, node):
- self.asserv = asserv.mex.Mex (node)
- self.io_hub = io_hub.mex.Mex (node)
- self.mimot = mimot.mex.Mex (node)
+ def __init__ (self, node, instance = 'robot0'):
+ self.asserv = asserv.mex.Mex (node, '%s:asserv0' % instance)
+ self.io_hub = io_hub.mex.Mex (node, '%s:io0' % instance)
+ self.mimot = mimot.mex.Mex (node, '%s:mimot0' % instance)