pNeuma_simulator.gang.neighborhood module

pNeuma_simulator.gang.neighborhood.neighborhood(ego: Particle, candidates: list[Particle]) list[Particle][source]

Constructs a neighborhood with periodic boundaries.

Parameters:
  • ego (Particle) – ego vehicle.

  • candidates (list) – candidate vehicles.

Returns:

neighboring vehicles.

Return type:

list