ros2_android_examples icon indicating copy to clipboard operation
ros2_android_examples copied to clipboard

Talker and Listener can't communicate on the same device

Open qh-huang opened this issue 6 years ago • 2 comments

I installed the 2 APKs to the same device and run them together. I expected to see listener can receive the messages sent from talker, but nothing happended, even in logcat. Did I miss anything?

qh-huang avatar May 09 '18 06:05 qh-huang

I think it's because when either app is sent to the background, the nodes are removed from the executor https://github.com/esteve/ros2_android_examples/blob/master/ros2_listener_android/src/main/java/org/ros2/examples/android/listener/ROS2ListenerActivity.java#L108-L113 so if you disable that code, you should be able to run ROS2 apps in the background.

esteve avatar May 29 '18 08:05 esteve

@esteve Thanks! I'll try it later.

qh-huang avatar May 29 '18 12:05 qh-huang