carla icon indicating copy to clipboard operation
carla copied to clipboard

How to save multiple sensor's data to disk simultaneously? (I need to save Raw, depth and semantic segmentation images of every frame in autopilot mode, to disk)

Open bsandy1978 opened this issue 11 months ago • 2 comments

CARLA version: 0.9.15 Platform/OS: Windows

I need to save Raw, depth and semantic segmentation images of every frame, in autopilot mode, to disk. I need a python script that does the same. I can save Raw RGB images to disk, but I need the images of other sensors too, to save simultaneously in separate folders.

bsandy1978 avatar Mar 07 '24 19:03 bsandy1978

For your case, reading the examples would help. https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/sensor_synchronization.py

This example is using

blueprint_library = world.get_blueprint_library()
cam_bp = blueprint_library.find('sensor.camera.rgb')
lidar_bp = blueprint_library.find('sensor.lidar.ray_cast')
radar_bp = blueprint_library.find('sensor.other.radar')

How you want to save your sensor data after you get them, is your choice.

PatrickPromitzer avatar Mar 26 '24 08:03 PatrickPromitzer

Hi @bsandy1978, have you been able to solve your problem with what PatrickPromitzer has commented?

JoseM98 avatar Apr 26 '24 12:04 JoseM98

As there has been no response I close the issue. Feel free to reopen it.

JoseM98 avatar May 03 '24 10:05 JoseM98