Coder Social home page Coder Social logo

hans-ob1 / neural_cam_ros Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 7.0 8.71 MB

This package is essentially a ros-wrapper of neural_cam. More features would be added in the future, geared towards mobile robot platform. Eventual goal of this package is to solve the problem of given an image, where is the obstacle with respect to the robot in a 3D space.

License: MIT License

CMake 1.80% Makefile 0.07% Python 26.60% C++ 44.89% Common Lisp 26.64%
ros cpp c robotics self-driving-car opencv3 obstacle-detection cudnn nvidia

neural_cam_ros's Introduction

Travis Codecov

neural_cam_ros

neural_cam_ros is essentially an ros wrapper of neural-cam. The backend deep learning framework used is darknet developed by Joseph Redmon. You can visit his site here. This module is designed to quickly test the state-of-the-art obstacle detection/tracking for mobile robot platform. The package is built using rosbuild, I havent test it in catkin but can be easily integrated. No training option is available in this module.

Update
  • basic ros-wrapper for obstacle detection is complete
  • includes link for pre-trained weights/configuration files
  • added cv_bridge for ros image transport
  • tested on drive px 2 (detection does not work well with cuDNN! i think you would need to train directly on their platform)
  • tested on nvidia TX1 (low fps, wait for TX2!)
Additional Information
  • requires pre-trained weights, cfg files to run
  • open another terminal and type "rostopic echo /obstacle" to see detected objects been published
  • edit/launch multiple cameras using multicam.launch file
  • to get a decent framerate, use a good graphic card. preferably to be GTX 950 above and run the network with cuDNN
  • i had pre-trained a set of weights to detect road obstacles for my autonomous vehicle project. There are only three classes for the weights i trained (person, bike and vehicle). you can download and try it our yourself from this link. Do take note that is set of weights is trained with cuDNN v5, be sure to download that from nvidia website. Otherwise, there will be no detections!
Recommend System Requirement (Tested and Proven)
  • cmake 3.2 above
  • ROS Kinetic (due to its preloaded opencv 3, saved alot of hassle)
  • ubuntu 16.04
  • cuda 8.0 (for real time performance)
  • cuDNN v5
  • latest nvidia graphic driver 367.48
Minimum System Requirement
  • cmake 2.8 or above
  • ROS indigo or above
  • runs on opencv 3.1
  • ubuntu 14.04 above
  • cuda 7.5 above (modify the CMakeList.txt if you dont have a GPU!)
  • cuDNN v5 (download from nvidia official website, need v5 for cuda 8.0)
  • latest nvidia graphic driver 367.48
Usage Detail

requires a connected webcam and ROS installed to run rosmake in a terminal

  $ roscd neural_cam_ros
  $ rosmake
  $ roslaunch neural_cam_ros multicam.launch
Common Error

for "installation" of the package, add this line to ~/.bashrc and source it:

    export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH

if cmake display of not able to find "curand/cublas/cudnn", be sure to add the following symbolic link:

   sudo ln -s /usr/local/cuda/lib64/libcurand.so /usr/lib/libcurand.so
   sudo ln -s /usr/local/cuda/lib64/libcublas.so /usr/lib/libcublas.so
   sudo ln -s /usr/local/cuda/lib64/libcudnn.so /usr/lib/libcudnn.so
Demo Video on YouTube

IMAGE ALT TEXT

neural_cam_ros's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

neural_cam_ros's Issues

Couldn't find executable named detector

Hi~ I have a little problem~
When i execute the rosrun neural-cam-ros detector, I encounter a problem:
image

and...I have some question.
where are xxx.date, xxx.weights and xxx.cfg file put on when i execute the rosrun neural-cam-ros detector?
Thanks you!

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.