From 833509668ccff949dc61d32665d91fa89d7f9ae7 Mon Sep 17 00:00:00 2001
From: badai nguyen <94814556+badai-nguyen@users.noreply.github.com>
Date: Fri, 31 May 2024 21:48:06 +0900
Subject: [PATCH] refactor(image_projection_based_fusion): rework param (#6289)
---
...roi_sync.param.yaml => fusion_common.param.yaml} | 0
.../segmentation_pointcloud_fusion.param.yaml | 13 ++++++-------
.../launch/pointpainting_fusion.launch.xml | 2 +-
.../launch/roi_cluster_fusion.launch.xml | 2 +-
.../launch/roi_detected_object_fusion.launch.xml | 2 +-
.../launch/roi_pointcloud_fusion.launch.xml | 2 +-
.../segmentation_pointcloud_fusion.launch.xml | 2 +-
...i_sync.schema.json => fusion_common.schema.json} | 4 ++--
8 files changed, 13 insertions(+), 14 deletions(-)
rename perception/image_projection_based_fusion/config/{roi_sync.param.yaml => fusion_common.param.yaml} (100%)
rename perception/image_projection_based_fusion/schema/{roi_sync.schema.json => fusion_common.schema.json} (97%)
diff --git a/perception/image_projection_based_fusion/config/roi_sync.param.yaml b/perception/image_projection_based_fusion/config/fusion_common.param.yaml
similarity index 100%
rename from perception/image_projection_based_fusion/config/roi_sync.param.yaml
rename to perception/image_projection_based_fusion/config/fusion_common.param.yaml
diff --git a/perception/image_projection_based_fusion/config/segmentation_pointcloud_fusion.param.yaml b/perception/image_projection_based_fusion/config/segmentation_pointcloud_fusion.param.yaml
index 79a8b860ebdd3..2120a909cd672 100644
--- a/perception/image_projection_based_fusion/config/segmentation_pointcloud_fusion.param.yaml
+++ b/perception/image_projection_based_fusion/config/segmentation_pointcloud_fusion.param.yaml
@@ -31,10 +31,9 @@
# debug
debug_mode: false
- filter_scope_min_x: -100
- filter_scope_max_x: 100
- filter_scope_min_y: -100
- filter_scope_max_y: 100
- filter_scope_min_z: -100
- filter_scope_max_z: 100
- image_buffer_size: 15
+ filter_scope_min_x: -100.0
+ filter_scope_max_x: 100.0
+ filter_scope_min_y: -100.0
+ filter_scope_max_y: 100.0
+ filter_scope_min_z: -100.0
+ filter_scope_max_z: 100.0
diff --git a/perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml b/perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml
index a22b2c2a13bda..d2f803f13d376 100644
--- a/perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml
+++ b/perception/image_projection_based_fusion/launch/pointpainting_fusion.launch.xml
@@ -24,7 +24,7 @@
-
+
diff --git a/perception/image_projection_based_fusion/launch/roi_cluster_fusion.launch.xml b/perception/image_projection_based_fusion/launch/roi_cluster_fusion.launch.xml
index 8df1a374b00b6..f624b099fccb3 100644
--- a/perception/image_projection_based_fusion/launch/roi_cluster_fusion.launch.xml
+++ b/perception/image_projection_based_fusion/launch/roi_cluster_fusion.launch.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml b/perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml
index c9da81af9ddb0..f11280b7f7c67 100644
--- a/perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml
+++ b/perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/perception/image_projection_based_fusion/launch/roi_pointcloud_fusion.launch.xml b/perception/image_projection_based_fusion/launch/roi_pointcloud_fusion.launch.xml
index 046d88d06e2a1..cde06744aca58 100644
--- a/perception/image_projection_based_fusion/launch/roi_pointcloud_fusion.launch.xml
+++ b/perception/image_projection_based_fusion/launch/roi_pointcloud_fusion.launch.xml
@@ -21,7 +21,7 @@
-
+
diff --git a/perception/image_projection_based_fusion/launch/segmentation_pointcloud_fusion.launch.xml b/perception/image_projection_based_fusion/launch/segmentation_pointcloud_fusion.launch.xml
index 1db2bb20793ac..cf4d104b9e05a 100644
--- a/perception/image_projection_based_fusion/launch/segmentation_pointcloud_fusion.launch.xml
+++ b/perception/image_projection_based_fusion/launch/segmentation_pointcloud_fusion.launch.xml
@@ -18,7 +18,7 @@
-
+
diff --git a/perception/image_projection_based_fusion/schema/roi_sync.schema.json b/perception/image_projection_based_fusion/schema/fusion_common.schema.json
similarity index 97%
rename from perception/image_projection_based_fusion/schema/roi_sync.schema.json
rename to perception/image_projection_based_fusion/schema/fusion_common.schema.json
index 411fb678a49a7..73ee1661adaea 100644
--- a/perception/image_projection_based_fusion/schema/roi_sync.schema.json
+++ b/perception/image_projection_based_fusion/schema/fusion_common.schema.json
@@ -3,7 +3,7 @@
"title": "Parameters for Synchronization of RoI Fusion Nodes",
"type": "object",
"definitions": {
- "roi_sync": {
+ "fusion_common": {
"type": "object",
"properties": {
"input_offset_ms": {
@@ -74,7 +74,7 @@
"type": "object",
"properties": {
"ros__parameters": {
- "$ref": "#/definitions/roi_sync"
+ "$ref": "#/definitions/fusion_common"
}
},
"required": ["ros__parameters"]