Statistics
| Branch: | Revision:

scoutos / scout / libscout / src / BehaviorList.cpp @ 754da79f

History | View | Annotate | Download (942 Bytes)

1
#include "BehaviorList.h"
2

    
3

    
4
BehaviorList::BehaviorList(std::string scoutname, Sensors * sensor)
5
{
6
  behavior_list.push_back((Behavior*)new pause_scout(scoutname, sensor));
7
  behavior_list.push_back((Behavior*)new draw_cw_circle(scoutname,sensor));
8
  behavior_list.push_back((Behavior*)new draw_ccw_circle(scoutname, sensor));
9
  behavior_list.push_back((Behavior*)new Odometry(scoutname, sensor));
10
  behavior_list.push_back((Behavior*)new navigationMap(scoutname, sensor));
11
  behavior_list.push_back((Behavior*)new Scheduler(scoutname, sensor));
12
  behavior_list.push_back((Behavior*)new WH_Robot(scoutname, sensor));
13
  behavior_list.push_back((Behavior*)new line_follow(scoutname, sensor));
14
  behavior_list.push_back((Behavior*)new wl_test(scoutname, sensor));
15
  behavior_list.push_back((Behavior*)new maze_solve(scoutname, sensor));
16
  return;
17
}
18

    
19
BehaviorList::~BehaviorList()
20
{
21
  while(!behavior_list.empty())
22
    behavior_list.pop_back();
23
}