Replies: 1 comment 3 replies
-
Hello! I'm wondering if you have solved this problem? We are trying to collect data from a series of replay files. I find that the replay file itself record the event of collision, however there are no events for lane_invasion. I cannot get that data without a functioning callback. I have tried Carla 0.9.13 and Carla 0.9.14, both doesn't work. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I am currently trying to get existing sensors from a recorded .log file with the function world.get_actors(). However, it appears that the function only returns the landmarks (type = 'traffic.') and vehicles (type = 'vehicle.'), but not sensors (type = 'sensors.*'). Meanwhile, running show_recorder_file_info.py upon the .log file gives me proper records of creations of the sensors.
what I did in terms of coding is simply adding
world = client.get_world()
print(world.get_actors().filter('sensors.*'))
directly after the client.replay_file function call in the start_replaying.py file from the API example folder.
A similar problem has been raised here and claimed to be a bug, but the follow up comment says that the bug has been fixed. Yet I am still unable to retrieve sensors with world.get_actors() from recordings.
I am not sure if this matters, but the recording was generated with sync mode = True during the simulation, as I was visualizing multiple sensors (showing multiple camera and lidar views using cv2.imshow()) in the process. This thread says it should be fine as long as I am running the replay in the same map as I performed the simulation, which I did.
My ultimate goal is to reproduce the multi-sensor visualization from recording .log files, which requires the extraction of spawned sensors, to the data of which I can listen(), callback, process, and visualize.
here's the partial code from my modified start_replaying.py. the get_actors() action is at the very bottom.
Plzzz let me know if anyone has any idea how to properly extract sensor data from recording files. Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions