Main Page   Class Hierarchy   Compound List   Compound Members  

ArSickLogger Class Reference

This class can be used to create log files for the laser mapper. More...

#include <ArSickLogger.h>

List of all members.

Public Methods

 ArSickLogger (ArRobot *robot, ArSick *sick, double distDiff, double degDiff, const char *filename)
 Constructor. More...

virtual ~ArSickLogger (void)
 Destructor.

void addTagToLog (const char *str,...)
 Adds a string to the log file at the given moment. More...

void setDistDiff (double distDiff)
 Sets the distance at which the robot will take a new reading.

double getDistDiff (void)
 Gets the distance at which the robot will take a new reading.

void setDegDiff (double degDiff)
 Sets the degrees to turn at which the robot will take a new reading.

double getDegDiff (void)
 Gets the degrees to turn at which the robot will take a new reading.

void robotTask (void)
 The task which gets attached to the robot.


Detailed Description

This class can be used to create log files for the laser mapper.

This class has a pointer to a robot and a laser... every time the robot has EITHER moved the distDiff, or turned the degDiff, it will take the current readings from the laser and log them into the log file given as the filename to the constructor.


Constructor & Destructor Documentation

ArSickLogger::ArSickLogger ArRobot   robot,
ArSick   sick,
double    distDiff,
double    degDiff,
const char *    filename
 

Constructor.

Make sure you have called ArSick::configure on your laser before you make this class

Parameters:
robot  The robot to attach to
sick  the laser to log from
distDiff  the distance traveled at which to take a new reading
degDiff  the degrees turned at which to take a new reading
filename  the file name in which to put the log


Member Function Documentation

void ArSickLogger::addTagToLog const char *    str,
...   
 

Adds a string to the log file at the given moment.

The robot MUST be locked before you call this function, so that this function is not adding to a list as the robotTask is using it.

This function takes the given tag


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:44:05 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001