Classes | |
class | CheckerThread |
interface | FailureHandler |
interface | RobotDescriptionReceiver |
Public Member Functions | |
void | beginChecking (RobotId robotId) |
MasterChecker (RobotDescriptionReceiver foundMasterCallback, FailureHandler failureCallback) | |
void | stopChecking () |
Private Attributes | |
CheckerThread | checkerThread |
FailureHandler | failureCallback |
RobotDescriptionReceiver | foundMasterCallback |
Threaded ROS-master checker. Runs a thread which checks for a valid ROS master and sends back a RobotDescription (with robot name and type) on success or a failure reason on failure.
Definition at line 66 of file MasterChecker.java.
com.github.rosjava.android_apps.application_management.MasterChecker.MasterChecker | ( | RobotDescriptionReceiver | foundMasterCallback, |
FailureHandler | failureCallback | ||
) | [inline] |
Constructor. Should not take any time.
Definition at line 89 of file MasterChecker.java.
void com.github.rosjava.android_apps.application_management.MasterChecker.beginChecking | ( | RobotId | robotId | ) | [inline] |
Start the checker thread with the given robotId. If the thread is already running, kill it first and then start anew. Returns immediately.
Definition at line 98 of file MasterChecker.java.
Stop the checker thread.
Definition at line 118 of file MasterChecker.java.
CheckerThread com.github.rosjava.android_apps.application_management.MasterChecker.checkerThread [private] |
Definition at line 82 of file MasterChecker.java.
FailureHandler com.github.rosjava.android_apps.application_management.MasterChecker.failureCallback [private] |
Definition at line 84 of file MasterChecker.java.
RobotDescriptionReceiver com.github.rosjava.android_apps.application_management.MasterChecker.foundMasterCallback [private] |
Definition at line 83 of file MasterChecker.java.