Giter Club home page Giter Club logo

point-cloud-recognition's Introduction

point-cloud-recognition

Training Classification

Important Files

Dependencies

  • You need an Ubuntu 16.04.2 with ROS full-desktop-version which includes RViz and Gazebo
  • You must clone the repository, go inside the directory and install the dependencies:
$ rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
$ catkin_make
  • Add the following to your .bashrc file:
export GAZEBO_MODEL_PATH=~/catkin_ws/src/sensor_stick/models
source ~/catkin_ws/devel/setup.bash
  • You also need SKLearn ans SciPy
pip install sklearn scipy

How to Use

Training a Model

  • First you must capture features.
  • Run this on one terminal. You should see an empty scene in Gazebo with only the sensor stick robot.
$ roslaunch sensor_stick training.launch
  • On another terminal run this:
$ rosrun sensor_stick capture_features.py
  • This script spawns each object in random orientations (default 20 orientations per object) and computes features based on the point clouds resulting from each of the random orientations. The features will now be captured and you can watch the objects being spawned in Gazebo. It should take 5-10 seconds for each random orientations (depending on your machine's resources) so with 7 objects total it takes awhile to complete. When it finishes running you should have a training_set.sav file.
  • You can inspect the script here where you will see that NUMBER_OF_SPAWNS = 20
  • The features captured are the normalized histogram of the colors of the three channels in HSV format as well as the normalized histogram of the normal vector at each point which capture the shape
  • You can inspect how the features being retrieved from the point cloud here.
  • https://github.com/mithi/point-cloud-recognition/blob/master/src/sensor_stick/src/sensor_stick/features.py
  • After this run the following:
$ rosrun sensor_stick train_svm.py

Object recognition

  • Run this command
$ roslaunch sensor_stick robot_spawn.launch
  • Then run the following command inside /src/sensor_stick/scripts/
python object_recognition.py

point-cloud-recognition's People

Contributors

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