From e15f64c69a881a8b637ad543f4addeb1f5c49db3 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 27 Dec 2023 13:09:46 +0100 Subject: [PATCH 1/3] added namespaces for astra rplidar Signed-off-by: Jakub Delicat --- urdf/orbbec_astra.urdf.xacro | 22 ++++++++++++++-------- urdf/slamtec_rplidar_a2.urdf.xacro | 22 ++++++++++++++-------- urdf/slamtec_rplidar_a3.urdf.xacro | 23 +++++++++++++++-------- urdf/slamtec_rplidar_s1.urdf.xacro | 23 +++++++++++++++-------- 4 files changed, 58 insertions(+), 32 deletions(-) diff --git a/urdf/orbbec_astra.urdf.xacro b/urdf/orbbec_astra.urdf.xacro index 49768eb..c789ada 100644 --- a/urdf/orbbec_astra.urdf.xacro +++ b/urdf/orbbec_astra.urdf.xacro @@ -4,8 +4,16 @@ params="parent_link xyz rpy tf_prefix:=None camera_name:=camera + namespace:=None simulation_engine:=gazebo-classic"> + + + + + + + @@ -77,7 +85,7 @@ - + @@ -90,7 +98,7 @@ true 20.0 - ${camera_name} + ${namespace_ext}${camera_name} ${tf_prefix_ext}${camera_name}_depth_optical_frame @@ -107,13 +115,11 @@ 8.0 + + ${namespace_ext} + - @@ -152,4 +158,4 @@ - \ No newline at end of file + diff --git a/urdf/slamtec_rplidar_a2.urdf.xacro b/urdf/slamtec_rplidar_a2.urdf.xacro index 007659f..1f608e5 100644 --- a/urdf/slamtec_rplidar_a2.urdf.xacro +++ b/urdf/slamtec_rplidar_a2.urdf.xacro @@ -12,8 +12,16 @@ topic:=scan frame_id:=laser model:=A2M12 + namespace:=None simulation_engine:=gazebo-classic"> + + + + + + + @@ -100,9 +108,9 @@ - + - ${topic} + ${namespace_ext}scan ${tf_prefix_ext}${frame_id} ${tf_prefix_ext}${frame_id} @@ -129,13 +137,11 @@ true false + + ${namespace_ext} + - - - ogre2 - - @@ -177,4 +183,4 @@ - \ No newline at end of file + diff --git a/urdf/slamtec_rplidar_a3.urdf.xacro b/urdf/slamtec_rplidar_a3.urdf.xacro index 9d378c3..ead4f40 100644 --- a/urdf/slamtec_rplidar_a3.urdf.xacro +++ b/urdf/slamtec_rplidar_a3.urdf.xacro @@ -6,8 +6,17 @@ tf_prefix:=None topic:=scan frame_id:=laser + namespace:=None simulation_engine:=gazebo-classic"> + + + + + + + + @@ -75,9 +84,9 @@ - + - ${topic} + ${namespace_ext}${topic} ${tf_prefix_ext}${frame_id} ${tf_prefix_ext}${frame_id} @@ -105,13 +114,11 @@ true false + + ${namespace_ext} + - - - ogre2 - - @@ -154,4 +161,4 @@ - \ No newline at end of file + diff --git a/urdf/slamtec_rplidar_s1.urdf.xacro b/urdf/slamtec_rplidar_s1.urdf.xacro index f46d411..db90b33 100644 --- a/urdf/slamtec_rplidar_s1.urdf.xacro +++ b/urdf/slamtec_rplidar_s1.urdf.xacro @@ -6,8 +6,17 @@ tf_prefix:=None topic:=scan frame_id:=laser + namespace=None simulation_engine:=gazebo-classic"> + + + + + + + + @@ -83,9 +92,9 @@ - + - ${topic} + ${namespace_ext}${topic} ${tf_prefix_ext}${frame_id} ${tf_prefix_ext}${frame_id} @@ -112,13 +121,11 @@ 1 false + + ${namespace_ext} + - - - ogre2 - - @@ -160,4 +167,4 @@ - \ No newline at end of file + From 24f1d57c9143c301b76dabd96cec03363d382079 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 27 Dec 2023 13:15:29 +0100 Subject: [PATCH 2/3] added namespace gazebo to other rplidars Signed-off-by: Jakub Delicat --- urdf/slamtec_rplidar_s2.urdf.xacro | 20 +++++++++++++------- urdf/slamtec_rplidar_s3.urdf.xacro | 20 +++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/urdf/slamtec_rplidar_s2.urdf.xacro b/urdf/slamtec_rplidar_s2.urdf.xacro index e79aa28..aa6eda8 100644 --- a/urdf/slamtec_rplidar_s2.urdf.xacro +++ b/urdf/slamtec_rplidar_s2.urdf.xacro @@ -6,8 +6,16 @@ tf_prefix:=None topic:=scan frame_id:=laser + namespace=None simulation_engine:=gazebo-classic"> + + + + + + + @@ -75,9 +83,9 @@ - + - ${topic} + ${namespace_ext}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -104,13 +112,11 @@ 1 false + + ${namespace_ext} + - - - ogre2 - - diff --git a/urdf/slamtec_rplidar_s3.urdf.xacro b/urdf/slamtec_rplidar_s3.urdf.xacro index e54c5fc..008d142 100644 --- a/urdf/slamtec_rplidar_s3.urdf.xacro +++ b/urdf/slamtec_rplidar_s3.urdf.xacro @@ -6,8 +6,16 @@ tf_prefix:=None topic:=scan frame_id:=laser + namespace=None simulation_engine:=gazebo-classic"> + + + + + + + @@ -75,9 +83,9 @@ - + - ${topic} + ${namespace_ext}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -105,11 +113,9 @@ 1 false - - - - ogre2 - + + ${namespace_ext} + From 03902d25feac2ea36cd9a4f20a31ee84ee125095 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Thu, 11 Jan 2024 10:17:12 +0100 Subject: [PATCH 3/3] Tabs + ns --- urdf/orbbec_astra.urdf.xacro | 10 +++++----- urdf/slamtec_rplidar_a2.urdf.xacro | 10 +++++----- urdf/slamtec_rplidar_a3.urdf.xacro | 10 +++++----- urdf/slamtec_rplidar_s1.urdf.xacro | 10 +++++----- urdf/slamtec_rplidar_s2.urdf.xacro | 10 +++++----- urdf/slamtec_rplidar_s3.urdf.xacro | 10 +++++----- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/urdf/orbbec_astra.urdf.xacro b/urdf/orbbec_astra.urdf.xacro index eb1ed39..f6f90f8 100644 --- a/urdf/orbbec_astra.urdf.xacro +++ b/urdf/orbbec_astra.urdf.xacro @@ -7,11 +7,11 @@ namespace:=None simulation_engine:=gazebo-classic"> - - + + - + @@ -98,7 +98,7 @@ true 20.0 - ${namespace_ext}${camera_name} + ${ns}${camera_name} ${prefix}${camera_name}_depth_optical_frame @@ -116,7 +116,7 @@ - ${namespace_ext} + ${ns} diff --git a/urdf/slamtec_rplidar_a2.urdf.xacro b/urdf/slamtec_rplidar_a2.urdf.xacro index b55e132..0eb88fd 100644 --- a/urdf/slamtec_rplidar_a2.urdf.xacro +++ b/urdf/slamtec_rplidar_a2.urdf.xacro @@ -16,10 +16,10 @@ simulation_engine:=gazebo-classic"> - + - + @@ -108,9 +108,9 @@ - + - ${namespace_ext}${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -138,7 +138,7 @@ true false - ${namespace_ext} + ${ns} diff --git a/urdf/slamtec_rplidar_a3.urdf.xacro b/urdf/slamtec_rplidar_a3.urdf.xacro index e218f72..44a223f 100644 --- a/urdf/slamtec_rplidar_a3.urdf.xacro +++ b/urdf/slamtec_rplidar_a3.urdf.xacro @@ -11,10 +11,10 @@ - + - + @@ -84,9 +84,9 @@ - + - ${namespace_ext}${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -115,7 +115,7 @@ true false - ${namespace_ext} + ${ns} diff --git a/urdf/slamtec_rplidar_s1.urdf.xacro b/urdf/slamtec_rplidar_s1.urdf.xacro index 4dc75e0..b9a02b6 100644 --- a/urdf/slamtec_rplidar_s1.urdf.xacro +++ b/urdf/slamtec_rplidar_s1.urdf.xacro @@ -11,10 +11,10 @@ - + - + @@ -92,9 +92,9 @@ - + - ${namespace_ext}${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -122,7 +122,7 @@ 1 false - ${namespace_ext} + ${ns} diff --git a/urdf/slamtec_rplidar_s2.urdf.xacro b/urdf/slamtec_rplidar_s2.urdf.xacro index 1dbd1d7..adba748 100644 --- a/urdf/slamtec_rplidar_s2.urdf.xacro +++ b/urdf/slamtec_rplidar_s2.urdf.xacro @@ -10,10 +10,10 @@ simulation_engine:=gazebo-classic"> - + - + @@ -83,9 +83,9 @@ - + - ${namespace_ext}${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -113,7 +113,7 @@ 1 false - ${namespace_ext} + ${ns} diff --git a/urdf/slamtec_rplidar_s3.urdf.xacro b/urdf/slamtec_rplidar_s3.urdf.xacro index 058fbdb..a86d810 100644 --- a/urdf/slamtec_rplidar_s3.urdf.xacro +++ b/urdf/slamtec_rplidar_s3.urdf.xacro @@ -10,10 +10,10 @@ simulation_engine:=gazebo-classic"> - + - + @@ -83,9 +83,9 @@ - + - ${namespace_ext}${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} @@ -114,7 +114,7 @@ false - ${namespace_ext} + ${ns}