riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
203 stars 129 forks source link

Intersection and Longitudinal Collision Detection #255

Closed ansb5 closed 1 year ago

ansb5 commented 2 years ago

Hello @riebl.

I am trying to avoid collision both Intersection and Longitudinal using CAM messages. Is there any method in artery that detects there is going to be a collision?

riebl commented 2 years ago

No, there are no explicit collision detection algorithms in Artery. However, Christina implemented a time-to-collision trigger for Artery's storyboard: https://github.com/riebl/artery/blob/master/src/artery/storyboard/TtcCondition.h This triggering condition fires if two vehicles possibly crash within a specified time window, assuming constant movement.