Ask Your Question
1

How to integrate ROS and Django?

asked 2018-08-12 22:39:10 -0600

updated 2018-08-14 01:52:18 -0600

Hi,

i have to integrate ROS and Django.But i have no idea how to integrate it with ros. like, what kinda ros_msgs we have to use, where we have to start the node.

I have an android app and robot. After pressing button on app, the robot should start working. Also I want to display sensor values of the robot on the app.

Can anyone help me?

Im using ROS Kinetic on UBUNTU 16.04.

edit retag flag offensive close merge delete

Comments

What do hope to achieve by integration? It sounds like you have to design your desired architecture first.

bouke gravatar imagebouke ( 2018-08-13 05:32:19 -0600 )edit
1

Yeah, we have no idea what you're trying to do if you don't give us any specifics. Kind of like saying "combine phone into bicycle" without giving any context.

autonomy gravatar imageautonomy ( 2018-08-13 12:52:57 -0600 )edit

I have an android app and robot. After pressing button on app, the robot should start working. Also I want to display sensor values of the robot on the app. @autonomy@bouke

sudo_melvinyesudas gravatar imagesudo_melvinyesudas ( 2018-08-14 01:51:55 -0600 )edit

define 'working' !

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-08-14 06:35:10 -0600 )edit

Working means just a trigger, like permission to start the program.

sudo_melvinyesudas gravatar imagesudo_melvinyesudas ( 2018-08-14 08:15:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-14 08:31:58 -0600

autonomy gravatar image

You've got a very difficult task ahead of you, given how you describe the requirements.

On the surface, what you're trying to achieve sounds like this: Android interface sends simple command data to robot; robot sends sensor data back. I don't see any reason to get Django involved here other than it being a requirement to run the app.

Have you looked at RosJava? It isn't very well documented but it does work and I've used it successfully in an Android app to send/receive simple data as well as maps and images. To send data to the robot you would create a button in the app, create a connection to the master, then make the button send a message on a topic of your choosing - sounds like it could be an empty message just to get the robot moving.

To communicate the other way you would create a subscriber for every single sensor topic you would display. The message types will depend on what kind of sensor data you are consuming. Then you would display the data on your interface as it comes in.

That's the gist of it. There are very many resources out there, I suggest your break down your massive goal into simpler tasks first.

https://answers.ros.org/question/1736... https://answers.ros.org/question/2725... http://wiki.ros.org/ApplicationsPlatf...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-08-12 22:39:10 -0600

Seen: 360 times

Last updated: Aug 14 '18