Skip to content

About

A simple package

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traffic_light_fetcher

Overview

A simple package for fetching and performing simple analysis on traffic lights in a streamed video

Author: Elmar Abbasov
Maintainer: abbasov.elmar94@gmail.com

The traffic_light_fetcher package has been tested under ROS Kinetic and Ubuntu 16.04.

enter image description here enter image description here

Non-standard dependencies

  • video_stream_opencv (to publish a video stream)

      sudo apt install ros-kinetic-video-stream-opencv
    

Building

To build from source, clone the latest version from this repository into your catkin workspace and compile the package using

cd catkin_workspace/src
git clone https://github.com/ubicray/traffic_light_fetcher
cd ../
catkin build traffic_light_fetcher

Usage

Before using you'll need to add a video and pre-trained tensorflow model into a folder called include in the package's directory For ease of use you can download this archive which has a pre-trained model and the video I tested this package with included - Google drive link

Run the main node with

roslaunch traffic_light_fetcher run_all.launch

Launch files

  • run_all.launch: For running all the nodes for seeing how the package works

Nodes

traffic_light_fetcher

Grabs images from a streamed image and extracts details about traffic lights in the picture

Subscribed Topics

  • /videofile/image_raw (sensor_msgs/Image)

Published Topics

  • /traffic_light_detected (std_msgs/Bool)

  • /traffic_light_size (geometry_msgs/Vector3)

traffic_light_analyzer

Subscribed Topics

  • /traffic_light_detected (std_msgs/Bool)

  • /traffic_light_size (geometry_msgs/Vector3)

Published Topics

  • /zone_height (std_msgs/Float32)

Configuration tested with real-time performance

  • Ubuntu 16.04
  • ROS kinetic
  • Nvidia drivers 418.87
  • i7-7700
  • GTX 1070
  • CUDA 10.1

References

https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API https://www.youtube.com/watch?v=7OtcVQ8H2BQ (Video used for testing)

About

A simple package

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages