Ask Your Question
0

How to create simple ROS Android application

asked 2014-06-15 12:27:43 -0500

zcox gravatar image

Hi - my goal is to build a very simple Android app that will run on my phone (HTC ONE M8) and will:

  1. Connect to a remote ROS master on the same network
  2. Publish Int16 messages to two separate topics

Ideally, I'd like to just create a new project in Android Studio and add dependencies to ros android libs from some external maven repository, and then use things like RosActivity and NodeMain in my project. I'd rather not have to build any ros-android or rosjava libs from source myself. Really want to just keep things as simple as possible here.

Is it possible to do this? I can't find any simple instructions on how to do the above anywhere on wiki.ros.org , and have failed miserably trying to follow the various android setup/build instructions that are on wiki.ros.org .

Any help would be greatly appreciated.

Thanks, Zach

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-06-15 13:11:37 -0500

Maya gravatar image

I think this is what you're looking for. There is some tutorial on them to understand.

Especially here it talks about pairing with Android. I did not work on that so I can't really tell how cool it is, not how easy or complicated it is though. But I've download the application to try once (Robocon on google play) and it seems quite intuitive.

edit flag offensive delete link more

Comments

The links you provided eventually led me to this Android Studio Development Environment tutorial http://wiki.ros.org/android/Tutorials/hydro/Installation%20-%20Android%20Studio%20Development%20Environment which I must have somehow overlooked before. That was exactly the setup I was looking for. Thanks!

zcox gravatar image zcox  ( 2014-06-16 08:29:09 -0500 )edit
2

answered 2014-06-15 16:45:10 -0500

There is a Android package of ROS. Here is the install instruction

You can use the Android Studio to design your application but I have to say you need the ros-android and rosjava libs for that.

Also there are some sample applications, which you can use as a template.

For my experience, I can publish my IMU data and video stream from my mobile to the rosmaster. https://www.youtube.com/watch?v=v_xHy...

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

1 follower

Stats

Asked: 2014-06-15 12:27:43 -0500

Seen: 3,816 times

Last updated: Jun 15 '14