Closed alberthli closed 1 year ago
Thanks @alberthli, for this very detailed issue with a reproducible example. I've tried on my Mac, and I could not reproduce your issue.
First step, could you start in a clean Python environment (e.g., you can try with a clean conda env). Second step, you can share a docker image to help us investigate the bug.
You're creating the Pinocchio data and then modifying the Pinocchio model. Have you tried to create the Pinocchio data after modifying its model?
Carlos is right, I miss this point. Thanks Carlos.
You're completely correct - rookie mistake on my part, thank you! I had decided to add all of these frames in after I had already coded up many other things and forgot to do it before I initialized the data.
Bug description
When getting frame placements on a simple example script, I get flaky errors of different type. I'm wondering whether I'm doing something obviously wrong - at the very least, a descriptive error message should be shown if possible.
Expected behavior
I should be able to use the
getFramePlacements
function without error using the workflow explained in examples and documentation.Reproduction steps
I'm using the following script and Pinocchio version 2.6.19 installed from
pip
and Python 3.10.4. In the directory containing the script, I placed theur_description
directory from example-robot-data. I modified the paths of the URDF to respect this local directory structure for reproducibility. A zip file with the below script + the relevant files is attached: issue.zipSystem
Output of
lscpu
: