Revision d140fd71
Added Sensors class that abstracts away sensors from behaviors. Stops creating
duplicated sensors for each scout.
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