From 8bf6a37775ad0cd5ff5f16629bb3d840dd6b1e81 Mon Sep 17 00:00:00 2001 From: BOOTCFG <139364969+BOOTCFG@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:59:52 +0100 Subject: [PATCH] fix namespace --- .../launch/overwrite_robot_description.launch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panther_description/launch/overwrite_robot_description.launch.py b/panther_description/launch/overwrite_robot_description.launch.py index de2187a2..a7f5cff9 100644 --- a/panther_description/launch/overwrite_robot_description.launch.py +++ b/panther_description/launch/overwrite_robot_description.launch.py @@ -151,12 +151,14 @@ def generate_launch_description(): ] ) + namespace_ext = PythonExpression(["'", namespace, "' + '/' if '", namespace, "' else ''"]) + set_robot_description = ExecuteProcess( cmd=[ "ros2", "param", "set", - "/panther/robot_state_publisher", + [namespace_ext, "robot_state_publisher"], "robot_description", robot_description_content, ],