GithubHelp home page GithubHelp logo

my_rookiecar's Introduction

My_RookieCar

采用Gazebo里搭建的小车模型,对ROS下C++写的基于车辆动力学模型的纯横向LQR控制算法在五次多项式路径下进行验证

仿真步骤:

1、使用前请安装Gazebo关节控制相关依赖

sudo apt-get install -y ros-kinetic-gazebo-ros-control
sudo apt-get install -y ros-kinetic-ros-control ros-kinetic-ros-controllers
sudo apt-get install -y ros-kinetic-gazebo-ros-control

2、编译ROS工作空间:

在/src所在目录下,终端输入:

    catkin_make

3、启动Gazebo下的空白世界并加载小车模型

新建终端,输入以下命令:

    source /devel/setup.sh                 
    roslaunch car_model spawn_car.launch

4、启动rviz

rviz显示的配置文件为 myLQR.rviz ,请在Rviz里添加该配置文件

新建终端,输入以下命令:

    source /devel/setup.sh
    rivz      

5、启动LQR算法

新建终端,输入以下命令:

   source /devel/setup.sh
   rosrun road horizontalLQR

调整Q和R以及预瞄时间值,可改变不同速度下的跟踪效果以及车辆摆振效果 红色轨迹为生成的五次多项式轨迹,绿色轨迹为小车行驶轨迹 跟踪效果如图所示

0}DW%)A%((8B2P4MKY~WHM9

my_rookiecar's People

Contributors

sdjjj avatar

Watchers

 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.