Classes | Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes
edu.nimbus.glass.ROSMonitorService Class Reference
Inheritance diagram for edu.nimbus.glass.ROSMonitorService:
Inheritance graph
[legend]

List of all members.

Classes

class  ROSMonitorBinder

Public Member Functions

void createWarning (String error_message)
IBinder onBind (Intent intent)
void onCreate ()
void onDestroy ()
int onStartCommand (Intent intent, int flags, int startId)
void removeLiveCard ()

Static Public Attributes

static final String HOST_ADDRESS = "ws://10.214.32.10:9090"

Private Attributes

final ROSMonitorBinder mBinder = new ROSMonitorBinder()
WebSocketConnection mConnection
LiveCard mLiveCard
ROSMonitorManager mROSMonitor
TimelineManager mTimelineManager

Static Private Attributes

static final String LIVE_CARD_ID = "ROS_WARNING"

Detailed Description

Service that will control the monitoring of a specific topic on ROS to monitor for warnings sent to the glass when a warning is received this service will insert a live card into the timeline

Definition at line 38 of file ROSMonitorService.java.


Member Function Documentation

void edu.nimbus.glass.ROSMonitorService.createWarning ( String  error_message) [inline]

This method takes a string error message and creates a live card displaying that warning on the Glass. This allows the service to alert the user when a defined behavor has occured.

Parameters:
error_messageString : error message to dispaly

Definition at line 130 of file ROSMonitorService.java.

IBinder edu.nimbus.glass.ROSMonitorService.onBind ( Intent  intent) [inline]

Definition at line 121 of file ROSMonitorService.java.

Definition at line 72 of file ROSMonitorService.java.

Definition at line 107 of file ROSMonitorService.java.

int edu.nimbus.glass.ROSMonitorService.onStartCommand ( Intent  intent,
int  flags,
int  startId 
) [inline]

Note: Services that have already started will receive information through this method.

"startService() delivers a message to an existing running copy of the service, via the onStartCommand() method, if the service was already created. If it isn't yet created, it will create such a copy (thereby triggering a call to onCreate() first, followed by the onStartCommand) if there is no running copy of the service."

Definition at line 89 of file ROSMonitorService.java.

Get rid of the live card and reset the monitors last message

Definition at line 156 of file ROSMonitorService.java.


Member Data Documentation

final String edu.nimbus.glass.ROSMonitorService.HOST_ADDRESS = "ws://10.214.32.10:9090" [static]

EDIT THIS LINE TO MAKE THE CONNECTION TO ROS WORK

Definition at line 44 of file ROSMonitorService.java.

final String edu.nimbus.glass.ROSMonitorService.LIVE_CARD_ID = "ROS_WARNING" [static, private]

Needed to create/remove live cards

Definition at line 42 of file ROSMonitorService.java.

Definition at line 50 of file ROSMonitorService.java.

WebSocketConnection edu.nimbus.glass.ROSMonitorService.mConnection [private]

Definition at line 55 of file ROSMonitorService.java.

Definition at line 49 of file ROSMonitorService.java.

Needed web socket stuff

Definition at line 54 of file ROSMonitorService.java.

Needed glass items

Definition at line 48 of file ROSMonitorService.java.


The documentation for this class was generated from the following file:


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21