Giter Site home page Giter Site logo

dongdonghy / global-localization-object-detection Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 11.0 5.53 MB

a global localization system with object detection in semantic map

CMake 13.02% Python 78.81% C++ 8.17%
global-localization object-detection nvidia-jetson-tx2

global-localization-object-detection's Introduction

Global Localization Using Object Detection with Semantic Map

Overview

Global localization is a key problem in autonomous robot. We use semantic map and object detection to do the global localization with MLE method.

Dependencies

  • Jetpack=3.3
  • TensorFlow=1.9.0
  • Opencv
  • Matplotlib
  • PIL
  • ROS Kinetic

Hardware

  • Jetson TX2
  • Lidar
  • USB camera
  • Autonomous robot
  • Odometry by encoder or IMU

Motivation

  • In ROS system, if we use move_base package, we need to input an 2D initial pose by hand:
  • Therefore, we want to calculate the initial pose automatically.

How to Run

Object Detection Model

  • train an object detection model using tensorflow
  • export the frozen model, and put it into frozen_model folder
  • put the whole package into a ROS workspace

Semantic Map

  • we build a semantic map with Gmapping and object detection.
  • the backgroud is the grid map, and the points in the map represent the object position.

ROS prepration

Before initial pose, you need to run the following node in ROS

  • map server to output a map
  • robot control: publish the cmd_vel and subscribe Odometry
  • Lidar like Hokuyo, output the scan data

Global Localization

  • Run python initial_pose.py in scripts folder.
  • subscribe scan, imu/data topic, and need a USB camera
  • publish cmd/vel to rotation, webcam_image, and the final initialpose

Other function

  • camera_save.py: simple script to save the camera image
  • visilize.py: an example script to test the frozen model with a video
  • send_goal.cpp: we also provide a function which can send the navigation goal through voice recognition. Here we use the baidu package: https://github.com/DinnerHowe/baidu_speech
  • center path: you need to alter the grid_path.cpp and input your own path in global planner package of navation stack.

global-localization-object-detection's People

Contributors

dongdonghy avatar

Stargazers

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

Watchers

 avatar  avatar  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.