From 449264ea2b515aaf495ad05232e766b70c24c6d2 Mon Sep 17 00:00:00 2001 From: Deniz Memis Date: Tue, 28 Nov 2023 23:40:00 +0300 Subject: [PATCH] Fix node namespace --- composer/node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer/node.py b/composer/node.py index de1ae04..6209934 100644 --- a/composer/node.py +++ b/composer/node.py @@ -15,6 +15,7 @@ # # +import os import composer.param as param @@ -31,7 +32,8 @@ def __init__(self, stack, manifest={}): self._ros_args = manifest.get('ros_args', '') self._remap_args = [] self._args = '' - self._namespace = manifest.get('namespace', '/') + muto_ns = os.getenv('MUTONS') + self._namespace = manifest.get('namespace', muto_ns) self._launch_prefix = manifest.get('launch-prefix', None) self._output = manifest.get('output', 'log') self._iff = manifest.get('if', '')