Question about pipeline init
function
#340
-
Hi, I am working with the Ant environment and the generalized backend and want to use the Jacobians of the Ant's step function for trajectory optimization. The problem is that the state representation, while compatible with JAX's autodiff, is huge, such that the Jacobians are larger than 1000x1000. It seems to me that the "real" underlying system state is only init(sys, state.q, state.qd) == state if def f(q, qd, u):
return step(init(sys, q, qd), u) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @onnoeberhard, state has more than just q, qd for 2 reasons: [1] speed up computation in step (mass_mx_inv not fully being recomputed), and [2] for book-keeping within the codebase. You could conceivably fork the code to rerun init on every timestep, but I'd expect this to be slower for every step computation. Hope that answers the question |
Beta Was this translation helpful? Give feedback.
Hi @onnoeberhard, state has more than just q, qd for 2 reasons: [1] speed up computation in step (mass_mx_inv not fully being recomputed), and [2] for book-keeping within the codebase. You could conceivably fork the code to rerun init on every timestep, but I'd expect this to be slower for every step computation. Hope that answers the question