Skip to content

Commit

Permalink
add remove_interval_ring arg
Browse files Browse the repository at this point in the history
  • Loading branch information
TomohitoAndo committed Sep 12, 2024
1 parent 6f4bd6d commit ab44d16
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aip_x2_gen2_launch/launch/hesai_OT128.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
<arg name="vehicle_mirror_param_file" default="$(var vehicle_mirror_param_file)" />
<arg name="blockage_diagnostics_param_file" default="$(find-pkg-share aip_x2_gen2_launch)/config/blockage_diagnostics_param_file.yaml" />

<!-- ring filter params -->
<arg name="enable_ring_filter" default="true"/>
<arg name="ring_interval" default="2"/>
<arg name="remove_interval_ring" default="true"/>

<include file="$(find-pkg-share aip_x2_gen2_launch)/launch/nebula_node_container.launch.py">
<arg name="launch_driver" value="$(var launch_driver)"/>
Expand Down Expand Up @@ -70,6 +72,7 @@

<arg name="enable_ring_filter" value="$(var enable_ring_filter)"/>
<arg name="ring_interval" value="$(var ring_interval)"/>
<arg name="remove_interval_ring" value="$(var remove_interval_ring)"/>

</include>
</launch>
3 changes: 2 additions & 1 deletion aip_x2_gen2_launch/launch/hesai_QT128.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<arg name="vehicle_mirror_param_file" default="$(var vehicle_mirror_param_file)" />
<arg name="blockage_diagnostics_param_file" default="$(find-pkg-share aip_x2_gen2_launch)/config/blockage_diagnostics_param_file.yaml" />

<!-- ring filter params -->
<arg name="enable_ring_filter" default="false"/>
<arg name="ring_interval" default="2"/>

Expand Down Expand Up @@ -69,7 +70,7 @@
<arg name="blockage_diagnostics_param_file" value="$(var blockage_diagnostics_param_file)"/>

<arg name="enable_ring_filter" value="$(var enable_ring_filter)"/>
<arg name="ring_interval" value="$(var ring_interval)"/>
<!-- <arg name="ring_interval" value="$(var ring_interval)"/> -->

</include>
</launch>
12 changes: 11 additions & 1 deletion aip_x2_gen2_launch/launch/lidar.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
<arg name="dual_return_filter_param_file" default="$(find-pkg-share aip_x2_gen2_launch)/config/dual_return_filter.param.yaml"/>
<arg name="enable_blockage_diag" default="false"/>

<arg name="ring_interval" default="2"/>
<!-- use 2/3 of points -->
<arg name="ring_interval" default="3"/>
<arg name="remove_interval_ring" default="true"/>

<!-- use 1/3 of points -->
<!-- <arg name="ring_interval" default="3"/>
<arg name="remove_interval_ring" default="false"/> -->

<group>
<push-ros-namespace namespace="lidar" />
Expand Down Expand Up @@ -61,6 +67,7 @@

<arg name="enable_ring_filter" value="true" />
<arg name="ring_interval" value="$(var ring_interval)" />
<arg name="remove_interval_ring" value="$(var remove_interval_ring)" />
</include>
</group>

Expand Down Expand Up @@ -98,6 +105,7 @@

<arg name="enable_ring_filter" value="false" />
<arg name="ring_interval" value="$(var ring_interval)" />
<arg name="remove_interval_ring" value="$(var remove_interval_ring)" />
</include>
</group>

Expand Down Expand Up @@ -204,6 +212,7 @@

<arg name="enable_ring_filter" value="true" />
<arg name="ring_interval" value="$(var ring_interval)" />
<arg name="remove_interval_ring" value="$(var remove_interval_ring)" />
</include>
</group>

Expand Down Expand Up @@ -241,6 +250,7 @@

<arg name="enable_ring_filter" value="false" />
<arg name="ring_interval" value="$(var ring_interval)" />
<arg name="remove_interval_ring" value="$(var remove_interval_ring)" />
</include>
</group>

Expand Down
3 changes: 3 additions & 0 deletions aip_x2_gen2_launch/launch/nebula_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def str2vector(string):
parameters=[
{
"ring_interval": LaunchConfiguration("ring_interval"),
"remove_interval_ring": LaunchConfiguration("remove_interval_ring"),
}
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
Expand Down Expand Up @@ -404,8 +405,10 @@ def add_launch_arg(name: str, default_value=None, description=None):
add_launch_arg("max_azimuth_deg", "225.0")
add_launch_arg("enable_blockage_diag", "true")

# ring filter params
add_launch_arg("enable_ring_filter", "true")
add_launch_arg("ring_interval", "2")
add_launch_arg("remove_interval_ring", "true")

set_container_executable = SetLaunchConfiguration(
"container_executable",
Expand Down

0 comments on commit ab44d16

Please sign in to comment.