Skip to content
Tensorflow tutorial in ROS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt Update May 19, 2017 Tensorflow version update May 12, 2017 changing code for @shixinlishixinli issue May 19, 2017 Tensorflow version update May 12, 2017


I made a ros-node to predict numbers from camera image.
I used Tensorflow tutorial Deep MNIST model(

Before you use this, you must install some programs.

$ sudo apt-get install ros-indigo-cv-bridge ros-indigo-cv-camera

This is main file. This make the ros-node.

  • publish: /result (std_msgs/Int16)
  • subscribe: /image (sensor_msgs/Image)


This is Trained model. Test set accuracy is approximately 99.2%.

How to try

$ roscore
$ python image:=/cv_camera/image_raw
$ rosrun cv_camera cv_camera_node
$ rostopic echo /result


You can see ros-node published predicted numbers. Look at this.
Right picture is 9-image from camera.
Left number is published predicted number.



This software is released under the Apache License2.0, see LICENSE.txt.

You can’t perform that action at this time.