pyrobopath.scheduling.schedule.Schedule#
- class pyrobopath.scheduling.schedule.Schedule[source]#
Bases:
objectMethods
add_eventadd_eventsdurationend_timemergen_eventsoffsetReturns a new schedule with events that end at/after t_start and start at/before t_end
Returns the indices of events that end at/after t_start and start at/before t_end
start_time- slice(t_start, t_end) Schedule[source]#
Returns a new schedule with events that end at/after t_start and start at/before t_end
{e | e.start <= t_end ∧ e.end >= t_start for all e in schedule}
Note: Events are not sliced. If an event has any time in [t_start, t_end], the original event is included in its entirety.
- slice_ind(t_start, t_end) List[int][source]#
Returns the indices of events that end at/after t_start and start at/before t_end
{i | e[i].start <= t_end ∧ e[i].end >= t_start for all e in schedule}
Note: Events are not sliced. If an event has any time in [t_start, t_end], the original event is included in its entirety.