Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

P2OS Class Reference

#include <p2os.h>

Inherits Driver.

List of all members.

Public Member Functions

 P2OS (ConfigFile *cf, int section)
int Subscribe (player_device_id_t id)
 Subscribe to this driver.

int Unsubscribe (player_device_id_t id)
 Unsubscribe from this driver.

void Main ()
 Main method for driver thread.

int Setup ()
 Initialize the driver.

int Shutdown ()
 Finalize the driver.

void CMUcamReset ()
void CMUcamTrack (int rmin=0, int rmax=0, int gmin=0, int gmax=0, int bmin=0, int bmax=0)
void CMUcamStopTracking ()


Constructor & Destructor Documentation

P2OS::P2OS ConfigFile cf,
int  section
 


Member Function Documentation

int P2OS::Subscribe player_device_id_t  id  )  [virtual]
 

Subscribe to this driver.

The Subscribe() and Unsubscribe() methods are used to control subscriptions to the driver; a driver MAY override them, but usually won't.

Parameters:
id Id of the device to subscribe to (the driver may have more than one interface).
Returns:
Returns 0 on success.

Reimplemented from Driver.

int P2OS::Unsubscribe player_device_id_t  id  )  [virtual]
 

Unsubscribe from this driver.

The Subscribe() and Unsubscribe() methods are used to control subscriptions to the driver; a driver MAY override them, but usually won't.

Parameters:
id Id of the device to unsubscribe from (the driver may have more than one interface).
Returns:
Returns 0 on success.

Reimplemented from Driver.

void P2OS::Main  )  [virtual]
 

Main method for driver thread.

Most drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Reimplemented from Driver.

int P2OS::Setup  )  [virtual]
 

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

int P2OS::Shutdown  )  [virtual]
 

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

void P2OS::CMUcamReset  ) 
 

void P2OS::CMUcamTrack int  rmin = 0,
int  rmax = 0,
int  gmin = 0,
int  gmax = 0,
int  bmin = 0,
int  bmax = 0
 

void P2OS::CMUcamStopTracking  ) 
 


The documentation for this class was generated from the following files:
Generated on Tue May 3 14:15:52 2005 for Player by doxygen 1.3.6