Revision cc558a8d
Modified the Behaviors to take a scoutname.
Scoutname now specifies which scout the behavior will affect. Scoutname must be passed to the constructors of each control module (some of which are now in need of modification), so that they can publish to the correct topic.
I also modified the constants file so that it is no longer exported. We should consider making this a full class with static exported functions (or a namespace).
scout/libscout/src/MotorControl.h | ||
---|---|---|
39 | 39 |
#define _MOTOR_CONTROL_H_ |
40 | 40 |
|
41 | 41 |
#include <ros/ros.h> |
42 |
/// @TODO maybe not so good! Then packages have to depend on libscout. |
|
43 |
#include <libscout/constants.h> |
|
44 | 42 |
#include <motors/query_motors.h> |
45 | 43 |
#include <motors/set_motors.h> |
46 | 44 |
|
45 |
#include "constants.h" |
|
46 |
|
|
47 | 47 |
/* Motor-specific defines */ |
48 | 48 |
#define MOTOR_ALL 0xF |
49 | 49 |
#define MOTOR_ALL_REV 0xF0 |
Also available in: Unified diff