Statistics
| Branch: | Revision:

scoutos / scout / libscout / src / BehaviorList.cpp @ 9a88eb2e

History | View | Annotate | Download (869 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
  return;
16
}
17

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