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

Method _on_invasion

PythonAPI/examples/manual_control.py:733–739  ·  view source on GitHub ↗
(weak_self, event)

Source from the content-addressed store, hash-verified

731
732 @staticmethod
733 def _on_invasion(weak_self, event):
734 self = weak_self()
735 if not self:
736 return
737 lane_types = set(x.type for x in event.crossed_lane_markings)
738 text = ['%r' % str(x).split()[-1] for x in lane_types]
739 self.hud.notification('Crossed line %s' % ' and '.join(text))
740
741
742# ==============================================================================

Callers 1

__init__Method · 0.45

Calls 1

notificationMethod · 0.45

Tested by

no test coverage detected