Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d

Added by Yuyang almost 4 years ago

Added Sensors class that abstracts away sensors from behaviors. Stops creating
duplicated sensors for each scout.

View differences:

scout/libscout/src/BehaviorList.h
10 10
#include "behaviors/Scheduler.h"
11 11
#include "behaviors/WH_Robot.h"
12 12
#include "behaviors/wl_test.h"
13

  
13
#include "Sensors.h"
14 14
class BehaviorList
15 15
{
16 16
  public:
17 17
  std::vector<Behavior*> behavior_list;
18 18

  
19 19
  //Constructor. Initializes behavior_list
20
  BehaviorList(std::string scoutname);
20
  BehaviorList(std::string scoutname, Sensors* sensor);
21 21
  //Destructor. Frees behavior_list;
22 22
  ~BehaviorList();
23 23
};

Also available in: Unified diff