Skip to content

Examples


Abstract

Small problems that highlight APIs: STL, impulsive dynamics, and toy costs.

  • Brachistochrone — Brachistochrone problem: finding the fastest descent path.
  • Brachistochrone Batched — Batched brachistochrone — two ways to solve four problems at once.
  • Chen Allgoewer — Chen–Allgöwer unstable OCP (OpenSCvx port).
  • Flappy Bird — Flappy Bird-style 2D navigation with impulsive vertical flaps.
  • Hypersensitive — Hypersensitive optimal control benchmark: minimize ½∫(x²+u²) over a long horizon.
  • Impulsive — Impulsive control example with mixed continuous/impulsive inputs.
  • Stl Integer Variable — Simple example using ox.stl.IntegerVariable to enforce discrete-valued states.
  • Stl Or — Very simple example using the GMSR-based STL Or operator (ox.stl.Or).

Aircraft

Runnable scripts in this category.

Animations

Animation-oriented variants of arm, drone, and obstacle demos.

  • 7 Dof Arm — Cinematic offline render of the 7-DOF arm pick-and-place example.
  • Dr Vp Polytope — Cinematic offline render of the drone-racing-with-polytope-viewplanning example.
  • Franka Fr3v2 Pick Place — Cinematic offline render of the Franka FR3 v2 pick-and-place example.
  • Logo — Cinematic offline render of the ACL-logo-tracing drone example.
  • Obstacle Avoidance Vmap — Cinematic offline render of the vmap obstacle-avoidance example.
  • Senss Hop Lidar Camera — Viser-rendered nadir camera mp4 for the SENSS hop (LiDAR FOV / footprint).

Arm

Manipulator motion, pick-and-place, viewpoint planning, and collisions.

Car

Dubins models with obstacles and STL logic, plus the minimum-lap-time racing family.

Double Integrator

Runnable scripts in this category.

Drone

Racing, obstacle avoidance, viewpoint constraints, and related utilities.

  • Boresight Trace Mpcc — MPCC SVG tracing: a quadrotor draws an SVG path with its camera boresight.
  • Cinema Vp — Cinematic viewpoint planning for aerial filming.
  • Cinema Vp Nodal — Cinematic viewpoint planning for aerial filming with nodal constraints.
  • Dr Vp — Drone racing with continuous viewpoint constraints.
  • Dr Vp Nodal — Drone racing with nodal viewpoint constraints.
  • Dr Vp Polytope — Drone racing with continuous viewpoint constraints using polytope target arrangement.
  • Drone Racing — 6-DOF quadrotor racing through sequential gates.
  • Drone Racing Batched Gates — Batched quadrotor gate racing: solve over B perturbed gate layouts.
  • Logo — 6-DOF quadrotor tracing out the Autonomous Controls Laboratory Logo
  • Lunar Terrain Agl — 6DoF quadrotor A→B over SENNS lunar DEM at ~20 m AGL.
  • Maze Scp — 6-DOF quadrotor maze navigation: JAX wavefront guess + SCP refinement.
  • Moving Safe Columns — 6DoF quadrotor with STL moving safe columns.
  • Obstacle Avoidance — 6-DOF quadrotor obstacle avoidance with ellipsoidal obstacles.
  • Obstacle Avoidance Nodal — 6-DOF quadrotor obstacle avoidance with nodal constraints.
  • Openscvx Logo — 6-DOF quadrotor tracing out the OpenSCvx logo
  • Quadrotor Hector — Simple quadrotor dynamics example (OpenSCvx port).
  • Quadrotor Zigzag — RobotZoo quadrotor zigzag waypoint tracking (OpenSCvx port).

Frax

Runnable scripts in this category.

  • Panda Frax — Franka Panda joint-space point-to-point motion using frax dynamics.
  • Panda Frax Pick Place — Franka Panda pick-and-place via frax rigid-body dynamics.
  • Panda Frax Viewplanning — Franka Panda view planning — wrist camera viewcone via frax rigid-body dynamics.
  • Panda Frax Waypoint — Franka Panda point-to-point motion with an intermediate EE waypoint (frax dynamics).
  • Ur5e Pen Trace — UR5e pen tracing — drawing on a work surface with a tool-mounted pen via frax.
  • Ur5e Pen Trace Mpcc — MPCC UR5e pen tracing: receding-horizon contouring control of a drawing arm.

MJX

MuJoCo MJX dynamics: cartpole, multi-body, and skydio-style models.

MPC

Discrete-time MPC-style and realtime-style double integrator setups.

Multi Agent

Runnable scripts in this category.

Pendulum

Runnable scripts in this category.

Realtime

Receding-horizon and streaming demos built on shared base problems.

Rocket

Powered descent guidance sketches in 3-DOF and 6-DOF.

  • 3DoF Pdg — 3-DOF Powered Descent Guidance (PDG) for planetary landing.
  • 6DoF Pdg — 6DoF PDG Rocket Trajectory Optimization
  • 6DoF Pdg Batched Ic — Batched 6-DoF powered descent guidance — solve_batched over initial conditions.
  • 6DoF Pdg Stc — 6-DoF Powered Descent Guidance with true Compound State-Triggered Constraints (cSTC)
  • 6DoF Pdg Stc Ifthen — 6-DoF Powered Descent Guidance with compound STCs via ox.stl.IfThen
  • Ascent Launch Vehicle — 4-phase Delta II-style ascent from KSC (28.5° lat) to GTO, based on the benchmark from Betts,
  • Reusable Launch Vehicle — Runnable script; full source on the detail page.
  • Rocket Ilqr — 2D rocket landing OCP (OpenSCvx port of lqrax ilqr_example.ipynb).
  • 6DoF Pdg Dem — 6DoF PDG on DEM terrain – realtime with viser.
  • 6DoF Pdg Dem Static — 6DoF PDG – single static solve with DEM terrain landing.
  • 6DoF Pdg Stc Senss — 6-DoF Powered Descent Guidance with true Compound State-Triggered Constraints (cSTC)
  • 6DoF Pdg Stc Senss Gimbal — 6-DoF Powered Descent Guidance with true Compound State-Triggered Constraints (cSTC)
  • 6DoF Pdg Stc Senss Gimbal Hop — 6-DoF cSTC hop: ascent from launch pad → apex waypoint → nearby land pad.
  • 6DoF Pdg Stc Senss Hop — 6-DoF cSTC hop: ascent from launch pad → apex waypoint → nearby land pad.
  • 6DoF Pdg Stc Senss Planar — 6-DoF Powered Descent Guidance with true Compound State-Triggered Constraints (cSTC)

Spacecraft

Orbital transfers, halo orbits, and relative-motion prox-ops style problems.

  • Dual Deputy Inspection Cw — Dual-deputy relative-orbit inspection with CW dynamics.
  • Halo Orbit — Southern L2 Halo orbit initial conditions definition
  • Hohmann Transfer — Hohmann transfer with impulsive delta-v controls (LEO → GEO).
  • Let Transfer — Low-Energy Transfer (LET) setup in Sun-Earth CR3BP with one departure impulse.
  • Low Thrust Transfer — Low-Thrust Orbit Transfer using Modified Equinoctial Elements.
  • Proxops Cw — Proximity Operations (ProxOps) using Clohessy-Wiltshire dynamics.
  • Relative Loitering — Relative loitering in Earth-Moon CR3BP with CTCS box-violation regularization.

Paths mirror the repo layout: examples/<category>/.... Utility modules (for example plotting helpers) are omitted from this index.