Revision dcf49526 scout/libscout/src/behaviors/navigationMap.cpp

View differences:

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