Code Monkey home page Code Monkey logo

mpc_local_planner's Introduction

mpc_local_planner

This package is a Model Predictive Control based Local Planner for ROS Melodic. It is a plugin to base_local_planner of the 2D ROS Navigation stack. It wraps the library surajRathi/mpc_lib.

Forked from project-TARIV/mpc_local_planner to add documentation.

Dependencies:

The package should be built within a catkin workspace. Dependencies are defined in package.xml.

Working

The package has two steps of note.

  1. Converting ROS global path and costmap structures to polynomials in the local frame suitable for MPC.
  2. Invoking the mpc_lib MPC formulation.

Configuration

  • frequency: Frequency at which points are sampled in the vehicles predicted trajectory, int
  • reference/velocity : The target velocity for the vehicle, float
  • limits/vel/low : Hard limit on velocity, float
  • limits/vel/high : Hard limit on velocity, float
  • limits/acc/low : Hard limit on acceleration, float
  • limits/acc/high : Hard limit on acceleration, float
  • weights/cte : Cross track error weight, float
  • weights/etheta : Yaw error weight, float
  • weights/vel : Linear velocity error weight, float
  • weights/omega : Angular velocity error weight, float
  • weights/acc : Acceleration minimizing weight, float
  • weights/obs : Obstacle distance weight, float

Converting the Costmap to a set of Polynomials:

Modified (bending) recursive shadow casting to get useful obstacle boundaries in the correct order.

38 outline points.
'@' is the robot.
'.' is empty space.
'=' is obstacle in the map.
'#' is an outline point.
. . . . . . . . . . = = = = = = = = = .
. . . . . . . . . V = = = = = = = = = .
. . . . . . . . . U = = = = = = = = = .
. . . . . . . . . T = = = = = = = = = .
. . . . . . . . . . S R Q = = = = = = .
. . . . . . . . . . . . P O N = = = . .
. . . . . . . . . . . . . . M L = . . .
. . . . . . . . . . . . . . . K J . . .
. . . . . . . . . . . . . . . . . . . .
. . . W X . . . . . . . . . . . . . . .
. . = = Y Z . . . . @ . . . . I = = . .
. . = = = [ . . . . . . . . . H = = = .
. . = = = \ . . . . . . . . F G = = . .
. . = = = ] . . . . . . . . E = = = . .
. . . = ^ . . . . . . . . . . D = . . .
. . . . . . . ` a . . . . . . . . . . .
. . . . . . _ = b . . . . . . . . . . .
. . . . . . = = c . f A B . . . . . . .
. . . . . . . . . . e = C . . . . . . .
. . . . . . . . . . d = = . . . . . . .

An example of the path and obstacle boundaries represented as polynomials.

Path and obstacle poly example

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.