pinocchio icon indicating copy to clipboard operation
pinocchio copied to clipboard

Error getting to run an example

Open emrecemal opened this issue 1 year ago • 1 comments

Hello,

I freshly created a conda environment, and install pinocchio, and I wanted to run this example: examples/cassie-simulation.py However, I'm getting this error:

Traceback (most recent call last):
  File "/home/emrecemal/git_ws/check_cassie/main.py", line 30, in <module>
    robot = pinocchio.RobotWrapper.BuildFromSDF(
  File "/home/emrecemal/git_ws/check_cassie/.venv/lib/python3.10/site-packages/pinocchio/robot_wrapper.py", line 53, in BuildFromSDF
    robot.initFromSDF(
  File "/home/emrecemal/git_ws/check_cassie/.venv/lib/python3.10/site-packages/pinocchio/robot_wrapper.py", line 74, in initFromSDF
    model, constraint_models, collision_model, visual_model = buildModelsFromSdf(
  File "/home/emrecemal/git_ws/check_cassie/.venv/lib/python3.10/site-packages/pinocchio/shortcuts.py", line 113, in buildModelsFromSdf
    model, constraint_models = pin.buildModelFromSdf(
AttributeError: module 'pinocchio.pinocchio_pywrap_default' has no attribute 'buildModelFromSdf'. Did you mean: 'buildModelFromUrdf'?

How can I solve it?

emrecemal avatar Oct 11 '24 15:10 emrecemal

Hello,

If you want Sdf support, you need to compile pinocchio from source, because it's not included in the conda package.

MegMll avatar Oct 11 '24 15:10 MegMll

Hello @emrecemal,

Since Pinocchio 3.3.0, the conda package is build with SDF support.

jorisv avatar Nov 08 '24 09:11 jorisv