strands-project / strands_executive

Executive control code for STRANDS robots.
10 stars 19 forks source link

executor should check travel time before opening window #281

Closed hawesie closed 7 years ago

hawesie commented 7 years ago

currently travel time is assumed to happen within the window.

gestom commented 7 years ago

So what will happen if I submit a task that has start_after = 0, max_duration = 400 and end_before = 500 and the expected nav time will be 200 ? Is the task dropped ?

hawesie commented 7 years ago

It depends on the current time. If the current time is 0 then yes, as it's impossible to get to the location and do the task in the window. If the current time is -100 then it will not get dropped.

hawesie commented 7 years ago

(this was the case in the previous scheduler implementation too)

gestom commented 7 years ago

Would it be possible to have another task parameter called 'min_duration', which, if set to a nonzero value, would be used instead of max_duration for this window check?