Closed huaijiangzhu closed 3 years ago
Thanks for your contribution! Approving with a few small comments.
I don't see a PR for bullet_utils
yet. Are you planning to create a pull request for pinocchio_bullet
as well and then rename the repo?
Thanks for your contribution! Approving with a few small comments.
I don't see a PR for
bullet_utils
yet. Are you planning to create a pull request forpinocchio_bullet
as well and then rename the repo?
Max and I agreed that we will simply create a new repo for bullet_utils to spare the hustle. What do you think?
Max and I agreed that we will simply create a new repo for bullet_utils to spare the hustle. What do you think?
That's fine with me. We should have the new bullet_utils in place before merging this PR.
I found the issue - in the test code of kino-dyn-opt, we use eigenpy.switchToNumpyMatrix() and pinocchio.switchToNumpyMatrix(). If I comment this out all the tests pass without problem and the error is not raised anymore. However I do not know the consequences of this for the rest of the code. Anyone has any thoughts on this?
Our code is intended to work with eigenpy.switchToNumpyArrat()
by default by now (which is also the default by pinocchio and what we agreed on a while back). If you remove the line and thing still work, then it's all good ;)
Some background what goes on under the hood: Eigenpy allows to return np.matrix
or np.array
for Eigen matrixes. It turns out that returning np.array
is 1) faster and 2) the future as the use of np.matrix
is deprecated. It used to be the default that eigenpy/pinocchio returned np.matrix
es. This is no longer the default and it returns np.array
s by now.
switchToNumpyMatrix
You are right this is the bug! This was used for historical reasons but must be deleted (see previous message of Julian) The last versionS of pinocchio switched to numpy.array hence should be compatible with the config files.
Description
How I Tested
Do not merge before
I fulfilled the following requirements