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

Android + ROS + QR

asked 2014-04-07 14:19:18 -0500

Elvish Champion gravatar image

updated 2016-10-24 09:02:44 -0500

ngrennan gravatar image

Hi, I just started with ROS and I want to make an android app that reads a QR code to decide which information it should send. After deciding which information it should send, a node should receive it and do something. The information would be a position in the world.

May I ask how I should start? I don't know the approach I should take: -Should I make a common android app and find a way to send the information? How can I send it to a node without the app being a node? -Should I run a node in the cel phone and send the information via a topic?

I am quite lost because I don't know java and I am new to ROS. Not sure which approach would be easier or better.

Thanks in advance for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-09 19:44:25 -0500

Daniel Stonier gravatar image

There is already some code in the rosjava repositories which do this. The zebra crossing - zxing is a library that does the qr codes. A simple RosActivity from android_core should let you build the basis of an app which can publish whatever information you want from the qr code to a ros node on another system. You can grep through the android_apps and android_remocons code to find usage of zxing.

edit flag offensive delete link more

Comments

Thanks you have been a great help. I am running the PubSub app from android_core. The message "Hello World! #" appears in my cell phone since it establishes communication with my pc. However, I am unable to see that message with rostopic echo /chatter . May I ask what am I doing wrong? Thanks.

Elvish Champion gravatar image Elvish Champion  ( 2014-04-19 22:34:27 -0500 )edit

Using rqt_graph I can see rostpic is suscribed to /chatter in the Nodes/Topic(All) tab. However only rostopic appears in Nodes/Topics(Active). I suppose that the publisher isn't publishing new content to /chatter, but that seems strange since "Hello World! #" keeps increasing. Thanks =)

Elvish Champion gravatar image Elvish Champion  ( 2014-04-19 22:44:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-07 14:19:18 -0500

Seen: 773 times

Last updated: Apr 09 '14