#include <libplayerc++/playerc++.h>#include <iostream>#include <scorpion.h>Include dependency graph for main.cc:

Go to the source code of this file.
Classes | |
| struct | side |
Enumerations | |
| enum | direction { NORTH, NWEST, NEAST, WEST, EAST, SWEST, SEAST, SOUTH } |
| enum | { LEFT, MIDDLE, RIGHT } |
| enum | behaviour { FIND_WALL, FACE_WALL, FOLLOW_WALL, FOLLOW_MIDDLE } |
Functions | |
| PlayerClient | robot ("localhost") |
| Position2dProxy | pp (&robot, 0) |
| IrProxy | ir (&robot, 0) |
| static double | side_avg (enum direction direction) |
| static double | has_obstacles (enum direction direction) |
| int | main (int argc, char **argv) |
Variables | |
| static struct side | sides [] |
| enum behaviour | behaviour = FIND_WALL |
| player_pose_t | pose |
| enum behaviour |
| enum direction |
| static double has_obstacles | ( | enum direction | direction | ) | [static] |
Definition at line 80 of file main.cc.
References side_avg().
Referenced by main().
Here is the call graph for this function:

| IrProxy ir | ( | & | robot, | |
| 0 | ||||
| ) |
Referenced by main(), ERSP::Main(), and side_avg().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 85 of file main.cc.
References EAST, FACE_WALL, FIND_WALL, FOLLOW_MIDDLE, FOLLOW_WALL, has_obstacles(), NORTH, pose, pp(), robot(), SOUTH, and WEST.
Here is the call graph for this function:

| Position2dProxy pp | ( | & | robot, | |
| 0 | ||||
| ) |
Referenced by main().
| PlayerClient robot | ( | "localhost" | ) |
Referenced by main().
| static double side_avg | ( | enum direction | direction | ) | [static] |
Definition at line 72 of file main.cc.
References ir(), LEFT, MIDDLE, RIGHT, side::sensors, and sides.
Referenced by has_obstacles().
Here is the call graph for this function:

Initial value:
{
{ NORTH, { SCORPION_IR_TE_NNW, SCORPION_IR_BN_N, SCORPION_IR_TW_NNE } },
{ EAST, { SCORPION_IR_BW_S, SCORPION_IR_BS_W, SCORPION_IR_BN_WNW } },
{ WEST, { SCORPION_IR_BE_S, SCORPION_IR_BS_E, SCORPION_IR_BN_ENE } },
{ SOUTH, { SCORPION_IR_BW_S, SCORPION_IR_BS_E, SCORPION_IR_BN_ENE } },
}
Definition at line 30 of file main.cc.
Referenced by side_avg().
1.5.1