forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pointcloud_preprocessor): blockage_diag (autowarefoundation#…
…5932) * chore(blockage_diag): refactor Signed-off-by: badai-nguyen <[email protected]> * chore: add error logger Signed-off-by: badai-nguyen <[email protected]> * chore: refactor Signed-off-by: badai-nguyen <[email protected]> * docs: update readme Signed-off-by: badai-nguyen <[email protected]> * chore: refactor Signed-off-by: badai-nguyen <[email protected]> * fix: break interval angle as continuous one Signed-off-by: badai-nguyen <[email protected]> * chore: update param file Signed-off-by: badai-nguyen <[email protected]> * docs: update readme Signed-off-by: badai-nguyen <[email protected]> * chore: typo Signed-off-by: badai-nguyen <[email protected]> * fix: multi-blockage-diag in 1 container died bug fix Signed-off-by: badai-nguyen <[email protected]> * chore: update param_file Signed-off-by: badai-nguyen <[email protected]> * fix: Nan sky_blockage_ratio Signed-off-by: badai-nguyen <[email protected]> --------- Signed-off-by: badai-nguyen <[email protected]>
- Loading branch information
1 parent
d6aa2c7
commit e9b2442
Showing
6 changed files
with
73 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,6 +211,7 @@ ament_export_targets(export_${PROJECT_NAME}) | |
|
||
ament_auto_package(INSTALL_TO_SHARE | ||
launch | ||
config | ||
) | ||
|
||
|
||
|
14 changes: 14 additions & 0 deletions
14
sensing/pointcloud_preprocessor/config/blockage_diagnostics_param_file.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/**: | ||
ros__parameters: | ||
blockage_ratio_threshold: 0.1 | ||
blockage_count_threshold: 50 | ||
blockage_buffering_frames: 2 | ||
blockage_buffering_interval: 1 | ||
dust_ratio_threshold: 0.2 | ||
dust_count_threshold: 10 | ||
dust_kernel_size: 2 | ||
dust_buffering_frames: 10 | ||
dust_buffering_interval: 1 | ||
max_distance_range: 200.0 | ||
horizontal_resolution: 0.4 | ||
blockage_kernel: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 4 additions & 23 deletions
27
sensing/pointcloud_preprocessor/launch/blockage_diag.launch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,18 @@ | ||
<launch> | ||
<arg name="input_topic_name" default="pointcloud_raw_ex"/> | ||
<arg name="output_topic_name" default="blockage_diag/pointcloud"/> | ||
|
||
<arg name="horizontal_ring_id" default="18"/> | ||
<arg name="angle_range" default="[0.0, 360.0]"/> | ||
<arg name="vertical_bins" default="40"/> | ||
<arg name="model" default="Pandar40P"/> | ||
<arg name="blockage_ratio_threshold" default="0.1"/> | ||
<arg name="blockage_count_threshold" default="50"/> | ||
<arg name="blockage_buffering_frames" default="100"/> | ||
<arg name="blockage_buffering_interval" default="5"/> | ||
<arg name="dust_ratio_threshold" default="0.2"/> | ||
<arg name="dust_count_threshold" default="10"/> | ||
<arg name="dust_kernel_size" default="2"/> | ||
<arg name="dust_buffering_frames" default="10"/> | ||
<arg name="dust_buffering_interval" default="1"/> | ||
|
||
<arg name="is_channel_order_top2down" default="true"/> | ||
<arg name="blockage_diagnostics_param_file" default="$(find-pkg-share pointcloud_preprocessor)/config/blockage_diagnostics_param_file.yaml"/> | ||
<node pkg="pointcloud_preprocessor" exec="blockage_diag_node" name="blockage_diag"> | ||
<remap from="input" to="$(var input_topic_name)"/> | ||
<remap from="output" to="$(var output_topic_name)"/> | ||
|
||
<param name="horizontal_ring_id" value="$(var horizontal_ring_id)"/> | ||
<param name="angle_range" value="$(var angle_range)"/> | ||
<param name="vertical_bins" value="$(var vertical_bins)"/> | ||
<param name="model" value="$(var model)"/> | ||
<param name="blockage_ratio_threshold" value="$(var blockage_ratio_threshold)"/> | ||
<param name="blockage_count_threshold" value="$(var blockage_count_threshold)"/> | ||
<param name="blockage_buffering_frames" value="$(var blockage_buffering_frames)"/> | ||
<param name="blockage_buffering_interval" value="$(var blockage_buffering_interval)"/> | ||
<param name="dust_ratio_threshold" value="$(var dust_ratio_threshold)"/> | ||
<param name="dust_count_threshold" value="$(var dust_count_threshold)"/> | ||
<param name="dust_kernel_size" value="$(var dust_kernel_size)"/> | ||
<param name="dust_buffering_frames" value="$(var dust_buffering_frames)"/> | ||
<param name="dust_buffering_interval" value="$(var dust_buffering_interval)"/> | ||
<param name="is_channel_order_top2down" value="$(var is_channel_order_top2down)"/> | ||
<param from="$(var blockage_diagnostics_param_file)"/> | ||
</node> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters