lobot::Metrics Class Reference

A behaviour for gathering performance metrics about the robot. More...

#include <Robots/LoBot/control/LoMetrics.H>

Inheritance diagram for lobot::Metrics:
Inheritance graph
[legend]
Collaboration diagram for lobot::Metrics:
Collaboration graph
[legend]

List of all members.

Classes

struct  endl
class  Log
 A class for creating metrics related log messages and buffering them with the metrics behaviour for subsequent output to the log file. More...
struct  newl

Static Public Member Functions

static int opening_phrase_width ()
static int opw ()
 A shorter alias for above function.

Friends

class subfactory< Metrics, base >
class Log

Detailed Description

A behaviour for gathering performance metrics about the robot.

This class implements a behaviour that collects all sorts of useful data as lobot runs. For example, we can get information such as the robot's pose history, the time at which a goal is reached, average speed of the robot, number of emergency stop and extrication events, actual and predicted times-to-impact, and so on. All this data is periodically written to a log file, which can then be analyzed off-line.

This behaviour does not control the robot in any way nor does it perform any sort of visualization.

Definition at line 85 of file LoMetrics.H.


Member Function Documentation

int lobot::Metrics::opening_phrase_width (  )  [static]

To make the metrics log more readable, each message's initial/opening phrase (such as "tracking pose" or "extricate") is left-justified within a field width specified in the config file. This helper function returns that setting.

Definition at line 266 of file LoMetrics.C.

static int lobot::Metrics::opw (  )  [inline, static]

A shorter alias for above function.

Definition at line 291 of file LoMetrics.H.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:28 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3