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

Add ROBOTOLOGY_USES_MUJOCO option that builds mujoco C/C++ library and mujoco-simulink-blockset #1431

Merged
merged 17 commits into from
Jun 27, 2023

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Jun 20, 2023

First attempt to MuJoCo integration in the superbuild:

If you want to test the PR with the MATLAB/Simulink integration of MuJoCo (i.e. mujoco-simulink-blockset), you can just download this branch, enable ROBOTOLOGY_USES_MUJOCO and ROBOTOLOGY_USES_MATLAB, compile, run the setup.** script, open MATLAB and then run mj_gettingStarted . A simulation like the following (with integrated visualization) should open:

mujoco_simulink

@traversaro
Copy link
Member Author

Recap:

@traversaro
Copy link
Member Author

Even by swiching to MuJoCo 2.3.6, we have the same problem of google-deepmind/mujoco#862 :

2023-06-21T14:02:12.5669002Z     glad.c
2023-06-21T14:02:12.8992033Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(487,17): error C2059: syntax error: '/' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.8996020Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(502,17): error C2059: syntax error: '/' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.8997828Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(530,17): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9000631Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(531,13): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9002476Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(533,9): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9005184Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(534,5): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9009286Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(665,16): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9014649Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(950,16): error C2079: 'varValue' uses undefined struct 'tagVARIANT' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9144292Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(319,24): error C2059: syntax error: '/' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9167584Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(378,37): error C2371: 'pvarVal': redefinition; different basic types [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9168932Z   C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(510): message : see declaration of 'pvarVal' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj]
2023-06-21T14:02:12.9169984Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(379,9): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9171116Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(380,5): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9172185Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(383,3): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:12.9173661Z C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(384,1): error C2059: syntax error: '}' [D:\a\robotology-superbuild\robotology-superbuild\build\src\mujoco\mujoco.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\mujoco.vcxproj]
2023-06-21T14:02:13.0115123Z     render_context.c
2023-06-21T14:02:13.2826779Z     render_gl2.c
2023-06-21T14:02:13.3857413Z     render_gl3.c
2023-06-21T14:02:13.4896439Z     render_util.c
2023-06-21T14:02:13.5641118Z     ui_main.c
2023-06-21T14:02:13.6706705Z     Generating Code...

@traversaro
Copy link
Member Author

Even by swiching to MuJoCo 2.3.6, we have the same problem of deepmind/mujoco#862 :

I proposed a solution in google-deepmind/mujoco#946 and I backported it to the ami-iit/integration236 branch.

@traversaro
Copy link
Member Author

Even by swiching to MuJoCo 2.3.6, we have the same problem of deepmind/mujoco#862 :

I proposed a solution in deepmind/mujoco#946 and I backported it to the ami-iit/integration236 branch.

That does not work. I just disable that option on the Visual Studio 2019 job.

@traversaro traversaro merged commit b5e3381 into master Jun 27, 2023
@traversaro traversaro deleted the addmujoco branch June 27, 2023 06:41
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

Successfully merging this pull request may close these issues.

1 participant