Revision a2b7e8f1
Registered a default callback for wireless receiver. Also added default virtual constructor.
scout/libscout/src/Behavior.h | ||
---|---|---|
63 | 63 |
Behavior(std::string scoutname, std::string name, |
64 | 64 |
Sensors * sensor); |
65 | 65 |
|
66 |
virtual ~Behavior(); |
|
67 |
|
|
66 | 68 |
/// Extended by subclasses to actually run the behavior. |
67 | 69 |
virtual void run() = 0; |
68 | 70 |
|
... | ... | |
85 | 87 |
WirelessSender * wl_sender; |
86 | 88 |
WirelessReceiver * wl_receiver; |
87 | 89 |
|
90 |
// Default callback for wireless receiver. |
|
91 |
void default_callback(std::vector<uint8_t> data); |
|
92 |
|
|
88 | 93 |
// Wrappers for ROS functions |
89 | 94 |
bool ok(); |
90 | 95 |
void spin(); |
Also available in: Unified diff