Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Catch Error: E/Registrar: Exception caught while communicating with master. #308

Open
carsonxw opened this issue Sep 19, 2019 · 0 comments

Comments

@carsonxw
Copy link

I've tried overriding onMasterRegisterFailure in onStart() method. It was still not working as expected. App keeps crashes if users connect to Valid IP but failed to connect to Master.

publisher.addListener(new DefaultPublisherListener<std_msgs.String>() {
            @Override
            public void onMasterRegistrationSuccess(Publisher<std_msgs.String> registrant) {
                Log.w("Publisher:", "Publisher succeed to register: " + registrant);
            }
            @Override
            public void onMasterRegistrationFailure(Publisher<std_msgs.String> registrant) {
                Log.w("Publisher:", "Publisher failed to register: " + registrant);
            }
        });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant