I'm currently working on a project that requires me to solve for a few joint configurations that determine a path my robot will take. The joint configurations have some constraints and costs (such as distance and gaze constraints), but I would like to add a cost for some idea of "smoothness" of the path.
To accomplish this, I wanted to create a BsplineTrajectory_
, and then get the strain energy. I don't currently see a way to do this though. The only thing I can think of is to reverse engineer all of the polynomials using a bunch of queries to EvaluateCurve
, and then use that to analytically determine the average curvature. This seems a little messy though.
I wanted to know if there is currently a way in Drake for me to compute a cost akin to strain energy easily? Otherwise, I was wondering if Drake could provide a strain_energy
function, or if not simply a function to get the coefficients of the polynomials?