mujoco icon indicating copy to clipboard operation
mujoco copied to clipboard

Build from Source incl. Python Bindings

Open hubernikus opened this issue 1 year ago • 1 comments

Hi,

I'm an engineer and I'm trying to use MuJoCo for a multibody simulation.

I was trying to understand the workings of Mujoco better and investigate some bugs that occurred for me. I've built the project including python bindings from source.

My question is, which buil step do I need to repeat, such that changes in the c-code (e.g., src/xml/xml_api.cc) influence the python built?

And a comment, in the python source build instruction, it would be useful to additionally add, that the general mujoco build needs to be executed, or did I miss something? => After 3. one has to follow the instructions on https://mujoco.readthedocs.io/en/latest/programming/#building-mujoco-from-source right?

Also, the path definition should have an additional keyword export to make the variables to environment variables, right? And why is the variable MUJOCO_PLUGIN_PATH needed? Does it not directly follow from the main repository? Or did I not understand that variable correctly?

hubernikus avatar May 31 '24 14:05 hubernikus

The last part or your question is addressed by @traversaro's #1515, I believe.

I think you're right that the instructions for building the bindings should mention building the actual library...

I believe @saran-t will be addressing issues in build workflow and related documentation in the near future 🙂

yuvaltassa avatar Jun 01 '24 18:06 yuvaltassa