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

android_core publish/subscribe very slow

asked 2012-06-05 10:42:49 -0600

alexdicarlo gravatar image

Currently I am testing ROS to see if it would be worthwhile to convert some of our Android robotics code over to it. I've run into an issue where running any sort of Publisher/Subscriber as it is far too slow due to either the serialization of the messages or the number of messages being sent (I can't tell which).

Specifically, I am running an OrientationPublisher from android_gingerbread_mr1 and simply setting up a subscriber that takes the Pose and updates a text view on the screen. This slows the phone down so much and takes so many resources that attempting to press a button or anywhere on the screen for that matter, causes Android to kill the application for being unresponsive. I am currently using this phone (spec sheet in link): http://www.phonerated.com/cell-phone.php?phone=samsung+admire

Is there something I am doing wrong, or any suggestions on how to fix my issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-06-05 20:36:06 -0600

tfoote gravatar image

There's several demos or ROS running on Android. You can see some of them on the ROS blog

Your problems sound more like a bug than performance issues. I suggest that you double check your threading model.

edit flag offensive delete link more

Comments

It could be both or either. Performance on Android isn't great, but has gotten much better (about an order of magnitude) in the last couple weeks. Expect more improvements to follow.

damonkohler gravatar image damonkohler  ( 2012-07-02 23:22:10 -0600 )edit

Question Tools

Stats

Asked: 2012-06-05 10:42:49 -0600

Seen: 420 times

Last updated: Jun 05 '12