Skip to content

Examples

Complete scripts, one feature each, in examples/ of the repository. Run them from the repository root by path, e.g. python examples/01_basic_orbit.py; --help lists each script's options. Each page shows the script's source.

Scripts that plot save their figures as PNG files in the working directory and open a window unless given --no-show (example 10 never opens one).

Orbits and integrators

Batches

Actuators

Gradients

Reinforcement learning

Shared modules and tools

YAML scenarios

Complete scenarios in one configuration file, run with run_config.py:

python examples/run_config.py examples/<config>.yaml --steps 5000
Config Scenario
minimal_orbit.yaml Minimal example: one spacecraft on a deterministic 400 km circular LEO orbit.
monte_carlo_dispersion.yaml Monte Carlo dispersion study: 4096 spacecraft on randomized LEO orbits.
multibody_orbit.yaml Four bodies on phased circular orbits in each of three environments.
rendezvous_chaser_target.yaml Rendezvous scenario: passive target + thruster-equipped chaser (2 bodies).
rl_attitude_training.yaml RL training setup: attitude control with reaction wheels, 2048 parallel envs.