import math import os from simulation.utils.road.road import Road from simulation.utils.road.sections import Intersection, StraightRoad speed_limit = int(os.environ.get("SPEED_LIMIT", 30)) road = Road() road.append(StraightRoad(length=4)) road.append(Intersection(turn=Intersection.RIGHT, angle=math.radians(90))) s = StraightRoad(length=4) s.add_speed_limit(0, speed=speed_limit) road.append(s)
import os from simulation.utils.road.road import Road from simulation.utils.road.sections import StraightRoad speed_limit = int(os.environ.get("SPEED_LIMIT", 30)) road = Road() s = StraightRoad(length=8) s.add_speed_limit(4, speed_limit) road.append(s)