From 868cf96fd293414a720a24b67dc1d07c5b240857 Mon Sep 17 00:00:00 2001 From: Pbopbo Date: Mon, 28 Oct 2024 14:02:54 +0100 Subject: [PATCH] Adds support for namespaces to TurtleBot4Navigator. --- .../turtlebot4_navigation/turtlebot4_navigator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turtlebot4_navigation/turtlebot4_navigation/turtlebot4_navigator.py b/turtlebot4_navigation/turtlebot4_navigation/turtlebot4_navigator.py index 451c70f..53ad865 100644 --- a/turtlebot4_navigation/turtlebot4_navigation/turtlebot4_navigator.py +++ b/turtlebot4_navigation/turtlebot4_navigation/turtlebot4_navigator.py @@ -52,8 +52,8 @@ class TurtleBot4Navigator(BasicNavigator): is_docked = None creating_path = False - def __init__(self): - super().__init__() + def __init__(self, namespace=''): + super().__init__(namespace=namespace) self.create_subscription(DockStatus, 'dock_status',