Revision 4c9fb6ba
Update smart_runaround and add old files.
scout/libscout/src/test_behaviors/smart_runaround.h | ||
---|---|---|
26 | 26 |
#ifndef _SMART_RUNAROUND_H_ |
27 | 27 |
#define _SMART_RUNAROUND_H_ |
28 | 28 |
|
29 |
#include <math.h> |
|
29 | 30 |
#include "../behaviors/line_follow.h" |
30 | 31 |
/* Details about map: |
31 | 32 |
* 1 meter = 200 pixels |
... | ... | |
45 | 46 |
void run(); |
46 | 47 |
private: |
47 | 48 |
int choose_direc(int row, int col, int info); |
48 |
bool solve(int row, int col, int dir); |
|
49 | 49 |
void turn_from_to(int current_dir, int intended_dir); |
50 | 50 |
bool look_around(int row, int col, int dir); |
51 | 51 |
bool at_destination(); |
... | ... | |
60 | 60 |
* map even if it starts at a boundary and goes to |
61 | 61 |
* the other side. |
62 | 62 |
* Rows top to bottom, and columns left to right |
63 |
*/ |
|
63 |
*/
|
|
64 | 64 |
int map[MAP_LENGTH][MAP_LENGTH]; |
65 | 65 |
}; |
66 | 66 |
#endif |
Also available in: Unified diff