Skip to content

Commit

Permalink
feat(x1): update livox min range to 1.0m (#107)
Browse files Browse the repository at this point in the history
* feat(x1): copy new_livox_horizon from common_sensor_launch

Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>

* feat(x1): remove dependency on common_sensor_launch

Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>

* feat(x1/livox): parameterize min_range to accommodate multiple hw variations

Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>

* feat(x1/livox): update livox min range to 1.0m

Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>

---------

Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>
  • Loading branch information
yn-mrse authored Feb 21, 2023
1 parent 5edd581 commit d5deb74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions aip_x1_launch/launch/lidar.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<arg name="use_pointcloud_container" default="false" description="launch pointcloud container"/>
<arg name="pointcloud_container_name" default="pointcloud_container"/>

<!-- x1 additional setting -->
<arg name="livox_min_range" default="1.0" />

<group>
<push-ros-namespace namespace="lidar"/>

Expand All @@ -28,20 +31,23 @@
<include file="$(find-pkg-share aip_x1_launch)/launch/new_livox_horizon.launch.py">
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="lidar_config_file" value="$(find-pkg-share individual_params)/config/default/new_driver_livox_front_right_config.yaml" />
<arg name="min_range" value="$(var livox_min_range)" />
</include>
</group>
<group>
<push-ros-namespace namespace="front_center"/>
<include file="$(find-pkg-share aip_x1_launch)/launch/new_livox_horizon.launch.py">
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="lidar_config_file" value="$(find-pkg-share individual_params)/config/default/new_driver_livox_front_center_config.yaml" />
<arg name="min_range" value="$(var livox_min_range)" />
</include>
</group>
<group>
<push-ros-namespace namespace="front_left"/>
<include file="$(find-pkg-share aip_x1_launch)/launch/new_livox_horizon.launch.py">
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="lidar_config_file" value="$(find-pkg-share individual_params)/config/default/new_driver_livox_front_left_config.yaml" />
<arg name="min_range" value="$(var livox_min_range)" />
</include>
</group>
</group>
Expand Down
5 changes: 4 additions & 1 deletion aip_x1_launch/launch/new_livox_horizon.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_crop_box_min_range_component(context, livox_frame_id):
"input_frame": livox_frame_id,
"output_frame": LaunchConfiguration("base_frame"),
"min_x": 0.0,
"max_x": 1.5,
"max_x": LaunchConfiguration("min_range"),
"min_y": -2.0,
"max_y": 2.0,
"min_z": -2.0,
Expand Down Expand Up @@ -121,4 +121,7 @@ def add_launch_arg(name: str, default_value=None):
add_launch_arg("use_tag_filter", "true")
add_launch_arg("lidar_config_file")

# x1 additional setting
add_launch_arg("min_range", "1.5")

return launch.LaunchDescription(launch_arguments + [OpaqueFunction(function=launch_setup)])

0 comments on commit d5deb74

Please sign in to comment.