Skip to content

Add 3D Lidar to iris for usage with Bonxai mapping example  #63

Description

@Ryanf55

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"
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions