File Exchange

image thumbnail

Path Following Using MATLAB and Simulink

version (156 KB) by Carlos Santacruz-Rosero
Simulink model of a self-parking vehicle


Updated 05 Dec 2017

View License

This entry contains the Simulink model for the "Path Planning and Navigation for Autonomous Robots" video. The demonstration walks through how to simulate a self-parking car with just three components: a path, a vehicle model, and a path following algorithm.  The vehicle model is implemented based on the kinematic equations of the bicycle model and the path following algorithm uses the built-in Pure Pursuit block from Robotics System Toolbox.

Comments and Ratings (11)

bob chan

bob chan

Hello, which book do you refer to?

Hello Cao. Thanks for your message. You can find a simple model in the Simulink Model that you can download with this submission. This uses basic Simulink blocks to implement the equations of motion. For more complex models of the vehicle dynamics please check the Vehicle Dynamics Blockset:

cao kaifa

hello, Carlos Santacruz-Rosero, Thank you for the good work, I want to ask where I find the kinematic equations of the bicycle model?

Is there anyway to get this to work with 2017a release? Thank you.

Thanks for the info, Amin. Issue resolved now.

veni krishna

amin ta

amin ta

need some file and definition to run
get 7 error when run Simulink!

Error evaluating parameter 'LookaheadDistance' in 'PathFollowingFV/Pure Pursuit'
Caused by:
Undefined variable "PP" or class "PP.LookaheadDist".


Added MAT files required to run the demo

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor