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

MPR solver is removed from Mujoco, resulting c++ compiling failed #22

Open
Revindell opened this issue Sep 5, 2024 · 4 comments
Open

Comments

@Revindell
Copy link

Revindell commented Sep 5, 2024

Hi,

in the newest Mujoco release, the MPR solver is removed from mjOption (see link), which will result in an error when compiling the C++ library.

/unitree_mujoco/simulate/src/mujoco/simulate.cc: In function ‘void {anonymous}::MakePhysicsSection(mujoco::Simulate*, int)’: /home/deyu.fu/unitree_mujoco/simulate/src/mujoco/simulate.cc:748:48: error: ‘mjOption’ {aka ‘struct mjOption_’} has no member named ‘mpr_iterations’; did you mean ‘ls_iterations’? 748 | {mjITEM_EDITINT, "MPR Iter", 2, &(opt->mpr_iterations), "1 0 1000"}, | ^~~~~~~~~~~~~~ | ls_iterations

@toushei
Copy link

toushei commented Sep 7, 2024

Try using the older version of Mujoco 3.2.1. It seems like the developers used this version specifically since otherwise it gives library/header version mismatches.

@KanonWY
Copy link

KanonWY commented Sep 8, 2024

I made some modifications according to the error report, and it can run successfully. I hope it helps. maybe you can use Mujoco3.2.1 just like @toushei des. link

@ZMcc18
Copy link

ZMcc18 commented Oct 16, 2024

The newly installed mujuco version should be 3.2.4, and the error is found to say that there is no such member under the mjOpetion_, you can find the mjOption_ class in mjmodel.h under /usr/local/include/mujuco, and found that the ccd_iterations has been added, and mpr has been deleted, maybe you can try to unitree_mujoco/simulate/src/ Where the mujoco/simulation.cc error is reported, change the corresponding MPR to ccd

@wuyangning
Copy link
Collaborator

We have modified the simulate program based on MuJoCo version 3.2.7 and fixed this problem. See: f5b7837

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

5 participants