Revision b00761a0
ID | b00761a0e88f934a309a939b653d9f441b127ae8 |
Updated ButtonControl and SonarControl.
Finally, the behavior compiles. Had to fix a lot of problems involving misunderstandings with Publisher/Client/ServiceServer/ServiceClient confusion.
We can now run priya_behavior as an executable, though the process for generating behavior executables still needs some work.
scout/buttons/src/buttons.h | ||
---|---|---|
32 | 32 |
* |
33 | 33 |
* @author Colony Project, CMU Robotics Club |
34 | 34 |
* @author Priyanka Deo |
35 |
**/ |
|
35 |
* @author Alex Zirbel |
|
36 |
*/ |
|
36 | 37 |
|
37 | 38 |
#ifndef _BUTTONS_H_ |
38 | 39 |
#define _BUTTONS_H_ |
39 | 40 |
|
40 |
#include "buttons/query_buttons.h" |
|
41 | 41 |
#include "buttons/button_event.h" |
42 | 42 |
|
43 |
#define QUEUE_SIZE 10 |
|
43 | 44 |
#define BUTTON_PRESSED 0x1 |
44 | 45 |
|
45 | 46 |
/** @brief Initialize the buttons module and driver. **/ |
46 | 47 |
int main(int argc, char **argv); |
47 | 48 |
|
48 |
/** @brief Responds to topic to notify of button events. **/ |
|
49 |
void event_button(const buttons::button_event::ConstPtr& msg); |
|
50 |
|
|
51 |
/** @brief Responds to service to query buttons. **/ |
|
52 |
bool buttons_query(buttons::query_buttons::Request &req, |
|
53 |
buttons::query_buttons::Response &res); |
|
54 |
|
|
55 | 49 |
#endif |
Also available in: Unified diff