Public Attributes | List of all members
robot_t Struct Reference

Stores information about a robot. More...

#include <robots.h>

Public Attributes

led_t led_blue
 The blue LED at left front position. More...
 
led_t led_red
 The red LED at right front position. More...
 
Point center
 The center position of the robot in pixels. More...
 
float radius
 The radius of a circle around the robot. More...
 
Point field_idx
 The index of the nearest field to the robot. More...
 
Point2f relative_pos
 
Point2f absolut_pos_px
 
Point2f absolut_pos_cm
 
float angle
 Orientation angle of the robot in degree. More...
 
PosType direction
 
string name
 Name of the robot. More...
 
bool third_led_found
 Whether a third white LED was found. More...
 
led_t led_white
 The third white LED to distinguish different robots. More...
 
float ratio
 
float dist_blue_white
 Distance from the blue LED to the white LED. More...
 
float dist_red_white
 Distance from the red LED to the white LED. More...
 
Point center_last_frame
 Position f the robot within the last frame. More...
 
long long last_seen
 Number of the frame where the robot was last found. More...
 
int tmp_value
 To store temporary information about a robot, e.g. within loops. More...
 

Detailed Description

Stores information about a robot.

Definition at line 55 of file robots.h.

Member Data Documentation

Point2f robot_t::absolut_pos_cm

Absolute position of the robot in cm, origin of ordinates is the left top corner of the labyrinth

Definition at line 82 of file robots.h.

Point2f robot_t::absolut_pos_px

Absolute position of the robot in pixels, origin of ordinates is the left top corner of the labyrinth

Definition at line 78 of file robots.h.

float robot_t::angle

Orientation angle of the robot in degree.

Definition at line 85 of file robots.h.

Point robot_t::center

The center position of the robot in pixels.

Definition at line 64 of file robots.h.

Point robot_t::center_last_frame

Position f the robot within the last frame.

Definition at line 111 of file robots.h.

PosType robot_t::direction

Orientation angle of the robot, discretised in 4 directions (p_top, p_bottom, p_left, p_right)

Definition at line 89 of file robots.h.

float robot_t::dist_blue_white

Distance from the blue LED to the white LED.

Definition at line 105 of file robots.h.

float robot_t::dist_red_white

Distance from the red LED to the white LED.

Definition at line 108 of file robots.h.

Point robot_t::field_idx

The index of the nearest field to the robot.

Definition at line 70 of file robots.h.

long long robot_t::last_seen

Number of the frame where the robot was last found.

Definition at line 114 of file robots.h.

led_t robot_t::led_blue

The blue LED at left front position.

Definition at line 58 of file robots.h.

led_t robot_t::led_red

The red LED at right front position.

Definition at line 61 of file robots.h.

led_t robot_t::led_white

The third white LED to distinguish different robots.

Definition at line 98 of file robots.h.

string robot_t::name

Name of the robot.

Definition at line 92 of file robots.h.

float robot_t::radius

The radius of a circle around the robot.

Definition at line 67 of file robots.h.

float robot_t::ratio

Ratio of the distance from the blue LED to the white LED and the distance from the red LED to the white LED

Definition at line 102 of file robots.h.

Point2f robot_t::relative_pos

Relative distance of the robot to the nearest field center point measured in field widths

Definition at line 74 of file robots.h.

bool robot_t::third_led_found

Whether a third white LED was found.

Definition at line 95 of file robots.h.

int robot_t::tmp_value

To store temporary information about a robot, e.g. within loops.

Definition at line 117 of file robots.h.


The documentation for this struct was generated from the following file: