Revision 4c9fb6ba
Update smart_runaround and add old files.
scout/libscout/src/test_behaviors/maze_solve.h | ||
---|---|---|
26 | 26 |
#ifndef _MAZE_SOLVE_H_ |
27 | 27 |
#define _MAZE_SOLVE_H_ |
28 | 28 |
|
29 |
#include <stdio.h> |
|
29 | 30 |
#include "../behaviors/line_follow.h" |
30 | 31 |
|
31 | 32 |
class maze_solve: public line_follow |
... | ... | |
35 | 36 |
line_follow(scoutname, "maze_solve", sensors) {}; |
36 | 37 |
void run(); |
37 | 38 |
private: |
38 |
bool solve(int row, int col, int dir); |
|
39 |
void turn_from_to(int current_dir, int intended_dir); |
|
40 |
bool look_around(int row, int col, int dir); |
|
39 |
void spin_for(double duration); |
|
41 | 40 |
bool at_destination(); |
42 | 41 |
|
42 |
Duration sonar_update_time; |
|
43 |
|
|
43 | 44 |
int map[60][60]; |
44 | 45 |
}; |
45 | 46 |
#endif |
Also available in: Unified diff