Background
As explained in this Bonxai demo, the ardupilot_gz iris_lidar.launch.py assumes a 2D lidar and it must be modified. https://github.com/tejalbarnwal/3D-planning-with-bonxai
We'd like to add 3D lidar support that works out of the box without having to modify code here.
Approaches considered
- rename the iris launch file to
iris_lidar.launch.py to iris_2d_lidar.launch.py and duplicate the code for 3D lidar
- Add a launch argument for 2d/3d in the launch file, rename
iris_with_lidar to iris_with_2d_lidar and duplicate to iris_with_3d_lidar
- Remove the lidar from
iris_with_lidar and call it iris_ardupilot, and then add two new models iris_with_2d_lidar and iris_with_3d_lidar that only add the lidar link and the lidar sensor, then have the iris_with_lidar.launch.py pick which model based on an argument
How to select 2d/3d lidar in launch file?
DeclareLaunchArgument(
"lidar_dimensions", default_value="2", description="Whether to use a 2D or 3D lidar"
),
Background
As explained in this Bonxai demo, the ardupilot_gz
iris_lidar.launch.pyassumes a 2D lidar and it must be modified. https://github.com/tejalbarnwal/3D-planning-with-bonxaiWe'd like to add 3D lidar support that works out of the box without having to modify code here.
Approaches considered
iris_lidar.launch.pytoiris_2d_lidar.launch.pyand duplicate the code for 3D lidariris_with_lidartoiris_with_2d_lidarand duplicate toiris_with_3d_lidariris_with_lidarand call itiris_ardupilot, and then add two new modelsiris_with_2d_lidarandiris_with_3d_lidarthat only add the lidar link and the lidar sensor, then have theiris_with_lidar.launch.pypick which model based on an argumentHow to select 2d/3d lidar in launch file?