Giter Site home page Giter Site logo

yangwoong / ros_basic_slam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minht57/ros_basic_slam

0.0 1.0 0.0 2.3 MB

BUILDING AN AUTOMATIC VEHICLE BASED ON STEREO CAMERA

Shell 0.07% C++ 86.47% Python 2.54% C 5.37% Objective-C 0.02% MATLAB 0.13% CMake 5.40%

ros_basic_slam's Introduction

BUILDING AN AUTOMATIC VEHICLE BASED ON STEREO CAMERA

Overview

This project focuses on using stereo camera to build a vehicle which can map the surrounding area and autonomosly navigate a to the pointed destination in the built map. The vehicle is a Turtlebot model and based on ROS (Robot Operating System). For a further purpose, the vehicle can be developed to go around a house doing diffrent tasks or explore unknown enviroment.

Algorithm

Algorithm

Dependencies

In order to run the project, the following dependencies are required:

  • Ubuntu 16.04 here
  • ROS Kinetic Kame here
  • Catkin tool here
  • ZED SDK (version 2.1) here
  • Cuda Toolkit (version 8.0) here
  • Firmware for Mobile base here
  • ROS packages:
    • zed_ros_wrapper
    • depthimage_to_laserscan
    • laser_scan_matcher
    • gmapping
    • map_server
    • move_base
    • amcl
    • dwa_local_planner

Install ROS package dependencies:

sudo apt install ros-kinetic-<dependency_name>

Build and run the robot

Setup workspace:

git clone https://github.com/minht57/ROS_Basic_SLAM.git
cp -rf ROS_Basic_SLAM/src/* ~/catkin_ws/src/
sudo chmod 777 ~/catkin_ws/src/zed-ros-wapper/cfg/Zed.cfg
sudo chmod 777 ~/catkin_ws/src/depthimage_to_laserscan/cfg/Depth.cfg
cd ~/catkin_ws
catkin_make

Mapping:

Run the mapping:

roslaunch depthimage_to_laserscan gmapping.launch

Use RF controller to move the robot around. The map will be automatically built.

To see the map, launch Rviz and create visualization by adding 'Map' to the 'Display' console:

rviz

Save map:

rosrun map_server map_saver -f ~/catkin_ws/test_map

Raw map:

Edit the map with GIMP for better map:

Navigation:

Run navigation:

roslaunch navigation slam_amcl.launch

Send velocity commands to move base via serial port:

sudo chmod 777 /dev/ttyUSB0
roslaunch serial serial.launch

Place a box in the area to check object avoidance algorithm.

Open Rviz:

rviz

Result:

Youtube:

ros_basic_slam's People

Contributors

tuannv-github avatar minht57 avatar nknguyenlx avatar

Watchers

James Cloos 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.