MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / _on_invasion

Method _on_invasion

PythonAPI/examples/automatic_control.py:438–444  ·  view source on GitHub ↗
(weak_self, event)

Source from the content-addressed store, hash-verified

436
437 @staticmethod
438 def _on_invasion(weak_self, event):
439 self = weak_self()
440 if not self:
441 return
442 lane_types = set(x.type for x in event.crossed_lane_markings)
443 text = ['%r' % str(x).split()[-1] for x in lane_types]
444 self.hud.notification('Crossed line %s' % ' and '.join(text))
445
446# ==============================================================================
447# -- GnssSensor --------------------------------------------------------

Callers 1

__init__Method · 0.45

Calls 1

notificationMethod · 0.45

Tested by

no test coverage detected