Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d
Parent 8a4624e7
Child 479d25d8

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/behaviors/Odometry.cpp
4 4
using namespace std;
5 5

  
6 6
/** Set up the odometry node and prepare communcations over ROS */
7
Odometry::Odometry(string scoutname):Behavior(scoutname, "odometry")
7
Odometry::Odometry(string scoutname, Sensors* sensors):Behavior(scoutname, 
8
                                                "odometry", sensors)
8 9
{
9 10
  scout_pos = new pos;
10 11
}

Also available in: Unified diff