当前位置:网站首页>Slam mapping and autonomous navigation simulation based on turnlebot3
Slam mapping and autonomous navigation simulation based on turnlebot3
2022-07-03 11:38:00 【3D vision workshop】
Source: Gu Yueju
turtlebot3 brief introduction
TurtleBot3 It's a small , Low cost , Completely programmable , be based on ROS Mobile robot of . It is intended for education , Research , The purpose of product prototype and hobby Application .
TurtleBot3 Our goal is to significantly reduce the size and price of the platform , Without sacrificing performance , Function and quality . Because different options are provided , Such as chassis , Computers and sensors ,TurtleBot3 It can be customized in various ways .
install turtlebot3
sudo apt-get install ros-melodic-turtlebot3-*
// install gmapping Mapping algorithm dependency
apt-get install ros-melodic-gmapping
// install dwa Local path planning algorithm
apt-get install ros-melodic-dwa-local-planner
ROS Different versions should be modified melodic
Keyboard control trolley movement
First, in the gazebo Start in the simulation environment turtlebot3 Car
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch
Install keyboard control related dependencies
sudo apt-get install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-ros-control
sudo apt-get install ros-melodic-teleop-twist-keyboard
Run the keyboard control node , Control the trolley according to the output prompt
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
If the installation appears [Err] [REST.cc:205] Error in REST request The following configuration is required :
sudo gedit ~/.ignition/fuel/config.yaml
Put... In the file https://api.ignitionfuel.org It is amended as follows https://api.ignitionrobotics.org
If you start gazebo It has been unable to open , as a result of .gazebo Download models Incorrect library results in , The solution is to download all models directly to the user's root directory .gazebo/models/ Next
cd ~/.gazebo/
mkdir -p models
cd ~/.gazebo/models/
wget http://file.ncnynl.com/ros/gazebo_models.txt
wget -i gazebo_models.txt
ls model.tar.g* | xargs -n1 tar xzvf
SLAM Building maps
Turn off all the above commands , Restart the following command
1、 Start the simulation environment
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_gazebo turtlebot3_house.launch
2、 Turn on SLAM function , Selection of mapping algorithm gmapping
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_slam turtlebot3_slam.launch slam_methods:=gmapping
3、 Start keyboard control node , Control the trolley to rotate around the environment , Scan out a complete and closed map as much as possible
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
4、 Save the map
rosrun map_server map_saver -f ~/map
This is the map I swept out after running around the car
Autonomous Navigation
Realized renderings :
1、 First load the saved map
rosrun map_server map_server map.yaml
2、 Open the simulation environment , Use visualization tools rviz Show it
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_gazebo turtlebot3_house.launch
3、 Turn on the autonomous navigation function
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=/home/kaijun/map.yaml
Good configuration rviz, Use 2D Pose Estimate Set the starting point of the car , Reuse 2D Nav Goal Set the target location of the car , The car will plan the path , Automatically run to the target location , Realize autonomous navigation function .
This article is only for academic sharing , If there is any infringement , Please contact to delete .
3D Visual workshop boutique course official website :3dcver.com
1. Multi sensor data fusion technology for automatic driving field
2. For the field of automatic driving 3D Whole stack learning route of point cloud target detection !( Single mode + Multimodal / data + Code )
3. Thoroughly understand the visual three-dimensional reconstruction : Principle analysis 、 Code explanation 、 Optimization and improvement
4. China's first point cloud processing course for industrial practice
5. laser - Vision -IMU-GPS The fusion SLAM Algorithm sorting and code explanation
6. Thoroughly understand the vision - inertia SLAM: be based on VINS-Fusion The class officially started
7. Thoroughly understand based on LOAM Framework of the 3D laser SLAM: Source code analysis to algorithm optimization
8. Thorough analysis of indoor 、 Outdoor laser SLAM Key algorithm principle 、 Code and actual combat (cartographer+LOAM +LIO-SAM)
10. Monocular depth estimation method : Algorithm sorting and code implementation
11. Deployment of deep learning model in autopilot
12. Camera model and calibration ( Monocular + Binocular + fisheye )
13. blockbuster ! Four rotor aircraft : Algorithm and practice
14.ROS2 From entry to mastery : Theory and practice
15. The first one in China 3D Defect detection tutorial : theory 、 Source code and actual combat
blockbuster !3DCVer- Academic paper writing contribution Communication group Established
Scan the code to add a little assistant wechat , can Apply to join 3D Visual workshop - Academic paper writing and contribution WeChat ac group , The purpose is to communicate with each other 、 Top issue 、SCI、EI And so on .
meanwhile You can also apply to join our subdivided direction communication group , At present, there are mainly 3D Vision 、CV& Deep learning 、SLAM、 Three dimensional reconstruction 、 Point cloud post processing 、 Autopilot 、 Multi-sensor fusion 、CV introduction 、 Three dimensional measurement 、VR/AR、3D Face recognition 、 Medical imaging 、 defect detection 、 Pedestrian recognition 、 Target tracking 、 Visual products landing 、 The visual contest 、 License plate recognition 、 Hardware selection 、 Academic exchange 、 Job exchange 、ORB-SLAM Series source code exchange 、 Depth estimation Wait for wechat group .
Be sure to note : Research direction + School / company + nickname , for example :”3D Vision + Shanghai Jiaotong University + quietly “. Please note... According to the format , Can be quickly passed and invited into the group . Original contribution Please also contact .
▲ Long press and add wechat group or contribute
▲ The official account of long click attention
3D Vision goes from entry to mastery of knowledge : in the light of 3D In the field of vision Video Course cheng ( 3D reconstruction series 、 3D point cloud series 、 Structured light series 、 Hand eye calibration 、 Camera calibration 、 laser / Vision SLAM、 Automatically Driving, etc )、 Summary of knowledge points 、 Introduction advanced learning route 、 newest paper Share 、 Question answer Carry out deep cultivation in five aspects , There are also algorithm engineers from various large factories to provide technical guidance . meanwhile , The planet will be jointly released by well-known enterprises 3D Vision related algorithm development positions and project docking information , Create a set of technology and employment as one of the iron fans gathering area , near 4000 Planet members create better AI The world is making progress together , Knowledge planet portal :
Study 3D Visual core technology , Scan to see the introduction ,3 Unconditional refund within days
There are high quality tutorial materials in the circle 、 Answer questions and solve doubts 、 Help you solve problems efficiently
Feel useful , Please give me a compliment ~
边栏推荐
- 836. 合并集合(DAY 63)并查集
- [VTK] vtkPolydataToImageStencil 源码解读
- 如何成为一名高级数字 IC 设计工程师(1-5)Verilog 编码语法篇:操作数
- Kubernetes 三打探针及探针方式
- Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
- R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
- Some common terms
- Leetcode 46: full arrangement
- 2022年中南大学夏令营面试经验
- 如何成为一名高级数字 IC 设计工程师(1-3)Verilog 编码语法篇:Verilog 行为级、寄存器传输级、门级(抽象级别)
猜你喜欢
基于turtlebot3实现SLAM建图及自主导航仿真
Excel quick cross table copy and paste
(2) Base
Driver development based on I2C protocol
PHP server interacts with redis with a large number of close_ Wait analysis
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests
鸿蒙第四次培训
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
Excel表格转到Word中,表格不超边缘纸张范围
随机推荐
VPP三层网络互联配置
Driver development based on I2C protocol
How PHP solves the problem of high concurrency
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
Intel 13th generation core flagship exposure, single core 5.5ghz
[OBS] encapsulate the basic process of OBS acquisition
STL教程9-容器元素深拷贝和浅拷贝问题
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
DS90UB949
POI excel cell wrap
Touch and screen automatic rotation debugging
FL Studio 20 unlimited trial fruit arranger Download
Repo ~ common commands
进程与线程
R language uses data The table package performs data aggregation statistics, calculates window statistics, calculates the median of sliding groups, and merges the generated statistical data into the o
Execute kubectl on Tencent cloud container service node
如何成为一名高级数字 IC 设计工程师(1-3)Verilog 编码语法篇:Verilog 行为级、寄存器传输级、门级(抽象级别)
. \vmware-vdiskmanager. exe -k “c:\\xxxxx.vmdk”
Application of high-precision indoor positioning technology in safety management of smart factory
R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA