Revision 4026134b
Added Behavior::wait() to spinOnce for a duration.
Also added maze_solve_simple which always turns right.
scout/libscout/src/Behavior.h | ||
---|---|---|
56 | 56 |
typedef ros::Time Time; |
57 | 57 |
typedef ros::Duration Duration; |
58 | 58 |
|
59 |
#define WAIT_HZ 100 // Frequency of spinOnce() calls in wait() |
|
60 |
|
|
59 | 61 |
class Behavior |
60 | 62 |
{ |
61 | 63 |
public: |
... | ... | |
98 | 100 |
static bool ok(); |
99 | 101 |
static void spin(); |
100 | 102 |
static void spinOnce(); |
103 |
|
|
104 |
static void wait(float duration); |
|
101 | 105 |
}; |
102 | 106 |
|
103 | 107 |
#endif |
Also available in: Unified diff