pyrobopath.toolpath_scheduling.schedule.ToolpathSchedule#
- class pyrobopath.toolpath_scheduling.schedule.ToolpathSchedule[source]#
Bases:
ScheduleMethods
add_eventadd_eventsdurationend_timeSamples the state (position) in the toolpath schedule at time
mergen_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- get_state(time, default: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None) ndarray[tuple[Any, ...], dtype[_ScalarT]] | None[source]#
Samples the state (position) in the toolpath schedule at time
- slice(t_start, t_end) Schedule#
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]#
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.