Classes | |
class | TopicBinder |
Public Member Functions | |
String | getTopic () |
IBinder | onBind (Intent intent) |
void | onCreate () |
void | onDestroy () |
int | onStartCommand (Intent intent, int flags, int startId) |
Static Public Attributes | |
static final String | ALL_FIELDS = "ALL_FIELDS" |
static final String | FIELD_FOCUS = "FIELD_FOCUS" |
static final String | GRAPH = "GRAPH" |
static final String | HOST_ADDRESS = "ws://10.214.32.10:9090" |
static final int | NUM_DECIMALS = 2 |
Package Attributes | |
WebSocketConnection | mConnection |
Private Member Functions | |
void | rosTopic (String new_topic) |
Private Attributes | |
final TopicBinder | mBinder = new TopicBinder() |
LiveCard | mLiveCard |
TopicRenderer | mRenderer |
TextToSpeech | mSpeech |
TimelineManager | mTimelineManager |
TopicManager | mTopicManager |
String | topic |
Static Private Attributes | |
static final String | LIVE_CARD_ID = "topic" |
The main application service that manages topic information throughout the apps lifetime.
Definition at line 54 of file TopicService.java.
String edu.nimbus.glass.TopicService.getTopic | ( | ) | [inline] |
Get the name of the topic currently being examined.
Definition at line 239 of file TopicService.java.
IBinder edu.nimbus.glass.TopicService.onBind | ( | Intent | intent | ) | [inline] |
Definition at line 128 of file TopicService.java.
void edu.nimbus.glass.TopicService.onCreate | ( | ) | [inline] |
Definition at line 108 of file TopicService.java.
void edu.nimbus.glass.TopicService.onDestroy | ( | ) | [inline] |
Definition at line 216 of file TopicService.java.
int edu.nimbus.glass.TopicService.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 142 of file TopicService.java.
void edu.nimbus.glass.TopicService.rosTopic | ( | String | new_topic | ) | [inline, private] |
This method connects to the server which has an instance of the ROSBridge server running. On connection it requests a subscription to the passed topic and creates the topic manager to listen to updates from that topic.
new_topic | String: Topic selected for debugging/viewing. |
Definition at line 194 of file TopicService.java.
final String edu.nimbus.glass.TopicService.ALL_FIELDS = "ALL_FIELDS" [static] |
Definition at line 57 of file TopicService.java.
final String edu.nimbus.glass.TopicService.FIELD_FOCUS = "FIELD_FOCUS" [static] |
Definition at line 59 of file TopicService.java.
final String edu.nimbus.glass.TopicService.GRAPH = "GRAPH" [static] |
Definition at line 58 of file TopicService.java.
final String edu.nimbus.glass.TopicService.HOST_ADDRESS = "ws://10.214.32.10:9090" [static] |
This line must be updated to ensure that the glass connects to the correct webserver that is running ROS
Definition at line 75 of file TopicService.java.
final String edu.nimbus.glass.TopicService.LIVE_CARD_ID = "topic" [static, private] |
Definition at line 73 of file TopicService.java.
final TopicBinder edu.nimbus.glass.TopicService.mBinder = new TopicBinder() [private] |
Definition at line 61 of file TopicService.java.
WebSocketConnection edu.nimbus.glass.TopicService.mConnection [package] |
Definition at line 55 of file TopicService.java.
LiveCard edu.nimbus.glass.TopicService.mLiveCard [private] |
Definition at line 67 of file TopicService.java.
Definition at line 68 of file TopicService.java.
TextToSpeech edu.nimbus.glass.TopicService.mSpeech [private] |
Definition at line 64 of file TopicService.java.
TimelineManager edu.nimbus.glass.TopicService.mTimelineManager [private] |
Definition at line 66 of file TopicService.java.
Definition at line 63 of file TopicService.java.
final int edu.nimbus.glass.TopicService.NUM_DECIMALS = 2 [static] |
Definition at line 60 of file TopicService.java.
String edu.nimbus.glass.TopicService.topic [private] |
Definition at line 70 of file TopicService.java.