Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error getting to run an example #2451

Open
emrecemal opened this issue Oct 11, 2024 · 1 comment
Open

Error getting to run an example #2451

emrecemal opened this issue Oct 11, 2024 · 1 comment

Comments

@emrecemal
Copy link

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?

@MegMll
Copy link
Collaborator

MegMll commented Oct 11, 2024

Hello,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants