ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

keras for ROS

asked 2021-04-09 04:49:29 -0500

bengao gravatar image

updated 2021-04-09 11:00:35 -0500

Ranjit Kathiriya gravatar image

Hi!

I want to deploy and use on ROS ( melodic or noetic) a simple deep learning network i developped with python ( on spyder environnement).

Do you have any example or any references to do this.

Evething I saw is about tensor flow and is very complex.

Thank's a lot.

Ben

edit retag flag offensive close merge delete

Comments

Don't think about Keras, TensorFlow, OpenCV, point cloud, or any of this the most important thing you should think about is data and how you will send it to ros or your robot

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-04-09 10:57:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-04-09 10:54:59 -0500

Ranjit Kathiriya gravatar image

Hello Ben,

I want to deploy and use on ROS ( melodic or noetic) a simple deep learning network I developed with python ( on spyder environment).

There are few steps:

  1. In your Keras model keep that file as a ROS node and then check the form of data and publish it.
  2. After publishing, You can use that data as whatever you want.

Just for Example (Drone with hand signs): I have hand sign data based on the video stream(right, left, up, and down) and I have obtained a Keras model for it. Then I would suggest making the full model as a single node and then publish it. After publishing let's say I subscribed and I have a string and based on that particular string I can decide moments and give moments to the drone via tf and it performs the action.

In place of string, you can take any message like Image, transformation, coordinate, pointcloud or even you can create your custom message.

Does this make sense? If you want in-depth understanding to write a comment. This is just an overview.

edit flag offensive delete link more

Comments

Hi Karma!

I think I understand this. It's the first time I will use it.

I will try and If necessary, I will come back to complete my problem.

Thank's a lot !

bengao gravatar image bengao  ( 2021-04-09 15:01:49 -0500 )edit
1

Hello @bengao,

Do you think that you got your answer, then tick this as an answer to help others?

Yes! You can drop comments if you are having any trouble implementing this. If you fill, this answer is good, please! vote up. Thanks!

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-04-12 02:46:04 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-04-09 04:49:29 -0500

Seen: 521 times

Last updated: Apr 09 '21