Skip to content

Add Support for Default Namespace Assignment in SDF Labels for Multi-Robot Simulations #50

@LihanChen2004

Description

@LihanChen2004

Feature Request

Currently, the plugin requires specifying both the SDF labels <topic> and <frame>. If these labels are not provided, the plugin logs the following error messages:

[Err] [Lidar.cc:51] No 'topic' parameter specified for the RGL lidar. Disabling plugin.
[Err] [Lidar.cc:56] No 'frame' parameter specified for the RGL lidar. Disabling plugin.

In Gazebo Ignition, these labels correspond to <ignition_frame_id> and <topic>. If they are omitted from the SDF file, Gazebo automatically assigns them as /<world_name>/model/<link_1>/<link_2>/.... For instance, using the gpu_lidar plugin without specifying these labels results in:

frame_id: /world/default/model/robot/link/right_mid360/sensor/right_mid360_lidar
topic: /world/default/model/robot/link/right_mid360/sensor/right_mid360_lidar/scan/points

This automatic namespace assignment is crucial for multi-robot simulations, as it simplifies the configuration process.

I am willing to address this issue. Please let me know your thoughts.

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