Work in progress. This project is under active development: features, names and file formats may change, and some parts described here are not finished yet.
Overview
PasMuJoCo lets Delphi and Free Pascal programs use MuJoCo, the physics engine from Google DeepMind for robotics, biomechanics and contact-rich simulation.
It follows the style of PasVulkan: a single translation unit whose API entry points are function pointers, resolved at run time from the MuJoCo shared library. Nothing is linked statically, so an application still starts when MuJoCo is missing and can report it cleanly.
Targets
| Platform | Compiler | MuJoCo library |
|---|---|---|
| Windows x64 | Delphi 12 or 13 | mujoco.dll |
| Linux x86_64 | Free Pascal 3.2.2 or later | libmujoco.so |
MuJoCo version 3.x. The loader checks mj_version() and refuses a library that does not match the
header’s version.
Status and roadmap
- Repository skeleton: done.
PasMuJoCo.pas: types, enums and structs (mjModel,mjData,mjOption,mjContact, scene structs), API function pointers, the dynamic loader and record-size tests against the C headers.- Thin classes
TMjModel(load from XML or.mjb) andTMjData(Step,Forward,Reset), with console samples for Win64 and Linux.
Rendering is out of scope for this package. Vulkan visualisation of MuJoCo scenes is planned for Vulkan_Package_PRO.
Licence
Apache License 2.0, the same licence as MuJoCo.