Project

General

Profile

Revision 4026134b

ID4026134b3992a1c11aa320bef116820fab7547b0
Parent 4bdd00ba
Child c33e5aa4

Added by Alex Zirbel about 11 years ago

Added Behavior::wait() to spinOnce for a duration.

Also added maze_solve_simple which always turns right.

View differences:

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