Python for autonomous vehicles in Euro Truck Simulator 2

Adaptive Cruise Control

Adaptive (or Active/Traffic Aware) Cruise Control not only maintains your speed, but also reacts to vehicles around you through autonomous braking and acceleration.

This implementation for Euro Truck Simulator 2 uses computer vision from OpenCV and Tensorflow machine learning to recognise the traffic around you and make control inputs as needed.

Download links and instructions are in the video description on Youtube


Lane Detection

The next step towards a true autonomous vehicle is identifying where the lane lines are, and keeping the vehicle within them.

This lane detection demo uses OpenCV edge detection to identify the edges of the lane, and display them on screen.

Download links and instructions are in the video description on Youtube


Autosteer

Using a different lane detection methodology to detect whether the vehicle is closer to the left or right line, and apply steering inputs accordingly with Directkeys to keep the vehicle in lane.

This is something of a "failed" experiment, as it's not perfect or useable every day, but is interesting to watch all the same.

Download links and instructions are in the video description on Youtube