Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d

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/Odometry.h
2 2
#define _ODOMETRY_H_
3 3

  
4 4
#include "../Behavior.h"
5
#include "../Sensors.h"
5 6

  
6 7

  
7 8
#define WHEEL_RADIUS  5
......
21 22
  public:
22 23

  
23 24
  /** Set up the odometry node and prepare communcations over ROS */
24
  Odometry(std::string scoutname);
25
  Odometry(std::string scoutname, Sensors* sensors);
25 26

  
26 27
  /** Query encoders and estimate position based on encoder reading */
27 28
  void get_position();

Also available in: Unified diff