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

Revision history [back]

click to hide/show revision 1
initial version

Hi! Can you update the question with the error that's making the app crash? Try debugging your app with ADB (see here for reference, you can see exactly what's going on with your app with it).

The code for the node looks OK. How are you executing it? Have you taken a look at https://github.com/rosjava/android_core/blob/kinetic/android_tutorial_pubsub/src/org/ros/android/android_tutorial_pubsub/MainActivity.java? Perhaps that can give you a hint.

I'd say the error is somewhere else. Use ADB and take a closer look to the error messages.

Hi! Can you update the question with the error that's making the app crash? Try debugging your app with ADB (see here for reference, you can see exactly what's going on with your app with it).

The code for the node looks OK. How are you executing it? Have you taken a look at https://github.com/rosjava/android_core/blob/kinetic/android_tutorial_pubsub/src/org/ros/android/android_tutorial_pubsub/MainActivity.java? Perhaps that can give you a hint.

I'd say the error is somewhere else. Use ADB and take a closer look to the error messages.

EDIT: note that you can copy the code in your question, not as an answer, please take into account that this is not a forum.

I just saw this line. What is this doing? batterystatus = callable.call(message); You should make batteryStatus just a plain double, and do batteryStatus = message.getData();

Hi! Can you update the question with the error that's making the app crash? Try debugging your app with ADB (see here for reference, you can see exactly what's going on with your app with it).

The code for the node looks OK. How are you executing it? Have you taken a look at https://github.com/rosjava/android_core/blob/kinetic/android_tutorial_pubsub/src/org/ros/android/android_tutorial_pubsub/MainActivity.java? Perhaps that can give you a hint.

I'd say the error is somewhere else. Use ADB and take a closer look to the error messages.

EDIT: note that you can copy the code in your question, not as an answer, please take into account that this is not a forum.

I just saw this line. What is this doing? doing?

batterystatus = callable.call(message);

You should make batteryStatus just a plain double, and do do

batteryStatus = message.getData();