Project

General

Profile

Revision dcf49526

IDdcf49526269a0df9a064ad37dfff13efdea10d97
Parent 679f4e26
Child 2e8030ea

Added by Priya about 11 years ago

Overwrote the ROS sigint handler so now behaviours stop and die and stop motors upon exiting.

View differences:

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