pyrobopath.scheduling.schedule.Schedule#

class pyrobopath.scheduling.schedule.Schedule[source]#

Bases: object

Methods

add_event

add_events

duration

end_time

merge

n_events

offset

slice

Returns a new schedule with events that end at/after t_start and start at/before t_end

slice_ind

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.