You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Catch Error: E/Registrar: Exception caught while communicating with master. #308
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);
}
});
Activity