GithubHelp home page GithubHelp logo

contingencyplanning's Introduction

Contingency Speed Planning

简单实现。

1. Control Model

  • 状态变量:$x = [s, v, a]^T$;
  • 控制变量:$u = [j]$;
  • 运动学模型:$\dot{x} = A x + B u$;

$$ A = \left[\begin{matrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \\ \end{matrix}\right] , B = \left[\begin{matrix} 0 \\ 0 \\ 1 \\ \end{matrix}\right] $$

  • 优化函数:$J = J_{share} + P_n J_{n} + P_c J_{c}$ $$ J_{share} = J_{n} = J_{c} = w_{j} j^2 + w_{s} (s-s_{ref})^2 + w_{v} (v-v_{ref})^2 $$ 将匀速行驶作为参考位置和速度。

  • 约束条件:

    • 起点约束;
    • 运动学约束;
    • 碰撞约束;

2. Config

config.m中为参数设置。

  • 优化问题权重;
  • 状态变量和控制变量限制;
  • 事件概率;
  • 规划时域设置;
  • 主车初始状态设置;
  • CutIn车辆设置;

3. Planner

contingency planning优化求解;

4. PlotResults

画图。

5. 运行

main.m

  • cut in概率为0:

  • cut in概率为0.1:

  • cut in概率为0.7:

contingencyplanning's People

Contributors

mpt0816 avatar

Stargazers

MChan avatar  avatar  avatar NEVERlander avatar  avatar

Watchers

 avatar

contingencyplanning's Issues

问题1

大佬, 有没有相关的代码

关于运行结果

想请教一下,在cut-in概率为0是,Contingency 的有减速倾向。但是我感觉既然不会cut-in 那为什么还会有减速倾向?

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.