GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Unicamp-E-Racing/path_follower: Basic vehicle path following simulator with steering and acceleration control.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
style
style
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
constants.py
constants.py
 
 
controllers.py
controllers.py
 
 
plots.py
plots.py
 
 
runTrack.py
runTrack.py
 
 
systems.py
systems.py
 
 
trackGenerator.py
trackGenerator.py
 
 

Repository files navigation

Path Following Demonstration

Description

Basic vehicle path following simulator with steering and acceleration control. The goal of this project is to control the steering of a simple vehicle to follow a given path. Another goal of the project is to control the vehicle's speed, accelerating or braking based on the radius of curvature of the given path.

Software Organization

Systems

The file systems.py contains the simulator's system objects.

Kinematic Vehicle Body

Single-track kinematic vehicle body model (or bicycle model) object. Stores the vehicle's states (x,y and yaw positions) and inputs (steering angle and acceleration).

vehicle_model

Simulator

The simulator system object is responsible for solving the vehicle model's equations for a small timestep. Therefore, simulating the vehicle's state consists of iterating trough the simulator's simulation step function. Also keeps track of timestamps and total runtime.

Controllers

The file controllers.py contains the simulator's controller functions. These controllers were designed by our team with the help of professor José C. Geromel. Both controllers receive the current vehicle state and also the position and speed targets and output the controlled variable (steering angle and acceleration).

runTrack

The file runTrack.py simulates the steering and acceleration control of the vehicle through a complete, randomly generated, race track. The first goal of this script is to control the vehicle's steering angle, so that it passes near every middle point of the race track. The second goal is to maximize the vehicle's speed based on the radius of the track. At every track point, the radius of curvature is calculated using this formula:

radius_formula

Then, we use the centripetal acceleration formula and the calculated radius to calculate the speed that reaches a predefined maximum lateral acceleration. Therefore, the speed of the vehicle will be increased or decreased based on the radius of the path.

Results

path inputs

Other Files

trackGenerator

Generates a random race track defined by yellow and blue cones, just like in the FSAE DV Trackdrive event!

plots

Contains the simulator's plotting functions

constants

Contains the simulator's constant parameter values

About

Basic vehicle path following simulator with steering and acceleration control.

Resources

Readme
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.