LaserInterface Class Reference

#include <LaserInterface.h>

Inheritance diagram for LaserInterface:

BaseComponent

List of all members.

Public Member Functions

 LaserInterface ()
 ~LaserInterface ()
int Update ()
void setBaudRate (unsigned int baud)
vector< uint32_t > getCollisionPoints ()
void powerOn (bool on)

Private Member Functions

void initialize ()
double stepToAngle (int step)
int angleToStep (double angle)

Private Attributes

char theBuffer [MAX_SIZE]
int bytesRead
char * theDevice
string portOptions
char * type
char * timeout
hokuyo_aist::HokuyoLaser laser
hokuyo_aist::HokuyoSensorInfo sensorInfo
hokuyo_aist::HokuyoData laserData
int baudRate
bool writeToFile
ofstream outFile
vector< uint32_t > collisionPoints


Constructor & Destructor Documentation

LaserInterface::LaserInterface (  ) 

LaserInterface::~LaserInterface (  ) 


Member Function Documentation

int LaserInterface::Update (  )  [virtual]

The main update function; The end-developer of the target component must overload this function Though no input / output events are required, this is where such transfer would be done The return value can be anything, though a negative value means a failure and will kill the component

Implements BaseComponent.

void LaserInterface::setBaudRate ( unsigned int  baud  ) 

vector< uint32_t > LaserInterface::getCollisionPoints (  ) 

void LaserInterface::powerOn ( bool  on  ) 

void LaserInterface::initialize (  )  [private]

double LaserInterface::stepToAngle ( int  step  )  [private]

int LaserInterface::angleToStep ( double  angle  )  [private]


Member Data Documentation

char* LaserInterface::theDevice [private]

string LaserInterface::portOptions [private]

char* LaserInterface::type [private]

char* LaserInterface::timeout [private]

hokuyo_aist::HokuyoLaser LaserInterface::laser [private]

hokuyo_aist::HokuyoSensorInfo LaserInterface::sensorInfo [private]

hokuyo_aist::HokuyoData LaserInterface::laserData [private]

int LaserInterface::baudRate [private]

ofstream LaserInterface::outFile [private]

vector<uint32_t> LaserInterface::collisionPoints [private]


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

Generated on Sun Feb 21 00:00:10 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5