Skip to content

ir_intensity publishes empty readings in Ignition Gazebo on maze world #239

@luiznery

Description

@luiznery

Describe the bug
/ir_intensity messages always contain an empty readings array. Just base_link frame is published.
The strange thing that I noticed is that it just happens in the maze world. In the depot, it works normally.

To Reproduce
Ubuntu 24.04
Ros2 Jazzy

  1. Run simulation: ros2 launch irobot_create_gz_bringup sim.launch.py world:=maze
  2. Spawn robot: ros2 launch irobot_create_gz_bringup create3_spawn.launch.py spawn_dock:=false use_rviz:=false
  3. ros2 topic echo /ir_intensity

Expected behavior
Get readings from the 7 sensors

Screenshots
Location of the robot when the echo was executed.

Image

Additional context
I'm running the simulation and then spawning the robot to avoid a bug about the diffdrive_controller.

When ros2 topic echo /hazard_detection is executed it prints, even thought there is a wall in front of the robot:
header:
stamp:
sec: 918
nanosec: 968000000
frame_id: base_link
detections: []

When I echo other hidden topics, such as _internal/ir_intensity_front_center_right/scan or _internal/ir_intensity_front_center_right I don't get nothing.

This problem is very similar to #209
This previous issue was closed but the problem was not solved and no solution was found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions