Giter Site home page Giter Site logo

lxjlu / nav_simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cf-zhang/nav_simulator

0.0 0.0 0.0 43.72 MB

一个基于Rviz的轻量级ROS导航仿真器

License: MIT License

C++ 59.65% Python 23.83% Makefile 1.59% CMake 12.76% Batchfile 2.00% 1C Enterprise 0.17%

nav_simulator's Introduction

一起动手写ROS仿真器

Simulator

本仓库是《一起动手写ROS仿真器》系列教程的代码和示例集合。这个教程旨在帮助你从零开始,逐步添加功能,最终完整实现一个用于ROS平台机器人导航规划控制功能的ROS仿真器 备注: 虽然开发环境使用的galactic,但是整个工程在ROS2的各版本上是可以直接使用的,不必区分版本

简介

ROS(Robot Operating System)是一个广泛使用的机器人开发平台,提供了一系列工具和库,用于构建机器人应用程序。在本教程中,我们将使用ROS来开发一个仿真器,模拟机器人在虚拟环境中的运动和感知。

教程目录

bilibili

在线文档

由于上面文档平台有一些公式的显示问题我没有搞定,如果对公式感兴趣,可以看下面的链接。内容都是一样的。 知乎

安装依赖

在开始教程之前,请确保教程所使用的环境:

操作系统: Ubuntu 20.04

ROS:     ros2

使用方法

路径规划器仿真

# 编译
git clone https://github.com/cf-zhang/nav_simulator
cd nav_simulator
colcon build
source install/setup.bash
# 启动仿真器
ros2 launch simulator planner_simulator.launch.py
# 另一个终端启动仿真器
ros2 launch planner planner.launch.py

planner

导航全流程仿真

启动仿真器:

git clone [email protected]:cf-zhang/nav_simulator.git
cd nav_simulator
source /opt/ros/galactic/setup.bash
colcon build
source install/setup.bash
ros2 launch simulator simulator.launch.py

再打开一个终端,启动导航的功能节点:

ros2 launch nav2_bringup navigation_launch.py

然后使用2D Goal Pose控件设置目标点,可以看到机器人的导航移动效果,具体如下图所示:

navigation

贡献

一个人走的快,众人走的远

欢迎对本教程提出问题、反馈和改进建议。如果您发现任何错误或问题,请随时提交Issue或Pull Request。

许可证

本教程的代码遵循MIT许可证,详情请参见 LICENSE 文件。


本教程旨在帮助大家学习ROS仿真器的构建,如果有任何侵权行为,请及时联系作者删除。谢谢!

nav_simulator's People

Contributors

cf-zhang 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.