How to integrate ROS and Django?
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.
Asked by sudo_melvinyesudas on 2018-08-12 22:39:10 UTC
Answers
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/173684/how-to-create-simple-ros-android-application/ https://answers.ros.org/question/272531/how-to-turn-an-android-app-to-a-ros-node/ http://wiki.ros.org/ApplicationsPlatform/Clients/Android/Tutorials/Getting%20Started#Writing_An_Android_App
Asked by autonomy on 2018-08-14 08:31:58 UTC
Comments
What do hope to achieve by integration? It sounds like you have to design your desired architecture first.
Asked by bouke on 2018-08-13 05:32:19 UTC
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.
Asked by autonomy on 2018-08-13 12:52:57 UTC
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
Asked by sudo_melvinyesudas on 2018-08-14 01:51:55 UTC
define 'working' !
Asked by PeteBlackerThe3rd on 2018-08-14 06:35:10 UTC
Working means just a trigger, like permission to start the program.
Asked by sudo_melvinyesudas on 2018-08-14 08:15:44 UTC