Statistics
| Branch: | Revision:

root / scout / libscout / src / BehaviorList.cpp @ d140fd71

History | View | Annotate | Download (795 Bytes)

1 c239584b Priya
#include "BehaviorList.h"
2
3 d140fd71 Yuyang
4
BehaviorList::BehaviorList(std::string scoutname, Sensors * sensor)
5 c239584b Priya
{
6 d140fd71 Yuyang
  behavior_list.push_back((Behavior*)new draw_cw_circle(scoutname,sensor));
7
  behavior_list.push_back((Behavior*)new draw_ccw_circle(scoutname, sensor));
8
  behavior_list.push_back((Behavior*)new Odometry(scoutname, sensor));
9
  behavior_list.push_back((Behavior*)new navigationMap(scoutname, sensor));
10
  behavior_list.push_back((Behavior*)new Scheduler(scoutname, sensor));
11
  behavior_list.push_back((Behavior*)new WH_Robot(scoutname, sensor));
12
  behavior_list.push_back((Behavior*)new line_follow(scoutname, sensor));
13
  behavior_list.push_back((Behavior*)new wl_test(scoutname, sensor));
14 c239584b Priya
  return;
15
}
16
17
BehaviorList::~BehaviorList()
18
{
19 c460d4c2 Priya
  while(!behavior_list.empty())
20 c239584b Priya
    behavior_list.pop_back();
21
}