scoutos / scout / libscout / src / BehaviorList.h @ 7f2ccb46
History | View | Annotate | Download (1.54 KB)
1 | 6350051e | Alex | /**
|
---|---|---|---|
2 | ******************************************************************************
|
||
3 | * WARNING: THIS IS AN AUTOGENERATED FILE!
|
||
4 | *
|
||
5 | * Editing this file is USELESS. It will be overwritten during the build.
|
||
6 | * To properly edit this file, edit its corresponding *.template.* file, which
|
||
7 | * a script run by CMake uses to generate this file.
|
||
8 | *
|
||
9 | * This file was generated via rules in src/generate_behavior_lists.py.
|
||
10 | *
|
||
11 | * Please see that file for a description of syntax and procedure for
|
||
12 | * creating auto-generated files.
|
||
13 | *
|
||
14 | * THIS WARNING IS LONG TO MAKE SURE IT GETS YOUR ATTENTION!
|
||
15 | * THANK YOU.
|
||
16 | *****************************************************************************
|
||
17 | */
|
||
18 | |||
19 | c239584b | Priya | #ifndef _BEHAVIOR_LIST_H_
|
20 | #define _BEHAVIOR_LIST_H_
|
||
21 | |||
22 | #include "Behavior.h" |
||
23 | 6350051e | Alex | #include "Sensors.h" |
24 | #include "behaviors/pause_scout.h" |
||
25 | f34d6221 | Priya | #include "behaviors/Odometry.h" |
26 | 6350051e | Alex | #include "behaviors/draw_ccw_circle.h" |
27 | #include "behaviors/draw_cw_circle.h" |
||
28 | #include "behaviors/line_follow.h" |
||
29 | cccc25c9 | Priya | #include "behaviors/navigationMap.h" |
30 | 5d0687a9 | Priya | #include "behaviors/wl_test.h" |
31 | 6350051e | Alex | #include "test_behaviors/Scheduler.h" |
32 | #include "test_behaviors/WH_Robot.h" |
||
33 | #include "test_behaviors/maze_solve.h" |
||
34 | 7f2ccb46 | Alex | #include "test_behaviors/smart_runaround.h" |
35 | c239584b | Priya | |
36 | faa11f08 | Priya | template<typename T> Behavior* behavior(std::string scoutname, Sensors* sensors){ return (Behavior*)new T(scoutname, sensors); }
|
37 | |||
38 | typedef Behavior* (* behavior_func)(std::string, Sensors*);
|
||
39 | |||
40 | c239584b | Priya | class BehaviorList |
41 | { |
||
42 | public:
|
||
43 | faa11f08 | Priya | std::vector<behavior_func> behavior_list; |
44 | c239584b | Priya | |
45 | //Constructor. Initializes behavior_list
|
||
46 | faa11f08 | Priya | BehaviorList(); |
47 | c239584b | Priya | //Destructor. Frees behavior_list;
|
48 | ~BehaviorList(); |
||
49 | }; |
||
50 | |||
51 | #endif |