Operations on PiecewisePolynomials with different breaks #22100
Labels
component: planning and control
Optimization-based planning and control, and search- and sampling-based planning
type: feature request
Currently operations such as addition on piecewise polynomials are supported only if the objects have the same breaks. There have been discussions about the need for other operations such as stacking multiple piecewise polynomials into a new one.
In order to support these operations, I am proposing some methods:
AddBreak
: which adds "fake" breaks into a pp trajectory without modifying its values at anytime.Trim
: extracting a timed slice of a piecewise trajectorytrimmed_pp = pp[t_1,t_2]
.I have the features above in #22099
In future, I also plan to include:
StackedTrajectory
as it allows the user the maintain the object as piecewise polynomial).+=
when pp objects don't have the same breaks.Let me know your thoughts @RussTedrake
The text was updated successfully, but these errors were encountered: