rosjava / android_remocons

Android based remote controllers for 1-1 robot pairing and multi-robot concerts.
21 stars 28 forks source link

Crash of remocon if paired robot is not up #22

Closed stonier closed 11 years ago

stonier commented 11 years ago

This is a new bug I just introduced (good at that!). Crashes after trying to look for non-existant robot.

stonier commented 11 years ago

In master checker:

// this line of code causes a background thread to perpetually crash and restart if there is no master uri.
nodeMainExecutorService.execute(client, nodeConfiguration.setNodeName("platform_info_client_node"));

What is a good way of checking if the master is up?

stonier commented 11 years ago

Look for rosversion param.

https://github.com/ros-java/android_apps/commit/8243bf7cbbef065467f153f69a7d31ccebd5f7ec