Revision dcf49526
ID | dcf49526269a0df9a064ad37dfff13efdea10d97 |
Overwrote the ROS sigint handler so now behaviours stop and die and stop motors upon exiting.
scout/libscout/src/behaviors/navigationMap.cpp | ||
---|---|---|
191 | 191 |
|
192 | 192 |
ROS_INFO("Worst case time to 16 is %d", get_worst_case_time(curr_state, 6).sec); |
193 | 193 |
|
194 |
for(int i=0; i<path.len; i++) |
|
194 |
for(int i=0; i<path.len && ok(); i++)
|
|
195 | 195 |
{ |
196 | 196 |
update_state(path.path[i]); |
197 | 197 |
ROS_INFO("Made turn %d, at state %d\n", path.path[i], curr_state); |
Also available in: Unified diff