Open mxgrey opened 8 years ago
@mxgrey: if you aren't already, you might want to take a look at the StateSpace
API that @mkoval and the rest of the PRL put together for aikido
. It is solving a superset of this problem, but this is one of the problems we were addressing:
https://github.com/personalrobotics/aikido/tree/master/aikido/src/statespace
@mkoval: is there a good place to see the high-level discussion (the PR discussion was a bit large). Or any words of advice from our experience?
Currently, we offer a function
Joint::integratePositions(double timestep)
which integrates the Joint's velocity state into the Joint's position state. This is useful for simulation, but for performing inverse kinematics we do not necessarily want to integrate the current velocity directly into the current position. Instead, we want to compute the change in joint positions resulting from some Jacobian-based gradient descent.Therefore, it would be nice to also offer a function like
Or to avoid allocations, maybe
Or we could offer both and have the first one just call the second one.