Skip to content

Commit

Permalink
chore: separate angle_range param for blockage
Browse files Browse the repository at this point in the history
Signed-off-by: badai-nguyen <[email protected]>
  • Loading branch information
badai-nguyen committed Feb 19, 2024
1 parent b900f4b commit b0909eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions aip_x2_launch/launch/lidar.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<arg name="gps_port" value="10121" />
<arg name="scan_phase" value="270.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[90.0, 270.0]"/>
<arg name="distance_range" value="[0.5, 200.0]"/>
<arg name="vertical_bins" value ="40" />
<arg name="horizontal_ring_id" value="12" />
Expand All @@ -41,6 +42,7 @@
<arg name="gps_port" value="10131" />
<arg name="scan_phase" value="270.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[90.0, 270.0]"/>
<arg name="distance_range" value="[0.1, 7.5]"/>
<arg name="vertical_bins" value ="64" />
<arg name="horizontal_ring_id" value="40" />
Expand All @@ -62,6 +64,7 @@
<arg name="gps_port" value="10122" />
<arg name="scan_phase" value="305.0" />
<arg name="angle_range" value="[90.0, 305.0]"/>
<arg name="blockage_diag_angle_range" value="[90.0, 305.0]"/>
<arg name="distance_range" value="[0.5, 200.0]"/>
<arg name="vertical_bins" value ="40" />
<arg name="horizontal_ring_id" value="12" />
Expand All @@ -85,6 +88,7 @@
<arg name="gps_port" value="10132" />
<arg name="scan_phase" value="270.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[120.0, 240.0]"/>
<arg name="distance_range" value="[0.1, 7.5]"/>
<arg name="vertical_bins" value ="64" />
<arg name="horizontal_ring_id" value="54" />
Expand All @@ -106,6 +110,7 @@
<arg name="gps_port" value="10123" />
<arg name="scan_phase" value="270.0" />
<arg name="angle_range" value="[55.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[55.0, 270.0]"/>
<arg name="distance_range" value="[0.5, 200.0]"/>
<arg name="vertical_bins" value ="40" />
<arg name="horizontal_ring_id" value="12" />
Expand All @@ -129,6 +134,7 @@
<arg name="gps_port" value="10133" />
<arg name="scan_phase" value="270.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[120.0, 240.0]"/>
<arg name="distance_range" value="[0.1, 7.5]"/>
<arg name="vertical_bins" value ="64" />
<arg name="horizontal_ring_id" value="54" />
Expand All @@ -150,6 +156,7 @@
<arg name="gps_port" value="10124" />
<arg name="scan_phase" value="180.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[90.0, 270.0]"/>
<arg name="distance_range" value="[0.5, 200.0]"/>
<arg name="vertical_bins" value ="40" />
<arg name="horizontal_ring_id" value="12" />
Expand All @@ -173,6 +180,7 @@
<arg name="gps_port" value="10134" />
<arg name="scan_phase" value="180.0" />
<arg name="angle_range" value="[90.0, 270.0]"/>
<arg name="blockage_diag_angle_range" value="[90.0, 270.0]"/>
<arg name="distance_range" value="[0.1, 7.5]"/>
<arg name="vertical_bins" value ="64" />
<arg name="horizontal_ring_id" value="40" />
Expand Down
3 changes: 2 additions & 1 deletion aip_x2_launch/launch/pandar_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def create_parameter_dict(*args):
],
parameters=[
{
"angle_range": LaunchConfiguration("angle_range"),
"angle_range": LaunchConfiguration("blockage_diag_angle_range"),
"horizontal_ring_id": LaunchConfiguration("horizontal_ring_id"),
"vertical_bins": LaunchConfiguration("vertical_bins"),
"model": LaunchConfiguration("model"),
Expand Down Expand Up @@ -312,6 +312,7 @@ def add_launch_arg(name: str, default_value=None):
add_launch_arg("device_ip", "192.168.1.201")
add_launch_arg("scan_phase", "0.0")
add_launch_arg("angle_range", "[270.0, 90.0]")
add_launch_arg("blockage_diag_angle_range", "[270.0, 90.0]")
add_launch_arg("distance_range", "[0.1, 200.0]")
add_launch_arg("return_mode", "Dual")
add_launch_arg("base_frame", "base_link")
Expand Down

0 comments on commit b0909eb

Please sign in to comment.