carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
510 stars 408 forks source link

Sensor topics not registering #679

Open MarioAlmelaUMH opened 1 year ago

MarioAlmelaUMH commented 1 year ago

Hello, I'm currently working with Carla and carla-ros-bridge, and I need to trace sensor data from the scene into a .csv file. I have already made a script that captures that data directly using Carla's API, but it is in my interest to capture the same data using carla-ros-bridge's topics and the rosbag module.

I have a custom config file where I can modify the sensor kit of the ego vehicle, and I read that config file in order to spawn all the sensors using Carla's API. Right now, I'm trying a sensor kit with 4 cameras, 3 lidars, 1 GNSS and 1 IMU. When I run the carla-ros-bridge, I see the bridge captures all the sensors I spawned:

ros-bridge

However, the ros-bridge is not creating proper topics to monitor these sensors, as seen in:

ros-bridge-topics

Is there a way I can automatically generate topics with format /carla///(image, pointcloud, etc.) for each sensor individually?

I've seen that using the carla_ros_bridge_with_example_ego_vehicle.launch.py, the carla-ros-bridge itself launches an ego vehicle with a lot more topics, as seen in:

topics-ego

Is there a way that I can get this amount of sensor topics but using my own custom ego_vehicle spawn script?

Thank you in advance.

MarioAlmelaUMH commented 1 year ago

Anyone has any insight on this?

Thank you in advance.

celik02 commented 3 weeks ago

I am having exactly the same problem. Does anyone have any suggestion? Thank you.