Browse Source

add mpc说明.md.

yuchuli 1 year ago
parent
commit
5f917062fd
1 changed files with 21 additions and 0 deletions
  1. 21 0
      src/decition/decition_brain_sf_changan_shenlan/mpc说明.md

+ 21 - 0
src/decition/decition_brain_sf_changan_shenlan/mpc说明.md

@@ -0,0 +1,21 @@
+
+一  编译osqp
+git clone https://github.com/osqp/osqp.git --branch=v0.6.2
+cd osqp
+git submodule update --init --recursive
+mkdir build
+cd build
+cmake ..
+make -j8
+也可以从git上的第三方库下载osqp.zip进行编译。
+编译完成后将libosqp.so拷贝到bin目录下
+
+二  编译mpccontroller库
+编译decition下的mpccontroller工程,将生成的库拷贝到bin目录
+
+三 编译deciton_brain_sf_changan_shenlan模块
+在.pro里使用DEFINES += USEAUTOWAREMPC
+在ADS_decison.xml里加入
+<param name="UseMPC" value = "true" />
+
+