simulation.src.simulation_evaluation.src.state_machine.state_machines.lane module¶
LaneStateMachine keeps track of where the car drives.
See simulation.src.simulation_evaluation.src.state_machine.states.lane
for implementation details of the states used in this StateMachine.
Reference¶
-
class
LaneStateMachine(callback: Callable[], None])[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.state_machines.state_machine.StateMachineKeep track of which part of the road the car is on.
-
collision= <simulation.src.simulation_evaluation.src.state_machine.states.lane.FailureCollision object>¶ End state when driving into an obstacle
-
blocked_area= <simulation.src.simulation_evaluation.src.state_machine.states.lane.FailureBlockedArea object>¶ End state when driving into a blocked area
-
off_road= <simulation.src.simulation_evaluation.src.state_machine.states.lane.FailureOffRoad object>¶ End state when driving of the road
-
right= <simulation.src.simulation_evaluation.src.state_machine.states.lane.Right object>¶ The car is in the right lane.
-
left: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.lane.Left object>¶ The car is in the left lane.
-
parking_right: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.lane.ParkingRight object>¶ The car is parking on the right side.
-
parking_left: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.lane.ParkingLeft object>¶ The car is parking on the left side.
-