Open barikata1984 opened 3 months ago
Hey, I am a student as well not an expert. I have a similar problem just like you in Issue #457. I have not received any answers yet. But I solved it pretty unprofessionally, it worked tho. Something like this:
xml = env_mjcf.to_xml_string()
xml = xml.replace("<flexcomp ", '<flexcomp dim="3"', 1)
model = mujoco.MjModel.from_xml_string(xml)
You could try the same.
Hi both.
You probably just need to update mjcf/schema.xml?
Please try and if that solves your problem, send a PR?
Cheers
Hey guys,
On the github version mjcf/schema.xml they are not defined as valid attributes. After manually added the dim attribute to the flexcomp element, it solved my issue.
Thanks for the help.
Regards
For future visitors looking for a workaround until PR #468 is merged, custom/numeric
field can be used without the PR like:
<custom>
<numeric name="your_parameter" size="1" data="3.14"/>
</custom>
Hi, I'm a student and I'm trying to use MuJoCo for simulating rigid body dynamics.
I'm looking for some help with setting "user" attribute in "body" elements in .XML files. Reading this section and referring to these lines, I tried to set a user parameter as follows:
But I got the following error:
Does
mjcf
support .XML files with "body" elements with a "user" parameter in the first place? If it supports, which part should I change in the XML string above?Thanks in advance,