Differentiable Convex Modeling for Robotic Planning and Control