ducklet

guide

What each part of ducklet is called elsewhere: Gymnasium, scikit-learn, Optuna, OR-Tools and the rest

A map from ducklet's simulation, robotics, machine learning and solver files to the standard tools that do the same job, and which parts are stock libraries.

Physics, schedules, traffic, training and a solver all run in a browser tab in ducklet, each from a plain file. If you already know the usual tools, this page says which file is which, which parts are a stock library running as it ships, and which were written here because nothing stock runs in a browser. In the terminal, help elsewhere prints the same map, and a file that has not been run yet says its line on its first-run card.

Stock libraries, used as they ship

  • models/*.xml, *.urdf are MJCF and URDF robot models, stepped by MuJoCo itself in its official WebAssembly build.
  • physics/*.toml is a MuJoCo rollout: the model it names stepped for its seconds, as mj_step in a Python loop does. ctrl is the control signal (data.ctrl), keyframe is the model's own <key>, and policy is an ONNX policy as Isaac Lab or mjlab export one. A scene's sim block says the same run in place.
  • problems/*.toml state a constraint problem as tables, the way a MiniZinc model with its data or an OR-Tools CpModel does. OR-Tools CP-SAT solves it, and solve --export model.pb writes OR-Tools' own CpModelProto, so the same model runs anywhere CP-SAT does.
  • *.onnx networks, as policies or as models scored on a table, run on ONNX Runtime Web.

Written here, and what they stand for

Each of these says why it is not the standard tool: most because the standard one needs Python, CUDA or a server, which a browser tab does not have, and a few by choice, which help elsewhere marks.

  • learn/*.toml is a Gymnasium environment and its trainer in one file. [observe], [act], [reward] and [stop] are the environment, as an Isaac Lab or mjlab task config would say them. method = "ppo" is PPO as in Stable-Baselines3 or RSL-RL, and method = "cem" is the cross-entropy method. It says Stable-Baselines3's n_envs, n_steps and net_arch (older files say envs, horizon and layers, which still read). From the command line, env learn/<x>.toml steps the same episode for a learner of your own (reset and step, as JSON lines), and env --python prints the class that makes it a gymnasium.Env.
  • policies/*.json is a policy a learn file trained, with the episode it plays. Elsewhere this would be an ONNX file, so the same policy is written beside it as policies/*.onnx (obs in, actions out). A linear or net model leaves the same way, as model.onnx beside its model.json.
  • ml/*.toml is a scikit-learn estimator fitted to a table. model = "linear" is Ridge or LogisticRegression, "trees" is HistGradientBoostingRegressor or Classifier (the LightGBM way), and "net" is MLPRegressor or MLPClassifier. A model file says scikit-learn's names for its settings (max_iter, max_depth, learning_rate, max_bins, min_samples_leaf, test_size), and LightGBM's (n_estimators, min_child_samples) read too, as do the shorter names older files use (rounds, depth, rate).
  • studies/*.toml is an Optuna study: the same samplers (grid, random, Sobol, TPE, CMA-ES), pruning by successive halving, and a journal.jsonl in Optuna's own journal format. With --mlflow the trials are also written as MLflow's mlruns folder, a run a trial.
  • sweep … --set is a parameter sweep, as Hydra's multirun or an Optuna grid or random sampler. A model file sweeps too (sweep ml/fares.toml --set trees.depth=2,4,6), as scikit-learn's ParameterGrid does, and a study can search its settings. So does a learn file (sweep learn/cartpole.toml --set seed=1..5), which is how RL work tells settings from luck.
  • run.json, sim_runs are experiment tracking as MLflow keeps it (parameters, metrics and artifacts), kept as files in your project. A stale run and build are what DVC calls status and repro.
  • schedules/*.toml is a discrete-event simulation of a job shop, as SimPy, salabim or AnyLogic run one, with the textbook dispatch rules (EDD, SPT).
  • missions/*.toml are waypoint missions as Nav2 follows them, and a fleet's orders as Open-RMF or VDA 5050 give them.
  • roads/*.toml is a traffic microsimulation, as SUMO or MATSim run one. The driver model is Treiber's Intelligent Driver Model. roads import city.net.xml reads a SUMO network (what netconvert writes) into a roads file's tables.
  • voyages/*.toml is isochrone weather routing, as OpenCPN's weather routing or qtVlm do it, from a boat's polar and a wind forecast.
  • worlds/*.toml puts several models in one run, as a MuJoCo scene of attached models, a Gazebo SDF world or a USD stage would.

Why not the tools themselves

Most of them are Python or native programs that do not run in a browser tab at a useful speed or size. Where a standard format exists, ducklet reads and writes it: MJCF, URDF, ONNX, CpModelProto, Optuna's journal, MLflow's experiment folder, SUMO networks (in), LeRobot datasets and MCAP recordings. The rest keep plain words in plain files, and this page is the dictionary.

open 🏭 A factory floor and a warehouse →about this app ›