Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (869 Bytes)

1 c239584b Priya
#include "BehaviorList.h"
2
3 d140fd71 Yuyang
4
BehaviorList::BehaviorList(std::string scoutname, Sensors * sensor)
5 c239584b Priya
{
6 9a88eb2e Priya
  behavior_list.push_back((Behavior*)new pause_scout(scoutname, sensor));
7 d140fd71 Yuyang
  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 c239584b Priya
  return;
16
}
17
18
BehaviorList::~BehaviorList()
19
{
20 c460d4c2 Priya
  while(!behavior_list.empty())
21 c239584b Priya
    behavior_list.pop_back();
22
}