Project

General

Profile

Revision 92d4adda

ID92d4adda96e773ef6c22696bdbf25ddebf4c6c0e

Added by Priya about 6 years ago

added get worst case time to wh_robot

View differences:

scout/libscout/src/behaviors/WH_Robot.cpp
9 9
    scheduler = Scheduler(scoutname);
10 10
}
11 11

  
12
Time WH_Robot::get_wc_time(State dest)
12
Duration WH_Robot::get_wc_time(State start_state, State target_state)
13 13
{
14
    //TODO: integrate Lalitha's code
15
    return 0.0;
14
  return nav_map.get_worst_case_time(start_state, target_state);
16 15
}
17 16

  
18 17
int WH_Robot::exec_task()
scout/libscout/src/behaviors/WH_Robot.h
18 18
        navigationMap nav_map;
19 19
        Scheduler scheduler;
20 20

  
21
        Time get_wc_time(State dest);
21
        Duration get_worst_case_time(State start_state, State target_state);
22 22
        int exec_task();
23 23

  
24 24
    public:

Also available in: Unified diff