Fast and light weight simulator of rigid poly-articulated systems.
Project description
Jiminy is a cross-platform open-source simulator for poly-articulated systems. It was built with two ideas in mind:
- provide a fast yet physically accurate simulator for robotics research.
Jiminy is built around Pinocchio, an open-source fast and efficient kinematics and dynamics library. Jiminy thus uses minimal coordinates and Lagrangian dynamics to simulate an articulated system: this makes Jiminy as close as numerically possible to an analytical solution, without the risk of joint violation.
- build an efficient and flexible platform for machine learning in robotics.
Beside a strong focus on performance to answer machine learning's need for running computationally demanding distributed simulations, Jiminy offers convenience tools for learning via a dedicated module Gym-Jiminy. It is fully compliant with gym
standard API and provides a highly customizable wrapper to interface any robotics system with state-of-the-art learning frameworks.
Key features
General
- Simulation of multi-body systems using minimal coordinates and Lagrangian dynamics.
- Comprehensive API for computing dynamic quantities and their derivatives thanks to Pinocchio.
- C++ core with full python bindings, providing user API parity between both languages.
- Designed with machine learning in mind, with seamless wrapping of robots as OpenAI Gym environments using one-liners. Jiminy provides both the physical engine and the robot model (including sensors) required for learning.
- Fully modular learning environment pipeline design, with plug-and-play robotic observers and controllers, but also composable reward components and termination conditions. See example here.
- Rich simulation log output, easily customizable for recording, introspection and debugging. The simulation log is made available in RAM directly for fast access, and can be exported in binary or HDF5 format.
- Dedicated integration in Google Colab, Jupyter Lab, Mybinder and VSCode working out-of-the-box - including interactive 3D viewer based on Meshcat. This facilitates working on remote environments.
- Synchronous and single-threaded offscreen rendering capability, GPU-accelerated without graphical server, based on Panda3d.
- Easy to install:
pip
is all that is needed to get you started ! Support Linux, Mac and Windows platforms.
Physics
- Provide both classical phenomenological force-level spring-damper contact model and constraint solver satisfying the maximum energy dissipation principle.
- Support contact and collision with the ground from a fixed set of contact points (primitives and meshes yet to come).
- Simulate multiple articulated systems simultaneously interacting with each other, to support use cases such as multi-agent learning or swarm robotics.
- Modeling of motor transmission backlash and structural deformation via compliant spherical joints with spring-damper dynamics, which are common phenomena, particularly in bipedal robotics.
- Simulate both continuous or discrete-time controller, with possibly different controller and sensor update frequencies.
A more complete list of features is available on the wiki.
The documentation is available on Github.io, or locally in docs/html/index.html
if built from source.
Gym Jiminy
Gym Jiminy is an interface between Jiminy simulator and reinforcement learning frameworks. It is fully compliant with now standard Open AI Gym API. Additionally, it offers a generic and easily configurable learning environment for learning locomotion tasks, with minimal intervention from the user, who usually only needs to provide the robot's URDF file. Furthermore, Gym Jiminy enables easy modification of many aspects of the simulation to provide richer exploration and ensure robust learning. This ranges from external perturbation forces to sensor noise and bias, including randomization of masses and inertias, ground friction model or even gravity itself. Note that learning can easily be done on any high-level dynamics features, or restricted to mock sensor data for end-to-end learning.
Gym is cross-platform and compatible with most Reinforcement Learning frameworks implementing standard algorithms. For instance, Stable Baselines 3, Tianshou, or Rllib. Stable Baselines 3 and Tianshou use its counterpart Pytorch, and Rllib supports both. A few learning examples relying on those packages are also provided.
Pre-configured environments for some well-known toys models and reference robotics platforms are provided: cartpole, acrobot, pendulum, Ant, ANYmal, and Cassie, and Atlas.
Demo
Getting started
Jiminy and Gym Jiminy support Linux, Mac and Windows, and is compatible with Python3.8+. Pre-compiled binaries are distributed on PyPi. They can be installed using pip>=20.3
:
# For installing Jiminy
python -m pip install --prefer-binary jiminy_py[meshcat,plot]
# For installing Gym Jiminy
python -m pip install --prefer-binary gym_jiminy[all]
Detailed installation instructions, including building from source, are available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for jiminy_py-1.8.6-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f99c5ee9a7ccb8b2692ecc6a74d5c688c5f566bc1755e22af5bddf5735b176f |
|
MD5 | 4e5abb60217709ab6f9f01ed2b325648 |
|
BLAKE2b-256 | 0748f5db86efa803f7385ad544d3efaf6621b2e15e72d8cadc8a5d2b50e64013 |
Hashes for jiminy_py-1.8.6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c62a7bb24689d227d7e24ff5438b350a3269d44a6446aef3a24fb9f0b8a3fe |
|
MD5 | 4627c59a3faa119f6e9232b4123aed65 |
|
BLAKE2b-256 | ed378b318c83937bee9d683ff4cbf965147beec115ec78222925f175959b2f9b |
Hashes for jiminy_py-1.8.6-cp312-cp312-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d94888b178688eba41ce1b4dcbd5cb937b1df05d38f445ade6e8fbc4dfa150 |
|
MD5 | 3e3bacd8779629bb2679f2ea75f3a5b2 |
|
BLAKE2b-256 | b19cacaf2c46915dab2be6b1f52d71a927a61ffddfec0062245dd5e091998168 |
Hashes for jiminy_py-1.8.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e367cf42fb14c53215103d3859ec9e32e89e18e999334828eb181ed398438029 |
|
MD5 | b0137e171f43f0acd1c8ec65f89b17db |
|
BLAKE2b-256 | 9b27f1dd317b0c07f31cd2a6ec4a9de18e7d54bdb269ee1852e0a5b90e96ec3d |
Hashes for jiminy_py-1.8.6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f675c6d82c23f298058eb253896a4a930e371a473e3ec856fe9670e7b95689 |
|
MD5 | 53dff1a07d32ea9909a085c0f84371dc |
|
BLAKE2b-256 | 271e2a0f8f96851a95920023b2340f70ef4aff3e591422170d6bda79c4db78ea |
Hashes for jiminy_py-1.8.6-cp311-cp311-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91375a30936b6cd8073c2150c33860ebc1b78e5dfaded748e0a265f2c7a21c69 |
|
MD5 | c42c93aa22caea569259bd61a2207c58 |
|
BLAKE2b-256 | 9d7505993a89d8b80cb03056748e4c7e5c01782c58eb57d8d295c63db0b0ea46 |
Hashes for jiminy_py-1.8.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859394146aa07919065e5d762fd84fdd12a2ca0b805cdf9ec6df66eac16abf59 |
|
MD5 | 795a4e38aa4f6695f4135e470735f7e1 |
|
BLAKE2b-256 | d41bd0b939a145dc7e2b44ff58e567c191196d0761c1db2e3c785073cb8132b2 |
Hashes for jiminy_py-1.8.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7bc9ac352d810f6aa113edae37a6e84be75afe54465872a39667598d30c464b |
|
MD5 | 89d1c842b86310d75fa5eec579fa83f9 |
|
BLAKE2b-256 | a275fe3e026c55d8d144ec221f7c5f46a8be3e436ab4e80a5d8f9a60ed5a7a98 |
Hashes for jiminy_py-1.8.6-cp310-cp310-macosx_11_0_x86_64.macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd86c6054bc126cb754f46feba85fb0c36d160fefae2d4bfe9d4b49b8473e1d |
|
MD5 | ad41d62b91824eefd0854a7c1560a05b |
|
BLAKE2b-256 | 9f0dd662a499e44a1c412d2b5d5bee282075e06fcb5fe6cae549d49abe1ee691 |
Hashes for jiminy_py-1.8.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80bc05d59f283085779dbe6aa8bff803f1d4f6cc8c219ad81ba7fc34a440b2b4 |
|
MD5 | 01b77283a52b15d9abebcbc79c1f3935 |
|
BLAKE2b-256 | 996e9a69dafeeea44036762217c27f9f332e21ab0c4733522107dd18fe058cfc |
Hashes for jiminy_py-1.8.6-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27d486407c320515a6ddde443b9ac4e415b4133b0ecb20501b5b2bb5851cbd7 |
|
MD5 | ff333d1704fa8338366ff2b12c3a3f27 |
|
BLAKE2b-256 | 8c12e949f0c3d11f49c041147dfd037ca5a4fd7c9dbd96d06579d106477ad54b |
Hashes for jiminy_py-1.8.6-cp39-cp39-macosx_11_0_x86_64.macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e4dbabae8d9ec3c87d62ddb282d9a7cf89fa3154226ce3894b1e41ef919a438 |
|
MD5 | c68f5ff005e4bc4aa4f38d7ba5571bae |
|
BLAKE2b-256 | a9228fe779fbdbc50d26cc96e72e4bfba5085c2c8f278d2f1aa83f5f5c72ab1d |
Hashes for jiminy_py-1.8.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a29064f954441476ac083cb7c985a1f79d02c7ab8386bc31bf480ac721b2eb9 |
|
MD5 | 768b940cfcad7460fdafcfeef8cc0a21 |
|
BLAKE2b-256 | 53dd9aa1a996b2e4af93648c930c6cb90ac4848a73034daea3bc749669c40606 |
Hashes for jiminy_py-1.8.6-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | becc0541a7f0948753c1a55d07fc502745b39a2f06ffcc78c7137bfd5d7d74bb |
|
MD5 | 2d97a7e9463d0ff0fc2d5028930128ab |
|
BLAKE2b-256 | f484017117e51b82aae102e7e05733310ed3b6f4a45a5edb1bf319550e57e6a7 |
Hashes for jiminy_py-1.8.6-cp38-cp38-macosx_11_0_x86_64.macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76028bbcd6b17b92e1fd60f7512694cd19e2396db7226f4b4853b49a66b8eaad |
|
MD5 | 9e72d087dee047ee9afe16e8350c4dcf |
|
BLAKE2b-256 | 04067ce673250108317514abff21fd7c5955b9a51477bbd147aec62964f0b481 |