‹ MAE 148 — Introduction to Autonomous Vehicles · Maurício de Oliveira

2022SpringTeam7

Project Team Members

ROS2 OpenCV Autonomous Laps

Indoor

{{#widget:YouTube|id=1dfX0tHRQzY}}

Outdoor

{{#widget:YouTube|id=mTXjY8BoNHQ}}

Donkey Autonomous Laps

{{#widget:YouTube|id=rOeyW1l3EVI}}

Project Overview

This project develops an autonomous car that adds throttle when detecting red. The purpose of this project was to have two cars take turns leading the other car. The car in the back will have to detect that there is a car in front of it and try to overtake it. This process will keep repeating until stopped. Essentially, it will be something like the CES IAC head to head competition.This project has not been done before as the CES IAC head to head competition is rather new, so we will be the first to implement this sort of process. The system is implemented on our autonomously-driven car using a Jetson Nano and a camera.


Main Components

Physical Setup

Car 1

New.png Car1 07.jpg

Car 2

Car2 07.jpg Car2mount07.jpg

Schematic

Scem07.png

Implementation

Software and Hardware List

The following are needed to complete this project.

Source code

The source code of the project can be found here: https://gitlab.com/ece148/ECE148

Steps Overview

Results

In the end our team achieved to have two cars running, adding throttle when detecting red. As seen in the demonstrations, having equal throttle makes it harder for the cars to stay in separate lanes. This is due to the camera view, not having a wide enough range to detect the yellow lane detection when driving in a separate lane.

The detection of red was first done by HSV values and OpenCV. Later it was done by using machine learning.

Gantt chart

Gantt07.png

Demonstrations

Two cars with different throttle

{{#widget:YouTube|id=iBr_c7t-osA}}

Two cars with same throttle

{{#widget:YouTube|id=gIURYJyThPY}}

Red color detection with machine learning

{{#widget:YouTube|id=bxGRqCNJphM}}

Autonomously driving with SLAM algorithm

{{#widget:YouTube|id=uRmrPQI6iT4}}

Challenges

Challenge Solution
Use AprilTag to detect car Switched to detecting red instead
Calibrate cars to drive in separate lanes Shifted camera, or change of camera
Throttle not working while steering working Charge battery
Lightning errors when detecting red with HSV color detection Detecting red with machine learning
Lightning errors with lane detection SLAM algorithm (still in process)

Potential Improvement

Weekly Presentations

Final Project Proposal
Progress Week 7
Progress Week 8
Progress Week 9
Progress Week 10
Final Presentation

Reference

We would like to give special thanks to:


Recovered from the original course wiki (server backup, August 2024).