Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rosjava nodes isolated and ros tools buggy behavior

I'm trying to connect the android pubsub tutorial of android_core with a master core in my server. https://github.com/rosjava/android_core/tree/indigo/android_tutorial_pubsub

I'm using ros indigo, which I installed in ubuntu using apt; and compiled rosjava and android_core from scratch.

Actually the example runs fine and I'm able to see the android subscriber getting the messages in the listener activity, which are sent from the talker node written in rosjava and runs also within the android emulator.

And when I run an additional listener node, it seems to subscribe fine:

rostopic info /chatter
Type: std_msgs/String

Publishers: 
 * /rosjava_tutorial_pubsub/talker (http://10.0.2.15:45508/)

Subscribers: 
 * /listener_6323_1412952506377 (http://laptop:37300/)
 * /android_gingerbread/ros_text_view (http://10.0.2.15:47832/)

The problem is that even if it is subscribed, the python listener won't see anything, the messages sent by the talker in the emulator arrive fine to the listener in the emulator, but not to the outside listener.

Also I noticed several glitches in the tools when combined with the android example:

  • I tried to send messages from the console using rostopic, and they are received fine by the listener in the console, but the listener in the emulator won't see it.

  • rostopic sees the topic /chatter, but rostopic echo /chatter wont print anything either.

  • When I run rqt_graph, it stops working right after I launch the android APP. And it wont work at all if I close and reopen, I have to restart the roscore in order to use it again.

I'm using the ROS_MASTER_URI set to my IP, in both console and emulator, so there shouldn't be mismatches in the namespace.

I checked the rosjava distribution to see if the git branches were correct and all of them seem to be the latest (indigo-devel most of them).

I saw this commit has to do with msg headers: https://github.com/ros/ros/commit/b9d218a76b3b3964c44c93d35df70e72c70d472f could it be related?

What could be happening here?, Namespace problem of the messages?, version incompatibility problem?. IDK.

Regards

rosjava nodes isolated and ros tools buggy behavior

I'm trying to connect the android pubsub tutorial of android_core with a master core in my server. https://github.com/rosjava/android_core/tree/indigo/android_tutorial_pubsub

I'm using ros indigo, which I installed in ubuntu using apt; and compiled rosjava and android_core from scratch.

Actually the example runs fine and I'm able to see the android subscriber getting the messages in the listener activity, which are sent from the talker node written in rosjava and runs also within the android emulator.

And when I run an additional listener node, it seems to subscribe fine:

rostopic info /chatter
Type: std_msgs/String

Publishers: 
 * /rosjava_tutorial_pubsub/talker (http://10.0.2.15:45508/)

Subscribers: 
 * /listener_6323_1412952506377 (http://laptop:37300/)
 * /android_gingerbread/ros_text_view (http://10.0.2.15:47832/)

The problem is that even if it is subscribed, the python listener won't see anything, the messages sent by the talker in the emulator arrive fine to the listener in the emulator, but not to the outside listener.

Also I noticed several glitches in the tools when combined with the android example:

  • I tried to send messages from the console using rostopic, and they are received fine by the listener in the console, but the listener in the emulator won't see it.

  • rostopic sees the topic /chatter, but rostopic echo /chatter wont print anything either.

  • When I run rqt_graph, it stops working right after I launch the android APP. And it wont work at all if I close and reopen, I have to restart the roscore in order to use it again.

I'm using the ROS_MASTER_URI set to my IP, in both console and emulator, so there shouldn't be mismatches in the namespace.

I checked the rosjava distribution to see if the git branches were correct and all of them seem to be the latest (indigo-devel most of them).

I saw this commit has to do with msg headers: https://github.com/ros/ros/commit/b9d218a76b3b3964c44c93d35df70e72c70d472f could it be related?

What could be happening here?, Namespace problem of the messages?, version incompatibility problem?. IDK.

Regards

EDIT: I couln't get it to work on the emulator, but the problem was getting to the virtual interface of the device. In a real device, the exact same setup works fine. The bugs also dissapeared, I guess the problem is that when ros tools can't get to the devices for information they crash, that includes rqt_graph and some others.

rosjava nodes isolated and ros tools buggy behavior

I'm trying to connect the android pubsub tutorial of android_core with a master core in my server. https://github.com/rosjava/android_core/tree/indigo/android_tutorial_pubsub

I'm using ros indigo, which I installed in ubuntu using apt; and compiled rosjava and android_core from scratch.

Actually the example runs fine and I'm able to see the android subscriber getting the messages in the listener activity, which are sent from the talker node written in rosjava and runs also within the android emulator.

And when I run an additional listener node, it seems to subscribe fine:

rostopic info /chatter
Type: std_msgs/String

Publishers: 
 * /rosjava_tutorial_pubsub/talker (http://10.0.2.15:45508/)

Subscribers: 
 * /listener_6323_1412952506377 (http://laptop:37300/)
 * /android_gingerbread/ros_text_view (http://10.0.2.15:47832/)

The problem is that even if it is subscribed, the python listener won't see anything, the messages sent by the talker in the emulator arrive fine to the listener in the emulator, but not to the outside listener.

Also I noticed several glitches in the tools when combined with the android example:

  • I tried to send messages from the console using rostopic, and they are received fine by the listener in the console, but the listener in the emulator won't see it.

  • rostopic sees the topic /chatter, but rostopic echo /chatter wont print anything either.

  • When I run rqt_graph, it stops working right after I launch the android APP. And it wont work at all if I close and reopen, I have to restart the roscore in order to use it again.

I'm using the ROS_MASTER_URI set to my IP, in both console and emulator, so there shouldn't be mismatches in the namespace.

I checked the rosjava distribution to see if the git branches were correct and all of them seem to be the latest (indigo-devel most of them).

I saw this commit has to do with msg headers: https://github.com/ros/ros/commit/b9d218a76b3b3964c44c93d35df70e72c70d472f could it be related?

What could be happening here?, Namespace problem of the messages?, version incompatibility problem?. IDK.

Regards

EDIT: I couln't get it to work on the emulator, but the problem was getting to the virtual net interface of the virtual device. In a real device, the exact same setup works fine. The bugs also dissapeared, I guess the problem is that when ros tools can't get to the devices for information they crash, that includes rqt_graph and some others.