From 442e5bad2c9c93bdca7f126829e90f97785208d1 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 8 May 2024 18:35:47 +0200 Subject: [PATCH] removed simulation-engine from s3 | fix with no namespace Signed-off-by: Jakub Delicat --- launch/gz_components.launch.py | 4 +- urdf/slamtec_rplidar_s3.urdf.xacro | 73 +++++++++++++++--------------- 2 files changed, 38 insertions(+), 39 deletions(-) diff --git a/launch/gz_components.launch.py b/launch/gz_components.launch.py index 98cf262..aaa0f70 100644 --- a/launch/gz_components.launch.py +++ b/launch/gz_components.launch.py @@ -41,9 +41,9 @@ def get_launch_description(name: str, package: str, namespace: str, component: y device_namespace = get_value(component, "device_namespace") robot_namespace = namespace - if robot_namespace[0] != "/": + if len(robot_namespace) and robot_namespace[0] != "/": robot_namespace = "/" + robot_namespace - if device_namespace[0] != "/": + if len(device_namespace) and device_namespace[0] != "/": device_namespace = "/" + device_namespace return IncludeLaunchDescription( diff --git a/urdf/slamtec_rplidar_s3.urdf.xacro b/urdf/slamtec_rplidar_s3.urdf.xacro index f79b96a..629e506 100644 --- a/urdf/slamtec_rplidar_s3.urdf.xacro +++ b/urdf/slamtec_rplidar_s3.urdf.xacro @@ -65,44 +65,43 @@ - - - - + + + - ${ns}${device_ns}scan - ${ns}${prefix}laser - ${ns}${prefix}laser + ${ns}${device_ns}scan + ${ns}${prefix}laser + ${ns}${prefix}laser + + 10.0 + + + + 3000 + 1 + -${pi} + ${pi} + + + + 0.05 + 40.0 + 0.01 + + + gaussian + 0.0 + 0.03 + + + 1 + false + + ${ns}${device_ns} + + + - 10.0 - - - - 3000 - 1 - -${pi} - ${pi} - - - - 0.05 - 40.0 - 0.01 - - - gaussian - 0.0 - 0.03 - - - 1 - false - - ${ns}${device_ns} - - - -