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}
-
-
-
-