Closed yangwill closed 3 years ago
Seems OK--though if this is a computational bottleneck we could easily add EvalDerivative
to ExponentialPlusPiecewisePolynomial
I'm not sure we could avoid the main computational bottleneck which is the derivative of the exponential part (https://github.com/RobotLocomotion/drake/blob/master/common/trajectories/exponential_plus_piecewise_polynomial.cc#L44), the piecewise polynomial part is quick for our code because I think we only construct one segment.
I agree that this is a ugly fix though.
ExponentialPlusPiecewisePolynomial
extends fromPiecewiseTrajectory
and notPiecewisePolynomial
and therefore does not supportEvalDerivative
. This adds an edge case just forExponentialPlusPiecewisePolynomial
which is used bylipm_traj_gen.cc
This change is