Skip to content
Discussion options

You must be logged in to vote

Hello @Zionshang !

There is a similar issue with CasADi where differentiating an expression by the configuration vector q results (for non-Euclidean configuration spaces, e.g. those with floating bases for quadrupeds, bipeds, quadrotors...) in a Jacobian that has the wrong dimensions.

What we usually do for CasADi and CppAD is write the expression using another, dependent expression $\tilde{q} = q_0 \oplus \mathrm{\delta q}$ where $\mathrm{\delta q} \in \mathbf{R}^{n_v}$ is gonna be the (Euclidean space) variable with respect to which we differentiate (and evaluate the derivative at $\delta\mathrm{q} = 0$). What we get then is

$$ \frac{\partial f(\tilde q)} {\partial \delta \mathrm{q} } \…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ManifoldFR
Comment options

Answer selected by Zionshang
@Zionshang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants