Numerical derivatives of dynamics for mujoco
Forked from https://github.com/wecacuee/mujoco_py_deriv
- Needs mujoco licence to run.
- Wraps derivative.cpp to call from Python.
Installation
- Install mujoco_py
pip install mujoco-py-derivatives
Usage
Prepare mujoco model.
import mujoco_py as mj
from mujoco_py_derivatives import MjDerivative, checkderiv
# Prepare mujoco model and data
model = mj.load_model_from_path("flat_pusher_sample.xml")
sim = mj.MjSim(model, nsubsteps=nstep)
dmain = sim.data
Compute numerical derivative
# To compute δf/δx
f = ["qacc"]
x = ["qfrc_applied", "qvel", "qpos"]
deriv_obj = MjDerivative(model, dmain, f, x)
deriv = deriv_obj.compute()
Metadata
Release files for mujoco-py-derivatives 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mujoco-py-derivatives-0.1.4.tar.gz | 153.3 kB | Without provenance | Details for mujoco-py-derivatives-0.1.4.tar.gz |
Release files / mujoco-py-derivatives-0.1.4.tar.gz
| Download URL | mujoco-py-derivatives-0.1.4.tar.gz |
|---|---|
| Size | 153.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e27ed21d79f92b5287afb1efa32d62e1f72f4defe9e949e6d8082fa9086f75c
|
|
BLAKE2b-256 checksum How to use checksums |
dd9a313ee0790b2077934689b1c19b09ba982ff765330ad31e5711870e08efb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Security for mujoco-py-derivatives 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.