Revision dcf49526
Overwrote the ROS sigint handler so now behaviours stop and die and stop motors upon exiting.
scout/libscout/src/behaviors/pause_scout.cpp | ||
---|---|---|
28 | 28 |
void pause_scout::run() |
29 | 29 |
{ |
30 | 30 |
Duration delay(0.2); |
31 |
for(int i=0; i < 500; i++) |
|
31 |
for(int i=0; i < 500 && ok(); i++)
|
|
32 | 32 |
{ |
33 | 33 |
motors->set_sides(0, 0, MOTOR_ABSOLUTE); |
34 | 34 |
delay.sleep(); |
Also available in: Unified diff