Public Member Functions | |
boolean | check_display (String new_error) |
void | clearWarning () |
void | onClose (int code, String reason) |
void | onOpen () |
void | onTextMessage (String payload) |
ROSMonitorManager (ROSMonitorService master, WebSocketConnection conn) | |
void | setWarning (String text) |
Static Public Attributes | |
static final String | WARN_TOPIC_NAME = "glass_warn" |
static final String | WARN_TOPIC_TYPE = "std_msgs/String" |
Package Attributes | |
WebSocketConnection | mConnection |
Private Attributes | |
String | _lastWarning |
ROSMonitorService | _master |
Map< String, Long > | message_times |
Class to handle data sent over the websocket connection.
Definition at line 37 of file ROSMonitorManager.java.
edu.nimbus.glass.ROSMonitorManager.ROSMonitorManager | ( | ROSMonitorService | master, |
WebSocketConnection | conn | ||
) | [inline] |
Constructor
master | : The background service that will control live card creation |
conn | WebSocketConnection : connection to send and receive messages |
Definition at line 58 of file ROSMonitorManager.java.
boolean edu.nimbus.glass.ROSMonitorManager.check_display | ( | String | new_error | ) | [inline] |
This method checks a received message to see if it should be displayed based on time and what is currently being displayed on the screen.
Definition at line 104 of file ROSMonitorManager.java.
void edu.nimbus.glass.ROSMonitorManager.clearWarning | ( | ) | [inline] |
Clear the stored warning so the next one will trigger a new live card
Definition at line 137 of file ROSMonitorManager.java.
void edu.nimbus.glass.ROSMonitorManager.onClose | ( | int | code, |
String | reason | ||
) | [inline] |
Definition at line 129 of file ROSMonitorManager.java.
void edu.nimbus.glass.ROSMonitorManager.onOpen | ( | ) | [inline] |
Definition at line 66 of file ROSMonitorManager.java.
void edu.nimbus.glass.ROSMonitorManager.onTextMessage | ( | String | payload | ) | [inline] |
Definition at line 82 of file ROSMonitorManager.java.
void edu.nimbus.glass.ROSMonitorManager.setWarning | ( | String | text | ) | [inline] |
Set the warning text
text | String : Text to set to current warning. |
Definition at line 145 of file ROSMonitorManager.java.
String edu.nimbus.glass.ROSMonitorManager._lastWarning [private] |
Definition at line 42 of file ROSMonitorManager.java.
Definition at line 40 of file ROSMonitorManager.java.
WebSocketConnection edu.nimbus.glass.ROSMonitorManager.mConnection [package] |
Definition at line 44 of file ROSMonitorManager.java.
Map<String, Long> edu.nimbus.glass.ROSMonitorManager.message_times [private] |
Definition at line 46 of file ROSMonitorManager.java.
final String edu.nimbus.glass.ROSMonitorManager.WARN_TOPIC_NAME = "glass_warn" [static] |
Topic on which warning messages will be published
Definition at line 49 of file ROSMonitorManager.java.
final String edu.nimbus.glass.ROSMonitorManager.WARN_TOPIC_TYPE = "std_msgs/String" [static] |
Message type for warning messages
Definition at line 51 of file ROSMonitorManager.java.