Homepage Demos Overview Downloads Tutorials Reference
Credits

RemoteProcess Class Reference

#include <RemoteProcess.h>

Inheritance diagram for RemoteProcess:

Inheritance graph
[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  ) 
 

constructor

Definition at line 5 of file RemoteProcess.cc.

RemoteProcess::~RemoteProcess  ) 
 

destructor

Definition at line 10 of file RemoteProcess.cc.


Member Function Documentation

void RemoteProcess::data_received const char *  buf  ) 
 

called when a message is received (by RPOPENR_notify). Add user code here.

Definition at line 28 of file RemoteProcess.cc.

Referenced by RPOPENR_notify().

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]
 

second call, ask for messages

Definition at line 46 of file RemoteProcess.cc.

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
 

send message to Aibo

Definition at line 77 of file RemoteProcess.cc.

Referenced by start().

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

OObserver* RemoteProcess::observer[numOfObserver]
 

holds information for each of the sources we're observing

Definition at line 37 of file RemoteProcess.h.

Referenced by RPOPENR_notify().

bool RemoteProcess::RPOPENR_isready
 

set to true after RPOPENR_ready() was called

Definition at line 44 of file RemoteProcess.h.

Referenced by RPOPENR_isReady(), RPOPENR_ready(), and RPOPENR_send().

OSubject* RemoteProcess::subject[numOfSubject]
 

holds information for each of our subjects (data we provide)

Definition at line 36 of file RemoteProcess.h.

Referenced by RPOPENR_send().


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

Tekkotsu v2.2.2
Generated Tue Jan 4 15:45:31 2005 by Doxygen 1.4.0