EventDetector

EventDetectors are executed at the beginning of each timestep. A detector uses its access to the world and the framework to detect specific events. After detection, the event is usually forwarded to the EventNetwork.

There are multiple EventDetectors available, all of them sharing a common interface.

Note

Each instance of an EventDetector can have its own cycle time.

CollisionDetector

The CollisionDetector checks whether a collision has occurred. Moving and stationary objects are taken into account. Objects are considered as collided, if their two-dimensional bounding boxes intersect.

Note

The calculation of the bounding box itself considers a potential inclination by the roll angle of an object (projection onto the xy-plane).

In case of a collision, a CollisionEvent containing the participating object Ids is created. This type of event is picked up by the CollisionManipulator, which updates the state of the collided objects accordingly.