GithubHelp home page GithubHelp logo

xuankuzcr / cartographer_icra Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 14.0 28.62 MB

[DJI RoboMaster AI Challenge] Cartographer Localization Simulation

Home Page: https://www.zhihu.com/question/64062385/answer/1241736983

CMake 18.43% C 5.76% C++ 47.85% Shell 0.86% Python 24.25% Lua 2.85%

cartographer_icra's Introduction

DJI RoboMaster AI Challenge (Cartographer Simulation)

使用步骤

  1. 配置好carographer | cartographer_ros | cartographer_turtlebot | ceres-solve.

  2. 安装依赖项

sudo apt-get install ros-kinetic-joy ros-kinetic-teleop-twist-joy ros-kinetic-teleop-twist-keyboard ros-kinetic-laser-proc ros-kinetic-rgbd-launch ros-kinetic-depthimage-to-laserscan ros-kinetic-rosserial-arduino ros-kinetic-rosserial-python ros-kinetic-rosserial-server ros-kinetic-rosserial-client ros-kinetic-rosserial-msgs ros-kinetic-amcl ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-compressed-image-transport ros-kinetic-rqt-image-view ros-kinetic-gmapping ros-kinetic-navigation ros-kinetic-interactive-markers
  1. 获取源码放到工作空间下
mkdir -p ~/catkin_ws/src/ && cd ~/catkin_ws/src/
sudo cp ~/Cartographer_ICAR/{turtlebot3,turtlebot3_msgs,turtlebot3_simulations,waterplus_map_tools} ~/catkin_ws/src/
  1. 编译
cd ~/catkin_ws
catkin_make
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc
  1. 使用说明
  • 为了方便使用我把launch文件合成了shell脚本放在仓库目录的shell_carto文件夹内
  • 另附Cartographer源码分析

操作方法

1. cartographer建图

打开仿真环境

cd shell_carto/
./gazebo_empty_start.sh

gazebo pic cartographer建图

./mapping_cartographer.sh

gazebo pic 保存地图

mkdir ~/map
./savemap.sh

2. 利用 cartographer纯定位+movebase 进行定点导航

./gazebo_empty_start.sh
./carto_localization.sh

gazebo pic

3. 基于2实现多点连续导航

利用Add Waypoint设置多个目标点

sudo cp waypoints.xml ~/waypoints.xml
./gazebo_empty_start.sh
./tools_carto_localization.sh

gazebo pic 保存标注目标点信息到~/waypoints.xml,并依次发送move_base_msgs::MoveBaseGoal goal信息

./map_tools.sh

gazebo pic

cartographer_icra's People

Contributors

xuankuzcr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cartographer_icra's Issues

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.