-
Notifications
You must be signed in to change notification settings - Fork 873
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
MjSpec
python bindings
#2353
Comments
I have just submitted ba183ad which adds the attribute
I have removed any keywords from
In order to add the child assets to the parent assets. I am not sure about the Docker issue. Maybe you can check if you still have this issue now? |
@quagla should we add a line about this here? |
Thanks for fixing the interface so fast. I can confirm this issue is resolved in +1 to @yuvaltassa point of adding it to the documentation. I think it is quite undocumented that one can pass the meshes explicitly which I prefer as this enables storing the meshes and models at different locations. Don't worry about the encoding issue. I narrowed it down to how we build the |
Sure I can do that later this week |
My setup
MuJoCo==3.2.6, Python, Ubuntu 22.04
What's happening? What did you expect?
I started playing around with
MjSpec
and noticed some problems in the API. I commonly use the manual asset dict functionality to create aMjSpec
orMjModel
. For examplemj_spec = MjSpec.from_file(filename, assets=assets)
andmj_spec.compile(assets)
.There seems to be some issue when doing
mj_spec.compile(assets=assets)
, even though it looks likeassets
is a valid keyword. While doingmj_spec.compile(assets)
seems to work just fine, providing the assetskeyword
the program dies and a lot of binary code is printed to the console.When the assets are passed as positional argument, passing
None
viamj_spec.compile(None)
does not work. Historically theassets
argument has beendict[str, byte] | None
but this does not seem to be true forMjSpec
.When previously working with
mjcf
, I could get the assetsmjcf_root.get_assets()
.MjSpec
does not seem to provide this option. Would it be possible to add this feature?Lastly, I am having problems with
mujoco.MjSpec
in a docker container. For exampleyields the error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 1: invalid continuation byte
. This error seems to be specific to my Docker setup as I do not observe the issues when running outside docker. Do you have any idea what could be causing this difference?CC: @yuvaltassa @quagla
Confirmations
The text was updated successfully, but these errors were encountered: