Coder Social home page Coder Social logo

dwa-planner's Introduction

DWA-planner

Simplest dwa-planner. a demo in ros. Developed from https://github.com/NKU-MobFly-Robotics/dwa_planner 该仓库代码已经在安装Ubuntu 18.04/ROS Melodic的电脑上测试通过。

1. 安装依赖

sudo apt install ros-melodic-navigation

我们假设您已经创建了名为catkin_ws的工作空间并完成了初始化,将该仓库克隆到本地

$ cd ~/catkin_ws/src/
$ git clone https://github.com/Chris-Arvin/DWA-planner.git

完成DWAPlanner类之后,编译程序

$ cd ~/catkin_ws/
$ catkin_make -DCMAKE_BUILD_TYPE=Release

2. 仿真模型配置

本次作业采用Gazebo来进行仿真测试,刚装好ROS的机器,第一次运行Gazebo的时候,Gazebo会下载模型,导致打开卡死。为解决该问题,请提前先从下面网址下载好模型文件:

https://github.com/osrf/gazebo_models

解压后将整个文件夹命名为models,然后放在.gazebo/目录下,这样再重新打开Gazebo就不会卡在打开界面了。小tips,可以用ctrl+H命令显示隐藏文件

另外,我们采用Pioneer 3-DX作为机器人仿真模型,请按照下面网址的说明安装p3dx仿真模型 https://github.com/NKU-MobFly-Robotics/p3dx

3. 运行仿真

打开新的终端,source一下工作路径,并运行launch文件

$ source ~/catkin_ws/devel/setup.bash
$ roslaunch dwa_planner move_base.launch

终端会有如下图所示的警告和错误提示,这是正常的,可以忽略

在弹出的RViz可视化界面里,点击工具栏的2D Nav Goal并在地图中设置终点,即可运行导航程序

dwa-planner's People

Contributors

chris-arvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

geasszzy

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.