Getting access to diagnostic information in rosjava/android_core

asked 2016-10-21 10:30:51 -0500

autonomy gravatar image

I am writing an Android app and would like to display some diagnostic information when things go wrong. For example:

E/Registrar: Exception caught while communicating with master. java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "192.268.1.15": No address associated with hostname

Or

I/DefaultPublisher: Publisher registration failed:

Publisher'<'PublisherDefinition'<'PublisherIdentifier'<'NodeIdentifier'<'/ros_image_view, http://192.168.1.2:47290/ >, TopicIdentifier'<'/rosout>>, Topic'<'TopicIdentifier'<'/rosout>, TopicDescription'<'rosgraph_msgs/Log, acffd30cd6b6de30f120938c17c593fb>>>>

These exceptions are getting caught by rosjava and I never get to see them. What's the best way for me to obtain such information so that I can display it to the user? For connections I could create my own publisher and register a listener, but what about other kinds of exceptions?

edit retag flag offensive close merge delete