Four ray sensors from different sources in a single robot

asked 2021-09-29 03:37:13 -0600

Hi, I'm trying to implement multiple sensors from different sources in a single robot as in the picture below:

The sensors that I want to implement are marked in pink

The sensors that I want to implement are marked in pink

For several days, I have been struggling with all possible libraries offering "ray sensors". After implementing one, and copying it to "second place", they both overwrite the same topics. For example here: Laser2 has an override for both / sensors / laser1 and / sensors / laser2. It's shown below, launch file:

rostopic list

rostopic echo laser1

And of course part of my code:

launch file

robot description, XACRO file:

image description

image description

And my_robot.gazebo file, most important (with plugin):

laser 1

laser 2

Thank You! :)

edit retag flag offensive close merge delete