Code Monkey home page Code Monkey logo

mpc_ipopt's Introduction

mpc_ipopt

Uses Model Predictive Control for path planning of a diffrential drive vehicle. Uses IPOPT

Moved to project-TARIV/mpc_ipopt . Based on project-TARIV/mpc_lib

Dependencties

  • catkin OPTIONAL
    Project is made to be compiled with catkin for the ROS framework, but does work with just cmake.

  • cmake: Build System

  • Install cppad from your package manager
    For Ubuntu:

sudo apt-get install cppad
  • Installing Ipopt Currently installs to /usr/local. Editing the script can change that.
    For Ubuntu:
sudo apt-get install gfortran
sudo apt-get install unzip
wget https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.7.zip && unzip Ipopt-3.12.7.zip && rm Ipopt-3.12.7.zip
sudo bash install_ipopt.sh ./Ipopt-3.12.7/

Working

We solve an optimisation problem for acceleration in each motor.

  • A simple kinematic model has been selected
    If v_r and v_l are velocities in either frame, and a_r and a_l are the respective constraints.
    xi = xi-1 + (v_r + v_l) * dt * cos(thetai-1) / 2 yi = yi-1 + (v_r + v_l) * dt * sin(thetai-1) / 2 thetai = thetai-1 + (v_r - v_l) * dt / distance_between_wheels

  • Constraints The path to follow has been defined as a polynomial f(x).

The objective function is of the form \sum{w_i*(a_i)^2}

The different terms (a_i) v_r + v_l - 2 * vref
v_r - v_l
a_r + a_l
a_r - a_l
f(x) - y

It is easy to expand to this list.

References

Based on project-TARIV/mpc_lib
Am a member of that organisation.

mpc_ipopt's People

Contributors

surajrathi avatar

Stargazers

 avatar Jiaxin Zhang avatar

Watchers

James Cloos avatar  avatar qyshen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.