public abstract class RosActivity
extends Activity
Modifier and Type | Field and Description |
---|---|
protected NodeMainExecutorService |
nodeMainExecutorService |
Modifier | Constructor and Description |
---|---|
protected |
RosActivity(java.lang.String notificationTicker,
java.lang.String notificationTitle) |
Modifier and Type | Method and Description |
---|---|
java.net.URI |
getMasterUri() |
protected abstract void |
init(org.ros.node.NodeMainExecutor nodeMainExecutor)
This method is called in a background thread once this
Activity has
been initialized with a master URI via the MasterChooser
and a NodeMainExecutorService has started. |
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data) |
protected void |
onDestroy() |
protected void |
onStart() |
void |
startActivityForResult(Intent intent,
int requestCode) |
void |
startMasterChooser() |
protected NodeMainExecutorService nodeMainExecutorService
protected RosActivity(java.lang.String notificationTicker, java.lang.String notificationTitle)
protected void onStart()
protected void onDestroy()
protected abstract void init(org.ros.node.NodeMainExecutor nodeMainExecutor)
Activity
has
been initialized with a master URI
via the MasterChooser
and a NodeMainExecutorService
has started. Your NodeMain
s
should be started here using the provided NodeMainExecutor
.nodeMainExecutor
- the NodeMainExecutor
created for this Activity
public void startMasterChooser()
public java.net.URI getMasterUri()
public void startActivityForResult(Intent intent, int requestCode)
protected void onActivityResult(int requestCode, int resultCode, Intent data)