carla icon indicating copy to clipboard operation
carla copied to clipboard

About detection of collision events

Open Nancy22-NJ opened this issue 1 year ago • 2 comments

Hello, I'm wandering how to stop the current simulation when collision events are caught by the collision detector sensor, and then run the next simulation? Thank you for your reply!!!

Nancy22-NJ avatar Jul 03 '24 12:07 Nancy22-NJ

Right now we do not have pause function in the simulator but you have an example of how to do a pause in the manual control. Every sensor has listen method to act as callback

Blyron avatar Jul 04 '24 07:07 Blyron

Hi, I guess you mean that the collision sensor keep getting data, and the Python API is keeping open the program? Or do you mean something else?

You can stop listening to the sensor and destroy it.

sensor.stop()
sensor.destroy()

PatrickPromitzer avatar Jul 26 '24 11:07 PatrickPromitzer