Classes | Typedefs | Enumerations | Functions
robots.h File Reference

Contains the class RobotTracker, that can be used to locate robots. More...

#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <list>
#include <laustracker/map.h>

Go to the source code of this file.

Classes

struct  led_t
 Contains information about a LED. More...
 
struct  robot_t
 Stores information about a robot. More...
 
class  RobotTracker
 A class to locate robots. More...
 

Typedefs

typedef enum ColorEnum ColorType
 Possible colors of a LED. More...
 
typedef struct led_t led_t
 Contains information about a LED. More...
 
typedef struct robot_t robot_t
 Stores information about a robot. More...
 

Enumerations

enum  ColorEnum {
  c_red, c_blue, c_green, c_yellow,
  c_white
}
 Possible colors of a LED. More...
 

Functions

String dist2name (float dist_blue_white, float dist_red_white)
 Find the corresponding robot name from a list of robots and distances. More...
 

Detailed Description

Contains the class RobotTracker, that can be used to locate robots.

Definition in file robots.h.

Typedef Documentation

typedef enum ColorEnum ColorType

Possible colors of a LED.

typedef struct led_t led_t

Contains information about a LED.

typedef struct robot_t robot_t

Stores information about a robot.

Enumeration Type Documentation

enum ColorEnum

Possible colors of a LED.

Definition at line 39 of file robots.h.

39 { c_red, c_blue, c_green, c_yellow, c_white } ColorType;
enum ColorEnum ColorType
Possible colors of a LED.

Function Documentation

String dist2name ( float  dist_blue_white,
float  dist_red_white 
)

Find the corresponding robot name from a list of robots and distances.

Parameters
dist_blue_whiteDistance from the blue LED to the white LED
dist_red_whiteDistance from the red LED to the white LED
Returns
Name of the robot