Replies: 3 comments 7 replies
-
Yup, multi-body Newtonian gravitation should be easy to implement as a passive force callback or plugin. Looking forward to seeing some cool animations 🙂 |
Beta Was this translation helpful? Give feedback.
4 replies
-
I am also interested in this. Any updates, @TenguBoss? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm trying my hand at this via callback, but I'm not sure how to install it. In a REPL: >>> import mujoco
>>> def callback(model, data):
... pass
...
>>> mujoco.set_mjcb_passive(callback)
>>> mujoco.MjModel.from_xml_string('<mujoco/>')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Error: engine error: Python exception raised Could you share an example callback install, @yuvaltassa? I can't find one in documentation. Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Aloha MuJoCo Team,
I am learning MuJoCo with the goal of developing and testing space robotics sims. Right now we are using a force-free environment to set up our sims and test configurations. The next step is to introduce external force models starting with gravity. From the MuJoCo XML and API documentation I gather that a straightforward way to implement Newton's law of universal gravitation is to:
I have done a scan of the discussions and haven't found anything similar. However, if someone has worked on something similar and posted about it please let me know. I appreciate feedback and suggestions.
Regards,
BU
Beta Was this translation helpful? Give feedback.
All reactions