From e15f64c69a881a8b637ad543f4addeb1f5c49db3 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 27 Dec 2023 13:09:46 +0100 Subject: [PATCH 1/9] 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/9] 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 578d57405a8108681d7471afa4ff92919e318b10 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 15 Jan 2024 09:56:21 +0100 Subject: [PATCH 3/9] realsense | added namespaces | changed topic of depth Signed-off-by: Jakub Delicat --- urdf/intel_realsense_d435.urdf.xacro | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/urdf/intel_realsense_d435.urdf.xacro b/urdf/intel_realsense_d435.urdf.xacro index ca1e8ee..207db3b 100644 --- a/urdf/intel_realsense_d435.urdf.xacro +++ b/urdf/intel_realsense_d435.urdf.xacro @@ -24,8 +24,16 @@ name:=camera topic:=camera use_nominal_extrinsics:=false + namespace:=None simulation_engine:=ignition-gazebo"> + + + + + + + @@ -176,11 +184,11 @@ - + true 30.0 - ${topic}/color/image_raw + ${namespace_ext}${topic}/color/image_raw false ${prefix}${name}_color_optical_frame @@ -194,13 +202,16 @@ 0.02 300.0 + + ${namespace_ext} + - + true 30.0 - ${topic}/depth + ${namespace_ext}${topic}/depth/image_raw false ${prefix}${name}_depth_optical_frame @@ -221,6 +232,9 @@ 0.005 + + ${namespace_ext} + From 8188a436b5b7436f3a8defb68d684d4704c647f0 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 15 Jan 2024 11:35:03 +0100 Subject: [PATCH 4/9] intel | remapped topics from api Signed-off-by: Jakub Delicat --- urdf/intel_realsense_d435.urdf.xacro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urdf/intel_realsense_d435.urdf.xacro b/urdf/intel_realsense_d435.urdf.xacro index 207db3b..3ebd0ae 100644 --- a/urdf/intel_realsense_d435.urdf.xacro +++ b/urdf/intel_realsense_d435.urdf.xacro @@ -184,6 +184,7 @@ + true 30.0 @@ -211,7 +212,7 @@ true 30.0 - ${namespace_ext}${topic}/depth/image_raw + ${namespace_ext}${topic}/depth/image_rect_raw false ${prefix}${name}_depth_optical_frame From 6ce719714eab20c5b7b0086fd72d546918d48628 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 15 Jan 2024 11:55:54 +0100 Subject: [PATCH 5/9] changed astra plugin | changed names of sensors for astra and realsense Signed-off-by: Jakub Delicat --- urdf/intel_realsense_d435.urdf.xacro | 16 +++++------ urdf/orbbec_astra.urdf.xacro | 43 +++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/urdf/intel_realsense_d435.urdf.xacro b/urdf/intel_realsense_d435.urdf.xacro index 3ebd0ae..743fe5a 100644 --- a/urdf/intel_realsense_d435.urdf.xacro +++ b/urdf/intel_realsense_d435.urdf.xacro @@ -28,10 +28,10 @@ simulation_engine:=ignition-gazebo"> - + - + @@ -185,11 +185,11 @@ should be more accurate for D435 - different frames and fovs can be set --> - + true 30.0 - ${namespace_ext}${topic}/color/image_raw + ${ns}${topic}/color/image_raw false ${prefix}${name}_color_optical_frame @@ -204,15 +204,15 @@ 300.0 - ${namespace_ext} + ${ns} - + true 30.0 - ${namespace_ext}${topic}/depth/image_rect_raw + ${ns}${topic}/depth/image_rect_raw false ${prefix}${name}_depth_optical_frame @@ -234,7 +234,7 @@ - ${namespace_ext} + ${ns} diff --git a/urdf/orbbec_astra.urdf.xacro b/urdf/orbbec_astra.urdf.xacro index f6f90f8..2927c44 100644 --- a/urdf/orbbec_astra.urdf.xacro +++ b/urdf/orbbec_astra.urdf.xacro @@ -94,16 +94,40 @@ - + + true - 20.0 + 30.0 + + ${ns}${camera_name}/color/image_raw + false + + ${prefix}${camera_name}_color_optical_frame + ${60.0/180.0*pi} + + 640 + 480 + + + + 0.6 + 8.0 + + + ${ns} + + - ${ns}${camera_name} - - ${prefix}${camera_name}_depth_optical_frame + + true + 10.0 - + + ${ns}${camera_name}/depth/image_raw + false + + ${prefix}${camera_name}_depth_optical_frame + ${60.0/180.0*pi} 640 @@ -114,6 +138,11 @@ 0.6 8.0 + + gaussian + 0.0 + 0.005 + ${ns} From c42e933acd26cd6014a9daf8767d5ed7e0200bed Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 15 Jan 2024 13:28:28 +0100 Subject: [PATCH 6/9] Added namespace to zed Signed-off-by: Jakub Delicat --- urdf/stereolabs_zed.urdf.xacro | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/urdf/stereolabs_zed.urdf.xacro b/urdf/stereolabs_zed.urdf.xacro index 288d81f..2c86b94 100644 --- a/urdf/stereolabs_zed.urdf.xacro +++ b/urdf/stereolabs_zed.urdf.xacro @@ -26,8 +26,16 @@ name:=camera topic:=camera use_nominal_extrinsics:=false + namespace:=None simulation_engine:=ignition-gazebo"> + + + + + + + @@ -183,11 +191,11 @@ camera should be more accurate different frames and fovs can be set --> - + true 30.0 - ${model}/zed_node/rgb/image_rect_color + ${ns}${model}/zed_node/rgb/image_rect_color false ${prefix}${name}_center_optical_frame @@ -203,13 +211,16 @@ 300.0 + + ${ns} + - + true 30.0 - ${model}/zed_node/depth + ${ns}${model}/zed_node/depth false ${prefix}${name}_center_optical_frame @@ -229,6 +240,9 @@ 0.03 + + ${ns} + From 8bccb40c0f0a6b977c03a8556bcce145cfe399f1 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 15 Jan 2024 13:45:20 +0100 Subject: [PATCH 7/9] Fixed tag in s3 | added namespace to velodyne puck Signed-off-by: Jakub Delicat --- urdf/slamtec_rplidar_s3.urdf.xacro | 6 +++--- urdf/velodyne_puck.urdf.xacro | 20 +++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/urdf/slamtec_rplidar_s3.urdf.xacro b/urdf/slamtec_rplidar_s3.urdf.xacro index a86d810..92866c1 100644 --- a/urdf/slamtec_rplidar_s3.urdf.xacro +++ b/urdf/slamtec_rplidar_s3.urdf.xacro @@ -112,10 +112,10 @@ 1 false + + ${ns} + - - ${ns} - diff --git a/urdf/velodyne_puck.urdf.xacro b/urdf/velodyne_puck.urdf.xacro index e2a1f0a..a61c2e6 100644 --- a/urdf/velodyne_puck.urdf.xacro +++ b/urdf/velodyne_puck.urdf.xacro @@ -6,8 +6,16 @@ tf_prefix:=None topic:=scan frame_id:=velodyne + namespace:=None simulation_engine:=gazebo-classic"> + + + + + + + @@ -64,7 +72,7 @@ - + false 10.0 @@ -96,14 +104,10 @@ - ${topic} + ${ns}${topic} ${prefix}${frame_id} ${prefix}${frame_id} true - - ogre2 - @@ -117,7 +121,9 @@ ${prefix}${frame_id} - + + ${ns} + From 52c6c9e4bb46eaae0a4278d21b3239c7de4a44f7 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 29 Jan 2024 08:16:55 +0100 Subject: [PATCH 8/9] Use only zed as camera name Signed-off-by: Jakub Delicat --- urdf/stereolabs_zed.urdf.xacro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urdf/stereolabs_zed.urdf.xacro b/urdf/stereolabs_zed.urdf.xacro index 2c86b94..be135f8 100644 --- a/urdf/stereolabs_zed.urdf.xacro +++ b/urdf/stereolabs_zed.urdf.xacro @@ -195,7 +195,7 @@ true 30.0 - ${ns}${model}/zed_node/rgb/image_rect_color + ${ns}zed/zed_node/rgb/image_rect_color false ${prefix}${name}_center_optical_frame @@ -220,7 +220,7 @@ true 30.0 - ${ns}${model}/zed_node/depth + ${ns}zed/zed_node/depth false ${prefix}${name}_center_optical_frame From 93fb219b4f9f588eb903dd175a119bcd1f2716ff Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Mon, 29 Jan 2024 12:09:35 +0100 Subject: [PATCH 9/9] Suggestions --- urdf/stereolabs_zed.urdf.xacro | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/urdf/stereolabs_zed.urdf.xacro b/urdf/stereolabs_zed.urdf.xacro index be135f8..7971d70 100644 --- a/urdf/stereolabs_zed.urdf.xacro +++ b/urdf/stereolabs_zed.urdf.xacro @@ -22,11 +22,9 @@ @@ -93,10 +91,10 @@ - + - + @@ -195,7 +193,7 @@ true 30.0 - ${ns}zed/zed_node/rgb/image_rect_color + ${ns}${prefix}${name}/zed_node/rgb/image_rect_color false ${prefix}${name}_center_optical_frame @@ -220,7 +218,7 @@ true 30.0 - ${ns}zed/zed_node/depth + ${ns}${prefix}${name}/zed_node/depth false ${prefix}${name}_center_optical_frame