From 9413e8a39c584dd6554bdcfa395e133fbbdf8784 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 29 May 2024 08:57:11 +0200 Subject: [PATCH] Suggestion and namespace fix Signed-off-by: Jakub Delicat --- launch/gz_components.launch.py | 2 +- urdf/components.urdf.xacro | 96 +++++----------------------------- 2 files changed, 14 insertions(+), 84 deletions(-) diff --git a/launch/gz_components.launch.py b/launch/gz_components.launch.py index 2df0a96..5089692 100644 --- a/launch/gz_components.launch.py +++ b/launch/gz_components.launch.py @@ -41,7 +41,7 @@ def get_launch_description(name: str, package: str, namespace: str, component: y device_namespace = get_value(component, "device_namespace") robot_namespace = namespace - if not name.find("ur3") and not name.find("kinova"): + if "ur3" not in name and "kinova" not in name and "robotiq" not in name: if len(robot_namespace) and robot_namespace[0] != "/": robot_namespace = "/" + robot_namespace if len(device_namespace) and device_namespace[0] != "/": diff --git a/urdf/components.urdf.xacro b/urdf/components.urdf.xacro index 9e579f1..6751723 100644 --- a/urdf/components.urdf.xacro +++ b/urdf/components.urdf.xacro @@ -25,7 +25,8 @@ - + - - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - -