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

Subscriber Android from C++ node

asked 2014-05-22 09:31:02 -0600

thomasL gravatar image

updated 2014-05-22 09:44:07 -0600

Hi everybody! I tried to use the rosTextView of Android to display messages from a topic. The publisher is on my computer (ROS Hydro, rqt). There is no effect (the application doesn't crash), I just get this error :

E/UpdatePublisherRunnable﹕ org.ros.internal.node.xmlrpc.XmlRpcTimeoutException: org.apache.xmlrpc.client.TimingOutCallback$TimeoutException: No response after waiting for 10000 milliseconds.
I/dalvikvm﹕ Jit: resizing JitTable from 4096 to 8192

    rosTextView = (RosTextView<std_msgs.String>) findViewById(R.id.text);
    rosTextView.setMessageType(std_msgs.String._TYPE);
    rosTextView.setTopicName("/textView");
    rosTextView.setMessageToStringCallable(new MessageCallable<String, std_msgs.String>() {
        @Override
        public String call(std_msgs.String message) {
            return "ok";
        }
    });

This code worked last month and since I might have update some part of ROS, there is a bug.

Have anyone experience this case? Thank you

edit retag flag offensive close merge delete

Comments

Hasn't been any changes in hydro, rosjava nor I suspect roscpp. Has your android build environment/sdk changed?

Daniel Stonier gravatar image Daniel Stonier  ( 2014-05-25 20:34:40 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-05-25 21:07:44 -0600

thomasL gravatar image

Android Studio has been recently update (version 0.5.7). I'm also unable to create a Client (Android) / Server (Computer) Service as in this post : http://answers.ros.org/question/55922...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-05-22 09:31:02 -0600

Seen: 775 times

Last updated: May 25 '14