Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(object_merger): rework parameters #6160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<include file="$(find-pkg-share object_merger)/launch/object_association_merger.launch.xml">
<arg name="input/object0" value="$(var merger/input/objects)"/>
<arg name="input/object1" value="clustering/objects"/>
<arg name="priority_mode" value="2"/>
<arg name="output/object" value="$(var merger/output/objects)"/>
<arg name="data_association_matrix_path" value="$(var object_recognition_detection_object_merger_data_association_matrix_param_path)"/>
<arg name="distance_threshold_list_path" value="$(var object_recognition_detection_object_merger_distance_threshold_list_path)"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**:
ros__parameters:
sync_queue_size: 20
precision_threshold_to_judge_overlapped: 0.4
remove_overlapped_unknown_objects: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
<arg name="priority_mode" default="2" description="0: Object0, 1: Object1, 2: Confidence"/>
<arg name="data_association_matrix_path" default="$(find-pkg-share object_merger)/config/data_association_matrix.param.yaml"/>
<arg name="distance_threshold_list_path" default="$(find-pkg-share object_merger)/config/overlapped_judge.param.yaml"/>
<arg name="sync_queue_size" default="20"/>
<arg name="object_association_merger_param_path" default="$(find-pkg-share object_merger)/config/object_association_merger.param.yaml"/>

<node pkg="object_merger" exec="object_association_merger_node" name="$(anon object_association_merger)" output="screen">
<remap from="input/object0" to="$(var input/object0)"/>
<remap from="input/object1" to="$(var input/object1)"/>
<remap from="output/object" to="$(var output/object)"/>
<param from="$(var data_association_matrix_path)"/>
<param from="$(var distance_threshold_list_path)"/>
<param from="$(var object_association_merger_param_path)"/>

<!-- Be careful when moving this parameter to param.yaml, since this value depends on which part this launcher is called -->
<param name="priority_mode" value="$(var priority_mode)"/>
<param name="sync_queue_size" value="$(var sync_queue_size)"/>
<param name="precision_threshold_to_judge_overlapped" value="0.4"/>
<param name="remove_overlapped_unknown_objects" value="true"/>
</node>
</launch>
Loading