Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d
Parent 8a4624e7
Child 479d25d8

Added by Yuyang over 11 years ago

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

View differences:

scout/libscout/src/behaviors/WH_Robot.cpp
2 2
#include "../helper_classes/Order.h"
3 3

  
4 4
/** @Brief: warehouse robot constructor **/
5
WH_Robot::WH_Robot(std::string scoutname):line_follow(scoutname) 
5
WH_Robot::WH_Robot(std::string scoutname, Sensors* sensors):
6
            line_follow(scoutname, sensors) 
6 7
{
7
  nav_map = new navigationMap(scoutname);
8
  nav_map = new navigationMap(scoutname, sensors);
8 9
  curr_task = DEFAULT_TASK;
9 10
  name = scoutname;
10 11
  reg_failed = 1;

Also available in: Unified diff