Skip to content

Carla ROS2 Native - multiple agents with different id than hero #9555

@MartinGregor

Description

@MartinGregor

Setup
Describe the setup you are using to run CARLA along with its version:

  • CARLA version: 0.9.16
  • Platform: ubuntu 22.04
  • Python version: python 3.10.12

Describe the bug
When the default id "hero" in the stack.json config file is changed to another value, when the ros2 agent is created with ros2_native.py the topic id is blank i.e. carla//sensor instead of carla/hero1/sensor. This makes it impossible to read or post topics for that agent.

Expected behavior
ros2 topic id should be the same as id in the .json file.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

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