RemoteProcess Class Reference#include <RemoteProcess.h>
Inheritance diagram for RemoteProcess:
[legend]List of all members.
Detailed Description
Sample RemoteProcessingOPENR process.
RemoteProcess runs on Linux with OPEN_R_SDK installed (and the RemoteProcessingOPENR patch). RemoteProcess talks to the Aibo using OPENR messages. RemoteProcessingOPENR can receive all the OPENR system sensor streams and write to all output streams available on the Aibo.
In short, use this if you're falling short of processing power on the Aibo, and the data you want processed is small in size. It'll help greatly if you're comfortable with OPENR processes and message passing.
Please read the RemoteProcessingOPENR instructions on the main Tekkotsu page for more information.
Definition at line 24 of file RemoteProcess.h.
|
Public Member Functions |
| RemoteProcess () |
| constructor
|
| ~RemoteProcess () |
| destructor
|
void | start () |
| called when objects are connected (by DoStart). Add user code here.
|
void | data_received (const char *buf) |
| called when a message is received (by RPOPENR_notify). Add user code here.
|
virtual OStatus | DoInit (const OSystemEvent &event) |
| first call (after constructor), set up memory
|
virtual OStatus | DoStart (const OSystemEvent &event) |
| second call, ask for messages
|
virtual OStatus | DoStop (const OSystemEvent &event) |
| next to last call, stop sending and receiving messages
|
virtual OStatus | DoDestroy (const OSystemEvent &event) |
| last call (before destructor), clean up memory here
|
bool | RPOPENR_isReady () |
| indicates whether the Aibo is ready to receive more messages
|
int | RPOPENR_send (char *buf, int bufsize) |
| send message to Aibo
|
void | RPOPENR_ready (const OReadyEvent &event) |
| OPENR callback for registering when the Aibo is ready for messages.
|
void | RPOPENR_notify (const ONotifyEvent &event) |
| OPENR callback for when a message is received from the Aibo.
|
Public Attributes |
OSubject * | subject [numOfSubject] |
| holds information for each of our subjects (data we provide)
|
OObserver * | observer [numOfObserver] |
| holds information for each of the sources we're observing
|
bool | RPOPENR_isready |
| set to true after RPOPENR_ready() was called
|
Constructor & Destructor Documentation
RemoteProcess::RemoteProcess |
( |
|
) |
|
|
Member Function Documentation
void RemoteProcess::data_received |
( |
const char * |
buf |
) |
|
|
OStatus RemoteProcess::DoDestroy |
( |
const OSystemEvent & |
event |
) |
[virtual] |
|
|
last call (before destructor), clean up memory here
Definition at line 63 of file RemoteProcess.cc. |
OStatus RemoteProcess::DoInit |
( |
const OSystemEvent & |
event |
) |
[virtual] |
|
|
first call (after constructor), set up memory
Definition at line 37 of file RemoteProcess.cc. |
OStatus RemoteProcess::DoStart |
( |
const OSystemEvent & |
event |
) |
[virtual] |
|
OStatus RemoteProcess::DoStop |
( |
const OSystemEvent & |
event |
) |
[virtual] |
|
|
next to last call, stop sending and receiving messages
Definition at line 55 of file RemoteProcess.cc. |
bool RemoteProcess::RPOPENR_isReady |
( |
|
) |
[inline] |
|
|
indicates whether the Aibo is ready to receive more messages
Definition at line 45 of file RemoteProcess.h.
Referenced by start(). |
void RemoteProcess::RPOPENR_notify |
( |
const ONotifyEvent & |
event |
) |
|
|
|
OPENR callback for when a message is received from the Aibo.
Definition at line 70 of file RemoteProcess.cc. |
void RemoteProcess::RPOPENR_ready |
( |
const OReadyEvent & |
event |
) |
[inline] |
|
|
OPENR callback for registering when the Aibo is ready for messages.
Definition at line 48 of file RemoteProcess.h. |
int RemoteProcess::RPOPENR_send |
( |
char * |
buf, |
|
|
int |
bufsize |
|
) |
|
|
void RemoteProcess::start |
( |
|
) |
|
|
|
called when objects are connected (by DoStart). Add user code here.
Definition at line 16 of file RemoteProcess.cc.
Referenced by DoStart(). |
Member Data Documentation
The documentation for this class was generated from the following files:
|