Revision 6350051e
ID | 6350051e42d19a7a35b1e6bf62586ee87dba61bf |
Added a script to auto-generate BehaviorList files.
This includes some sub-changes: * Restructured behaviors/ folder into behaviors/, test_behaviors/ and limbo_behaviors/ * Added a new CMakeLists.txt that automatically finds behaviors in their folders * Removed the obsolete trafficNavigtaion.* * Added a new generator to GUI.py that looks in the behaviors folder for the behaviors automatically.
scout/libscout/src/BehaviorList.cpp | ||
---|---|---|
1 |
#include "BehaviorList.h" |
|
1 |
/** |
|
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 |
*/ |
|
2 | 18 |
|
19 |
#include "BehaviorList.h" |
|
3 | 20 |
|
4 | 21 |
BehaviorList::BehaviorList() |
5 | 22 |
{ |
6 | 23 |
behavior_list.push_back(behavior<pause_scout>); |
7 |
behavior_list.push_back(behavior<draw_cw_circle>); |
|
8 |
behavior_list.push_back(behavior<draw_ccw_circle>); |
|
9 | 24 |
behavior_list.push_back(behavior<Odometry>); |
25 |
behavior_list.push_back(behavior<draw_ccw_circle>); |
|
26 |
behavior_list.push_back(behavior<draw_cw_circle>); |
|
27 |
behavior_list.push_back(behavior<line_follow>); |
|
10 | 28 |
behavior_list.push_back(behavior<navigationMap>); |
29 |
behavior_list.push_back(behavior<wl_test>); |
|
11 | 30 |
behavior_list.push_back(behavior<Scheduler>); |
12 | 31 |
behavior_list.push_back(behavior<WH_Robot>); |
13 |
behavior_list.push_back(behavior<line_follow>); |
|
14 |
behavior_list.push_back(behavior<wl_test>); |
|
15 | 32 |
behavior_list.push_back(behavior<maze_solve>); |
16 | 33 |
return; |
17 | 34 |
} |
Also available in: Unified diff