{"openapi":"3.1.0","info":{"title":"Generalized CasADi MPC","version":"0.1.0"},"paths":{"/v1/packs/checkout":{"post":{"summary":"Create Pack Checkout","description":"Start a $15 Checkout Session, or mint locally when Stripe is unset.","operationId":"create_pack_checkout_v1_packs_checkout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Create Pack Checkout V1 Packs Checkout Post"}}}}}}},"/v1/packs/webhook":{"post":{"summary":"Stripe Webhook","description":"Verify a Stripe signature and mint the pack for that Checkout Session.","operationId":"stripe_webhook_v1_packs_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"type":"object","title":"Response Stripe Webhook V1 Packs Webhook Post"}}}}}}},"/v1/packs/checkout/{session_id}":{"options":{"summary":"Claim Pack Options","operationId":"claim_pack_options_v1_packs_checkout__session_id__options","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Claim Pack Key","description":"Read a pack key. The first GET does not clear it.","operationId":"claim_pack_key_v1_packs_checkout__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packs/balance":{"get":{"summary":"Pack Balance","description":"Read pack credits. This does not spend a credit and does not log the key.","operationId":"pack_balance_v1_packs_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Pack Balance V1 Packs Balance Get"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}},"head":{"summary":"Health Head","operationId":"health_head_health_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/validate":{"post":{"summary":"Validate Endpoint","operationId":"validate_endpoint_v1_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Endpoint V1 Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/export":{"post":{"summary":"Export Endpoint","description":"Write a standalone controller.\n\nCasADi Python and acados Python stay free. A ROS 2 node or package uses the\nautotune credit gate when payment is enforced. The file bakes in the plant,\nthe bounds, and Q, R, Rd, Qf. It does not import this service.","operationId":"export_endpoint_v1_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Export Endpoint V1 Export Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/export/ros2-package":{"post":{"summary":"Export Ros2 Package Endpoint","description":"Full ROS 2 zip. Same autotune credit as ``/v1/autotune`` when payment is enforced.","operationId":"export_ros2_package_endpoint_v1_export_ros2_package_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Export Ros2 Package Endpoint V1 Export Ros2 Package Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-payment-info":{"price_usd":1.5,"currency":"USD","x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_name":"Base USDC"},"alternative":"X-API-Key"}}},"/v1/export/preview":{"get":{"summary":"Export Preview Endpoint","description":"File tree, dependencies, and topics. No planner source and no zip.","operationId":"export_preview_endpoint_v1_export_preview_get","parameters":[{"name":"plant","in":"query","required":false,"schema":{"type":"string","default":"unicycle","title":"Plant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Preview Endpoint V1 Export Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/simulate":{"post":{"summary":"Simulate Endpoint","description":"Closed-loop preview for the browser. Free, same bucket as validate.\n\nThe rollout builds one IPOPT NLP and reuses it for every step, including waypoint\nchanges of x_ref. The previous solution warm-starts the next step. The loop stops\nat 200 steps or 25 seconds. The solve body itself is unchanged.\n\nA repeated identical body is served from an in-process LRU of 256 rollouts.\nA cache miss takes one of 3 cold-solve slots. A fourth concurrent miss is HTTP 429.\nThe free-route rate limit runs in middleware, before this cache.","operationId":"simulate_endpoint_v1_simulate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Simulate Endpoint V1 Simulate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/certify":{"post":{"summary":"Certify Endpoint","description":"Field-readiness scorecard. Free, same bucket as validate and simulate.\n\nFive short closed loops share one solver. The call stops at 3.5 seconds.\nTwo scorecards may run in this process at once. A third returns HTTP 429\nso a burst of browsers cannot fill the worker threads or the memory.","operationId":"certify_endpoint_v1_certify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Certify Endpoint V1 Certify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/validate/model":{"post":{"summary":"Validate Model Endpoint","description":"Check an autotune or template body. This route does not run Optuna.","operationId":"validate_model_endpoint_v1_validate_model_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Model Endpoint V1 Validate Model Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sysid/fit":{"post":{"summary":"Sysid Fit Endpoint","description":"Fit delay and physical parameters. Same credit as ``/v1/autotune``.","operationId":"sysid_fit_endpoint_v1_sysid_fit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SysIdFitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sysid Fit Endpoint V1 Sysid Fit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-payment-info":{"price_usd":1.5,"currency":"USD","x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_name":"Base USDC"},"alternative":"X-API-Key"}}},"/v1/sysid":{"post":{"summary":"Sysid Endpoint","description":"Fit a discrete linear model from logged samples. This route is free.\n\nPayment enforcement does not apply. The body cap and the free-route rate\nlimit bound how many logs one client can send. A non-finite sample or a\nlog that is too short to identify A and B is HTTP 422.","operationId":"sysid_endpoint_v1_sysid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SysIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sysid Endpoint V1 Sysid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/solve":{"post":{"summary":"Solve Endpoint","operationId":"solve_endpoint_v1_solve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Solve Endpoint V1 Solve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-payment-info":{"price_usd":0.02,"currency":"USD","x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_name":"Base USDC"},"alternative":"X-API-Key"}}},"/v1/autotune":{"post":{"summary":"Autotune Endpoint","description":"Queue a weight search.\n\nThe tuner needs discrete or continuous linear matrices A and B, one of\ndouble_integrator, thermal_rc_zone, soil_moisture_cascade, cart_pendulum,\nunicycle_kinematics, gravity_tank, icr_skid_steer, and ackermann, or a kind\nexpression plant with one allowlisted scalar expression per state row.\nExpressions outside that allowlist are rejected. Optional h rows and fixed\nobstacle slots, path-frame residuals, and zone bands are accepted.","operationId":"autotune_endpoint_v1_autotune_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTuneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Autotune Endpoint V1 Autotune Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-payment-info":{"price_usd":1.5,"currency":"USD","x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_name":"Base USDC"},"alternative":"X-API-Key"}}},"/v1/templates/autotune":{"post":{"summary":"Template Autotune Endpoint","operationId":"template_autotune_endpoint_v1_templates_autotune_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateAutotuneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Template Autotune Endpoint V1 Templates Autotune Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-payment-info":{"price_usd":2.0,"currency":"USD","x402":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_name":"Base USDC"},"alternative":"X-API-Key"}}},"/v1/jobs/{job_id}":{"get":{"summary":"Job Endpoint","operationId":"job_endpoint_v1_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"job_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Endpoint V1 Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/autotune/{job_id}/export":{"post":{"summary":"Export Job Endpoint","description":"Write the same standalone controller as ``/v1/export``, using this job's weights.\n\nThe job token is the one returned when the job started. This call is free\nand does not spend another autotune credit.","operationId":"export_job_endpoint_v1_autotune__job_id__export_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"job_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/_JobExportBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Job Endpoint V1 Autotune  Job Id  Export Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AutoTuneRequest":{"properties":{"constraints":{"anyOf":[{"$ref":"#/components/schemas/ConstraintSpec"},{"type":"null"}],"description":"Same h rows and obstacle slots as solve. Omit for an unconstrained study."},"costs":{"anyOf":[{"$ref":"#/components/schemas/CostSpec"},{"type":"null"}],"description":"Same path-frame and zone residuals as solve. Omit to tune the quadratic cost only."},"system":{"oneOf":[{"$ref":"#/components/schemas/LinearStateSpaceSpec"},{"$ref":"#/components/schemas/NonlinearTemplateSpec"},{"$ref":"#/components/schemas/ExpressionDynamicsSpec"}],"title":"System","description":"Plant for the study. Free validate_problem first. This request is the paid autotune step after a solve, when the quadratic weights are still unknown.","discriminator":{"propertyName":"kind","mapping":{"expression":"#/components/schemas/ExpressionDynamicsSpec","linear":"#/components/schemas/LinearStateSpaceSpec","nonlinear":"#/components/schemas/NonlinearTemplateSpec"}}},"scenario":{"$ref":"#/components/schemas/ClosedLoopScenario","description":"Closed-loop rollout the tuner scores, including mismatch and noise."},"kpi":{"$ref":"#/components/schemas/KPIScorecard","description":"Scorecard weights and the Optuna trial and time budget."},"curriculum":{"anyOf":[{"$ref":"#/components/schemas/CurriculumSpec"},{"type":"null"}],"description":"Optional JSON stages. Omit to tune the single scenario in this request. When set, each stage uses only its supplied scenarios and the held-out block is scored afterward."}},"additionalProperties":false,"type":"object","required":["system","scenario","kpi"],"title":"AutoTuneRequest"},"ClosedLoopScenario":{"properties":{"x0":{"items":{"type":"number"},"type":"array","title":"X0","description":"Initial state for the rollout, length nx, in the plant's state units."},"step_reference":{"items":{"type":"number"},"type":"array","title":"Step Reference","description":"Step state reference held for the rollout, length nx."},"plant_model_mismatch_pct":{"type":"number","title":"Plant Model Mismatch Pct","description":"Plant-model mismatch in percent. The plant is scaled by 1 + pct/100. Default 0.","default":0.0},"sensor_noise_std":{"type":"number","minimum":0.0,"title":"Sensor Noise Std","description":"Sensor noise standard deviation, in the plant's state units. Default 0, must be >= 0.","default":0.0},"step_disturbance":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Step Disturbance","description":"Constant disturbance applied from disturbance_onset_step, length nd. Omit for none."},"disturbance_onset_step":{"type":"integer","minimum":0.0,"title":"Disturbance Onset Step","description":"Closed-loop step index when step_disturbance turns on. Default 0, must be >= 0.","default":0},"n_steps":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"N Steps","description":"Closed-loop steps in the scored rollout. Default 40, must be >= 1 and <= 200.","default":40},"seed":{"type":"integer","title":"Seed","description":"Seed for the sensor noise. Default 0.","default":0}},"additionalProperties":false,"type":"object","required":["x0","step_reference"],"title":"ClosedLoopScenario","description":"Step-reference rollout used by the auto-tuner."},"ConstraintSpec":{"properties":{"h":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"H","description":"Scalar rows, each h(x, u, p) <= 0. At most 8. Symbols are x[i], u[i], p[i], and pi. Same length, depth, and node caps as expression dynamics."},"p":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":8,"title":"P","description":"Caller parameters for h, length 0 to 8. On an expression plant, omit this to use the plant p. Obstacle slots do not use this vector and do not count toward the cap."},"obstacles":{"anyOf":[{"$ref":"#/components/schemas/ObstacleSlots"},{"type":"null"}],"description":"Fixed circles. Omit for none. The row is active * (r^2 - squared distance) <= 0."},"slack_l1":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L1","description":"L1 weight on each inequality slack. Omit for 1000. Ignored when hard is true."},"slack_l2":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L2","description":"L2 weight on each inequality slack. Omit for 100. Ignored when hard is true."},"hard":{"type":"boolean","title":"Hard","description":"True enforces the rows with no slack. Default false.","default":false}},"additionalProperties":false,"type":"object","title":"ConstraintSpec","description":"Allowlisted rows ``h(x, u, p) <= 0`` and fixed obstacle slots.\n\nSoft rows use one slack per node. ``hard`` true removes those slacks.\nA linear plant with any row here uses the nonlinear solver. The linear-only solver option is rejected."},"CostSpec":{"properties":{"path_frame":{"anyOf":[{"$ref":"#/components/schemas/PathFrameCost"},{"type":"null"}],"description":"Along-track, cross-track, and heading residuals. Omit for none."},"path":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Path","description":"One path sample per state node, length N+1. Each sample is along, across, and heading, in the position indexes' units and the heading state's units."},"zones":{"items":{"$ref":"#/components/schemas/ZoneBand"},"type":"array","maxItems":8,"title":"Zones","description":"Slack bands, at most 8. Each band is two inequalities and one slack."}},"additionalProperties":false,"type":"object","title":"CostSpec","description":"Path-frame and zone residuals. Economic prices stay the linear stage vectors.\n\n``linear_state_cost`` and ``linear_input_cost`` are the economic term. They are\nlinear in the node. Path samples, zone centers, half-widths, and weights are\nparameters of the compiled problem."},"CurriculumSpec":{"properties":{"stages":{"items":{"$ref":"#/components/schemas/CurriculumStage"},"type":"array","maxItems":4,"minItems":1,"title":"Stages","description":"Ordered stages. Length 1 to 4. Each stage warm-starts from the previous stage's best feasible trial."},"held_out":{"items":{"$ref":"#/components/schemas/ClosedLoopScenario"},"type":"array","maxItems":12,"minItems":1,"title":"Held Out","description":"Required scenarios scored after the last stage. They are not used to train or to apply the cap."},"timeout_seconds":{"type":"number","maximum":120.0,"exclusiveMinimum":0.0,"title":"Timeout Seconds","description":"Wall-clock budget for every stage and the held-out scoring, in seconds. Must be > 0 and <= 120."}},"additionalProperties":false,"type":"object","required":["stages","held_out","timeout_seconds"],"title":"CurriculumSpec","description":"Declarative stages. JSON only: there is no code to run."},"CurriculumStage":{"properties":{"scenarios":{"items":{"$ref":"#/components/schemas/ClosedLoopScenario"},"type":"array","maxItems":12,"minItems":1,"title":"Scenarios","description":"Training scenarios for this stage. Length 1 to 12. The stage does not add scenarios of its own."},"validation":{"items":{"$ref":"#/components/schemas/ClosedLoopScenario"},"type":"array","maxItems":12,"minItems":1,"title":"Validation","description":"Cap scenarios for this stage. Length 1 to 12. Used by the regression cap, not as the held-out block."},"trials":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Trials","description":"Optuna trials for this stage. Must be >= 1 and <= 40."}},"additionalProperties":false,"type":"object","required":["scenarios","validation","trials"],"title":"CurriculumStage","description":"One fixed bank. The numbers are the only plant the stage trains on."},"ExportRequest":{"properties":{"system":{"oneOf":[{"$ref":"#/components/schemas/LinearStateSpaceSpec"},{"$ref":"#/components/schemas/NonlinearTemplateSpec"},{"$ref":"#/components/schemas/ExpressionDynamicsSpec"}],"title":"System","description":"Plant to control. Free validate_problem first, then this paid solve, then autotune if the weights are still unknown.","discriminator":{"propertyName":"kind","mapping":{"expression":"#/components/schemas/ExpressionDynamicsSpec","linear":"#/components/schemas/LinearStateSpaceSpec","nonlinear":"#/components/schemas/NonlinearTemplateSpec"}}},"x0":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X0","description":"Initial state, length nx, at most 24 entries, in the plant's state units."},"x_ref":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X Ref","description":"Constant state reference, length nx, at most 24 entries. Ignored for the trajectory when X_ref is set."},"Q":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Q","description":"Stage state weight, shape nx by nx."},"R":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"R","description":"Input weight, shape nu by nu."},"Rd":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Rd","description":"Slew weight on delta-u, shape nu by nu."},"Qf":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Qf","description":"Terminal state weight, shape nx by nx."},"d_hat":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"D Hat","description":"Constant disturbance estimate, length nd. Omit for zeros."},"u_prev":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Prev","description":"Previous applied input, length nu, used by the slew penalty. Omit for zeros."},"actuator_delay_steps":{"type":"integer","title":"Actuator Delay Steps","description":"Commands already in flight before the one being solved. 0 leaves the solve unchanged. Values outside 0..5 are clamped.","default":0},"actuator_delay_ms":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Actuator Delay Ms","description":"Optional delay in milliseconds. Used only when actuator_delay_steps is 0. Converted with round(ms / (dt * 1000)) and clamped to 0..5."},"corridor_half_width":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Corridor Half Width","description":"Optional half-width, in meters, of a soft corridor around the reference heading. Omit to add no corridor slacks. Nodes k = 1..N stay within this lateral distance, with a non-negative slack so a start outside the tube stays feasible."},"obstacles":{"items":{"$ref":"#/components/schemas/KeepOutObstacle"},"type":"array","maxItems":8,"title":"Obstacles","description":"Up to 8 circular keep-out zones in the x-y plane. Empty adds no obstacle slacks. Each zone is softened so a start inside the circle does not make IPOPT infeasible."},"enable_disturbance_observer":{"type":"boolean","title":"Enable Disturbance Observer","description":"When true, a lightweight observer estimates a constant state bias and the MPC predicts x+ = f(x, u) + d_hat. Default false leaves the NLP unchanged.","default":false},"observer_gain":{"type":"number","title":"Observer Gain","description":"Observer blend, clamped to 0.05..0.6. 0.25 is a slow bias tracker.","default":0.25},"observer_clip":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Observer Clip","description":"Per-state saturation on d_hat, length nx, or one number used for every state. Omit for a small default so a bad odometry sample cannot wind the estimate up."},"d_hat_lpf_cutoff_hz":{"type":"number","maximum":50.0,"minimum":0.0,"title":"D Hat Lpf Cutoff Hz","description":"First-order low-pass cutoff on the disturbance estimate, in hertz. 0 disables the extra filter. 1 Hz rejects odometry noise and still tracks a current. Ignored when d_hat_lpf_alpha is set.","default":1.0},"d_hat_lpf_alpha":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Lpf Alpha","description":"Discrete low-pass blend in (0, 1]. Omit to use d_hat_lpf_cutoff_hz and dt."},"d_hat_max":{"anyOf":[{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Max","description":"Symmetric projection bound on every component of d_hat. Omit to keep the per-state observer_clip as the only bound."},"enable_stamped_cmd_vel":{"type":"boolean","title":"Enable Stamped Cmd Vel","description":"ROS 2 export only. False publishes geometry_msgs/Twist. True publishes TwistStamped. The solve is unchanged.","default":false},"cmd_vel_frame_id":{"type":"string","maxLength":64,"minLength":1,"title":"Cmd Vel Frame Id","description":"frame_id on TwistStamped exports. Default base_link. Letters, digits, underscore, slash, and hyphen only.","default":"base_link"},"max_fallback_steps":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Max Fallback Steps","description":"ROS 2 export only. Infeasible solves hold the last command for this many ticks, then publish zero and clear the delay buffer and disturbance estimate.","default":2},"X_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"X Ref","description":"State reference over the horizon, shape (N+1) by nx. Omit to hold x_ref."},"U_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"U Ref","description":"Input reference over the horizon, shape N by nu. Omit for the equilibrium input."},"d_forecast":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"D Forecast","description":"Disturbance forecast, shape N by nd. Omit for a zero forecast."},"slack_l1":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L1","description":"L1 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 1000."},"slack_l2":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L2","description":"L2 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 100."},"session_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Session Id","description":"Reuse this id across solve_mpc calls so the shifted primal and dual warm start stays with this closed loop. Omit it for a stateless solve. Max length 128. The seed is stored for this caller only."},"reset_warm_start":{"type":"boolean","title":"Reset Warm Start","description":"Drop this session_id's warm-start seed before the solve. Default false. The compiled solver stays.","default":false},"timeout_s":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Timeout S","description":"IPOPT wall-clock budget in seconds. Default 2, must be > 0 and <= 5.","default":2.0},"max_iter":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Iter","description":"IPOPT iteration cap. Default 200, must be >= 1 and <= 500.","default":200},"output_weight":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Output Weight","description":"Weight on the output residual z - z_ref, with z = C x + D u. Shape ny by ny. Omit for a zero weight, which leaves the quadratic cost on x and u unchanged."},"z_ref":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Z Ref","description":"Output reference, length ny, held at every stage. Omit for zeros."},"qf_source":{"type":"string","enum":["caller","discrete_riccati"],"title":"Qf Source","description":"Terminal weight source. caller uses Qf as sent. discrete_riccati replaces Qf with the discrete algebraic Riccati solution of (A, B, Q, R) on a linear plant.","default":"caller"},"solver":{"type":"string","title":"Solver","description":"Leave this at auto. The server selects the numerical method.","default":"auto"},"solver_backend":{"type":"string","enum":["auto","ipopt","fatrop"],"title":"Solver Backend","description":"Nonlinear program backend. ipopt is the existing solver and the default, so a payload that omits this field is unchanged. auto uses fatrop when this CasADi build has the plugin and the shooting NLP matches its stage-wise structure, and IPOPT otherwise. fatrop asks for that OCP solver and still falls back to IPOPT if structure detection rejects the formulation.","default":"ipopt"},"iteration_mode":{"type":"string","enum":["full","rti"],"title":"Iteration Mode","description":"full is the default and runs IPOPT to the request's iteration cap. rti takes at most two warm-started iterations, then resolves with the full cap only when the constraint residual is still above 1e-2.","default":"full"},"terminal_set":{"type":"boolean","title":"Terminal Set","description":"When true, the terminal state must lie in a sublevel set of the Qf Lyapunov function. A slack keeps a distant start feasible. Default false leaves the NLP unchanged. This constraint is solved with IPOPT.","default":false},"terminal_level":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Terminal Level","description":"Upper bound on (x_N - x_ref)^T Qf (x_N - x_ref) when terminal_set is true. Omit for max(4, nx)."},"robust_margin_m":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Robust Margin M","description":"Extra meters added to every keep-out radius. Omit for the nominal disk. The compiled obstacle rows stay the same; only the numeric radius changes."},"robust_keepout":{"type":"boolean","title":"Robust Keepout","description":"Alias of robust_margin_tightening for a closed-loop simulate. Grows each keep-out by the observer bias. Default false.","default":false},"robust_margin_tightening":{"type":"boolean","title":"Robust Margin Tightening","description":"When true, inflate every keep-out radius and shrink the corridor by gain * ||d_hat_xy|| plus margin_tightening_m. The pad is clamped to 0.15 m and the corridor never drops below 0.05 m or its original width. Default false leaves the nominal disks unchanged.","default":false},"observer_margin_gain":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Observer Margin Gain","description":"Scale on ||d_hat_xy|| inside the robust pad. Used only when tightening is on.","default":1.0},"margin_tightening_m":{"anyOf":[{"type":"number","maximum":0.15,"minimum":0.0},{"type":"null"}],"title":"Margin Tightening M","description":"Meters of worst-case obstacle penetration measured in autotune, added to the robust pad. Clamped with the observer term at 0.15 m. Omit for zero. Used only when tightening is on."},"linear_state_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear State Cost","description":"Economic stage price on each state node, length nx. Linear, not squared. Omit for zeros."},"linear_input_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear Input Cost","description":"Economic stage price on each input node, length nu. Linear, not squared. Omit for zeros."},"tube_bound":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Tube Bound","description":"Elementwise magnitude of an additive state disturbance for tube tightening. Length nx. Omit to leave the bounds unchanged. Linear plants only."},"scenario_forecasts":{"anyOf":[{"items":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Scenario Forecasts","description":"Disturbance scenarios, each shaped N by nd. Omit for one forecast. One input is shared across the scenarios. Linear plants only."},"constraints":{"anyOf":[{"$ref":"#/components/schemas/ConstraintSpec"},{"type":"null"}],"description":"Optional h(x, u, p) <= 0 rows and fixed obstacle slots. Omit for none. Needs the nonlinear solver. The linear-only solver option is rejected."},"costs":{"anyOf":[{"$ref":"#/components/schemas/CostSpec"},{"type":"null"}],"description":"Optional path-frame and zone least-squares residuals. Omit for the quadratic cost only. Needs the nonlinear solver when a path frame or a zone is set."},"target":{"type":"string","enum":["casadi_python","acados_python","ros2_node","ros2_package"],"title":"Target","description":"Standalone controller to write. casadi_python solves with CasADi and IPOPT. acados_python compiles the C solver on the machine that runs the file. ros2_node is one rclpy file. ros2_package is a zipped ament_python package.","default":"casadi_python"},"robustness_report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Robustness Report","description":"Optional field-readiness scorecard. ros2_package copies it into ROBUSTNESS_REPORT.md. The single-file targets ignore it."}},"additionalProperties":false,"type":"object","required":["system","x0","x_ref","Q","R","Rd","Qf"],"title":"ExportRequest","description":"A solve body plus the standalone controller to write.\n\n``casadi_python`` is the shipped target. The other name is reserved and\nrejected by the route until that exporter exists."},"ExpressionDynamicsSpec":{"properties":{"kind":{"type":"string","const":"expression","title":"Kind","description":"Plant kind. Must be \"expression\" for allowlisted scalar expressions.","default":"expression"},"time_mode":{"type":"string","enum":["continuous","discrete"],"title":"Time Mode","description":"continuous integrates the expressions with classical RK4 at dt. discrete uses each expression as the next state. Default continuous.","default":"continuous"},"nx":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Nx","description":"State dimension. Must be >= 1 and <= 8."},"nu":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Nu","description":"Input dimension. Must be >= 1 and <= 4."},"nd":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Nd","description":"Disturbance dimension. Must be >= 0 and <= 4. Zero is a plant with no disturbance channel. An unused d[i] when nd is positive does not change the map and reports detectable false."},"np":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Np","description":"Parameter dimension. Must be >= 0 and <= 8."},"f":{"items":{"type":"string"},"type":"array","maxItems":8,"minItems":1,"title":"F","description":"One scalar expression per state, length nx. Each string is at most 512 characters and the set is at most 4096. Symbols are x[i], u[i], d[i], p[i], pi, and the smooth allowlist sin, cos, tan, atan, atan2, exp, log, tanh, sqrt, hypot, sq, plus + - * / and ^2 ^3 ^4."},"p":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":8,"title":"P","description":"Numeric parameter values, length np. Baked into the discrete map."},"dt":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Dt","description":"Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit."},"N":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"N","description":"Prediction horizon in steps. Must be >= 1 and <= 60."},"x_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Min","description":"Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."},"x_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Max","description":"Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."},"u_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Min","description":"Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."},"u_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Max","description":"Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."},"du_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Min","description":"Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."},"du_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Max","description":"Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."},"C":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"C","description":"Output matrix, shape ny by nx, with ny <= 8. Omit for identity."}},"additionalProperties":false,"type":"object","required":["nx","nu","nd","np","f","dt","N"],"title":"ExpressionDynamicsSpec","description":"Allowlisted scalar expressions, one per state row.\n\n``time_mode`` ``continuous`` is integrated with classical RK4 at ``dt``.\n``discrete`` means each expression is already the next state. ``p`` is a\nnumeric parameter vector baked into the discrete map. ``nd`` may be 0.\nDeclaring ``nd >= 1`` and never using ``d[i]`` is accepted; detectability\nis then false because the disturbance columns of the discrete Jacobian are zero."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KPIScorecard":{"properties":{"target_max_overshoot_pct":{"type":"number","minimum":0.0,"title":"Target Max Overshoot Pct","description":"Overshoot target in percent. Must be >= 0."},"settling_time_weight":{"type":"number","minimum":0.0,"title":"Settling Time Weight","description":"Weight on settling time in the score. Must be >= 0."},"control_effort_weight":{"type":"number","minimum":0.0,"title":"Control Effort Weight","description":"Weight on control effort in the score. Must be >= 0."},"slew_penalty_weight":{"type":"number","minimum":0.0,"title":"Slew Penalty Weight","description":"Weight on input slew in the score. Must be >= 0."},"chatter_penalty_weight":{"type":"number","minimum":0.0,"title":"Chatter Penalty Weight","description":"Weight on normalized slew RMS plus control-rate reversals. Must be >= 0.","default":0.05},"max_optuna_trials":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Max Optuna Trials","description":"Optuna trials in the study. Must be >= 1 and <= 40."},"timeout_seconds":{"type":"number","maximum":120.0,"exclusiveMinimum":0.0,"title":"Timeout Seconds","description":"Study wall-clock limit in seconds. Must be > 0 and <= 120. The study stops at this budget."}},"additionalProperties":false,"type":"object","required":["target_max_overshoot_pct","settling_time_weight","control_effort_weight","slew_penalty_weight","max_optuna_trials","timeout_seconds"],"title":"KPIScorecard"},"KeepOutObstacle":{"properties":{"x":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"X","description":"Center x, in the same units as state 0."},"y":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Y","description":"Center y, in the same units as state 1."},"radius":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Radius","description":"Circle radius. Must be >= 0."},"margin":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Margin","description":"Extra clearance added to the radius. Omit for 0.","default":0.0},"vx":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Vx","description":"Constant velocity along x. Omit for a stationary obstacle.","default":0.0},"vy":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Vy","description":"Constant velocity along y. Omit for a stationary obstacle.","default":0.0},"vz":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Vz","description":"Constant velocity along z. Omit for a stationary obstacle.","default":0.0}},"additionalProperties":false,"type":"object","required":["x","y","radius"],"title":"KeepOutObstacle","description":"One circular keep-out in the plant x-y plane. States 0 and 1 are the plane."},"LinearStateSpaceSpec":{"properties":{"kind":{"type":"string","const":"linear","title":"Kind","description":"Plant kind. Must be \"linear\" for matrices A and B.","default":"linear"},"time_mode":{"type":"string","enum":["discrete","continuous"],"title":"Time Mode","description":"discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.","default":"discrete"},"A":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"A","description":"State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode."},"B":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"B","description":"Input matrix, shape nx by nu, with nu <= 12."},"C":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"C","description":"Output matrix, shape ny by nx. Omit for identity, which uses the full state."},"D":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"D","description":"Feedthrough matrix, shape ny by nu. Omit when there is no direct term."},"Bd":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Bd","description":"Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."},"dt":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Dt","description":"Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit."},"N":{"type":"integer","minimum":1.0,"title":"N","description":"Prediction horizon in steps. Must be >= 1. Values above 100 are rejected."},"x_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Min","description":"Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."},"x_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Max","description":"Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."},"u_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Min","description":"Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."},"u_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Max","description":"Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."},"du_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Min","description":"Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."},"du_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Max","description":"Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."}},"additionalProperties":false,"type":"object","required":["A","B","dt","N"],"title":"LinearStateSpaceSpec","description":"Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted."},"NonlinearTemplateSpec":{"properties":{"kind":{"type":"string","const":"nonlinear","title":"Kind","description":"Plant kind. Must be \"nonlinear\" for a registered template.","default":"nonlinear"},"name":{"type":"string","enum":["double_integrator","thermal_rc_zone","soil_moisture_cascade","unicycle_kinematics","gravity_tank","cart_pendulum","icr_skid_steer","ackermann","quadrotor_3d","thermal_valve_process","marine_usv","anti_sway_crane","process_valve","quadrotor"],"title":"Name","description":"Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, unicycle_kinematics, gravity_tank, cart_pendulum, icr_skid_steer, ackermann, quadrotor_3d, thermal_valve_process, marine_usv, anti_sway_crane, process_valve, or quadrotor."},"parameters":{"additionalProperties":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"object","title":"Parameters","description":"Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. gravity_tank: dt > 0, discharge > 0, inflow_gain > 0. cart_pendulum: dt, cart_mass, pole_mass, friction, inertia, gravity, and length, each > 0. icr_skid_steer: dt > 0 and slip, a signed length with abs(slip) <= 10. Body-frame lateral velocity equals slip * yaw_rate. If x_icr is the forward coordinate of the instantaneous center, positive ahead of the reference point, slip = -x_icr. ackermann: dt > 0 and wheelbase > 0. The steer component of u_min and u_max must lie inside ±1.2 rad. quadrotor_3d: dt from 0.02 to 0.05 s (20–50 Hz outer loop), gravity > 0, and drag >= 0. Inputs are roll, pitch, and thrust acceleration. Tilt bounds stay inside ±0.45 rad. Thrust bounds stay inside 0.4 g to 2 g. Optional attitude_tau_s > 0 adds a first-order roll/pitch lag, a yaw state, and a yaw-rate command. Omit it, or send 0, and the 6-state outer loop is unchanged. thermal_valve_process: dt > 0, rangeability > 1, flow_max > 0, tau_valve > 0, capacity > 0, loss >= 0, ambient, and heater_gain > 0. Valve flow is R^(valve_pos - 1). marine_usv: dt > 0, mass > 0, inertia > 0. Added mass and quadratic drag coefficients are >= 0. anti_sway_crane: dt > 0, cable_length > 0, cart_mass > 0, load_mass > 0, gravity > 0, damping >= 0. The input is cart force. Sway angle limits are soft state bounds. process_valve: dt > 0, capacitance > 0, tau > 0, cv > 0, and supply > 0. quadrotor: dt > 0, mass > 0, gravity > 0, and attitude_tau > 0. Unknown keys are rejected."},"N":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"N","description":"Prediction horizon in steps. Must be >= 1 and <= 100."},"x_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Min","description":"Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."},"x_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Max","description":"Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."},"u_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Min","description":"Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."},"u_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Max","description":"Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."},"du_min":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Min","description":"Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."},"du_max":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Du Max","description":"Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."}},"additionalProperties":false,"type":"object","required":["name","parameters","N"],"title":"NonlinearTemplateSpec","description":"Registered dynamics template plus a validated parameter dictionary."},"ObstacleSlot":{"properties":{"cx":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Cx","description":"Center along the first position index, in the plant's state units."},"cy":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Cy","description":"Center along the second position index, in the plant's state units."},"r":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"R","description":"Radius. Must be >= 0."},"active":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Active","description":"1 keeps the circle. 0 drops the row. No other value is accepted."},"vx":{"type":"number","title":"Vx","description":"Constant velocity along the first position index. Omit for 0.","default":0.0},"vy":{"type":"number","title":"Vy","description":"Constant velocity along the second position index. Omit for 0.","default":0.0},"vz":{"type":"number","title":"Vz","description":"Constant vertical velocity. Omit for 0. Planar circles ignore it.","default":0.0}},"additionalProperties":false,"type":"object","required":["cx","cy","r","active"],"title":"ObstacleSlot","description":"One fixed circle. ``active`` is 0 or 1 and is not part of caller ``p``."},"ObstacleSlots":{"properties":{"position":{"items":{"type":"integer"},"type":"array","maxItems":2,"minItems":2,"title":"Position","description":"Two distinct state indexes for the circle plane. Example: [0, 1]."},"slots":{"items":{"$ref":"#/components/schemas/ObstacleSlot"},"type":"array","maxItems":8,"minItems":1,"title":"Slots","description":"Circle slots. Length 1 to 8. Each is cx, cy, r, active."}},"additionalProperties":false,"type":"object","required":["position","slots"],"title":"ObstacleSlots","description":"At most eight circles. Their four numbers each sit outside ``np <= 8``."},"PathFrameCost":{"properties":{"position":{"items":{"type":"integer"},"type":"array","maxItems":2,"minItems":2,"title":"Position","description":"Two distinct state indexes of the plane the path is written in. Example: [0, 1]."},"heading":{"type":"integer","title":"Heading","description":"State index of the heading. Must differ from both position indexes."},"longitudinal_weight":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Longitudinal Weight","description":"Weight on the squared along-track residual. Must be >= 0. Default 1.","default":1.0},"lateral_weight":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Lateral Weight","description":"Weight on the squared cross-track residual. Must be >= 0. Default 1.","default":1.0},"heading_weight":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Heading Weight","description":"Weight on both squared heading residuals, sin(heading error) and 1 - cos(heading error). Must be >= 0. Default 1. The two residuals share this weight.","default":1.0}},"additionalProperties":false,"type":"object","required":["position","heading"],"title":"PathFrameCost","description":"Squared path residuals. Heading uses both sin and 1 - cos."},"RevealObstacle":{"properties":{"step":{"type":"integer","maximum":200.0,"minimum":0.0,"title":"Step","description":"Closed-loop step at which the obstacle is revealed."},"x":{"type":"number","title":"X","description":"Obstacle center, x, meters."},"y":{"type":"number","title":"Y","description":"Obstacle center, y, meters."},"radius":{"type":"number","exclusiveMinimum":0.0,"title":"Radius","description":"Obstacle radius, meters."},"margin":{"type":"number","minimum":0.0,"title":"Margin","description":"Extra keep-out, meters.","default":0.0},"height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height","description":"Optional height, meters. Omit for a pillar."}},"additionalProperties":false,"type":"object","required":["step","x","y","radius"],"title":"RevealObstacle","description":"An obstacle that appears at one closed-loop step and stays visible."},"SimulateRequest":{"properties":{"system":{"oneOf":[{"$ref":"#/components/schemas/LinearStateSpaceSpec"},{"$ref":"#/components/schemas/NonlinearTemplateSpec"},{"$ref":"#/components/schemas/ExpressionDynamicsSpec"}],"title":"System","description":"Plant to control. Free validate_problem first, then this paid solve, then autotune if the weights are still unknown.","discriminator":{"propertyName":"kind","mapping":{"expression":"#/components/schemas/ExpressionDynamicsSpec","linear":"#/components/schemas/LinearStateSpaceSpec","nonlinear":"#/components/schemas/NonlinearTemplateSpec"}}},"x0":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X0","description":"Initial state, length nx, at most 24 entries, in the plant's state units."},"x_ref":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X Ref","description":"Constant state reference, length nx, at most 24 entries. Ignored for the trajectory when X_ref is set."},"Q":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Q","description":"Stage state weight, shape nx by nx."},"R":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"R","description":"Input weight, shape nu by nu."},"Rd":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Rd","description":"Slew weight on delta-u, shape nu by nu."},"Qf":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Qf","description":"Terminal state weight, shape nx by nx."},"d_hat":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"D Hat","description":"Constant disturbance estimate, length nd. Omit for zeros."},"u_prev":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Prev","description":"Previous applied input, length nu, used by the slew penalty. Omit for zeros."},"actuator_delay_steps":{"type":"integer","title":"Actuator Delay Steps","description":"Commands already in flight before the one being solved. 0 leaves the solve unchanged. Values outside 0..5 are clamped.","default":0},"actuator_delay_ms":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Actuator Delay Ms","description":"Optional delay in milliseconds. Used only when actuator_delay_steps is 0. Converted with round(ms / (dt * 1000)) and clamped to 0..5."},"corridor_half_width":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Corridor Half Width","description":"Optional half-width, in meters, of a soft corridor around the reference heading. Omit to add no corridor slacks. Nodes k = 1..N stay within this lateral distance, with a non-negative slack so a start outside the tube stays feasible."},"obstacles":{"items":{"$ref":"#/components/schemas/KeepOutObstacle"},"type":"array","maxItems":8,"title":"Obstacles","description":"Up to 8 circular keep-out zones in the x-y plane. Empty adds no obstacle slacks. Each zone is softened so a start inside the circle does not make IPOPT infeasible."},"enable_disturbance_observer":{"type":"boolean","title":"Enable Disturbance Observer","description":"When true, a lightweight observer estimates a constant state bias and the MPC predicts x+ = f(x, u) + d_hat. Default false leaves the NLP unchanged.","default":false},"observer_gain":{"type":"number","title":"Observer Gain","description":"Observer blend, clamped to 0.05..0.6. 0.25 is a slow bias tracker.","default":0.25},"observer_clip":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Observer Clip","description":"Per-state saturation on d_hat, length nx, or one number used for every state. Omit for a small default so a bad odometry sample cannot wind the estimate up."},"d_hat_lpf_cutoff_hz":{"type":"number","maximum":50.0,"minimum":0.0,"title":"D Hat Lpf Cutoff Hz","description":"First-order low-pass cutoff on the disturbance estimate, in hertz. 0 disables the extra filter. 1 Hz rejects odometry noise and still tracks a current. Ignored when d_hat_lpf_alpha is set.","default":1.0},"d_hat_lpf_alpha":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Lpf Alpha","description":"Discrete low-pass blend in (0, 1]. Omit to use d_hat_lpf_cutoff_hz and dt."},"d_hat_max":{"anyOf":[{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Max","description":"Symmetric projection bound on every component of d_hat. Omit to keep the per-state observer_clip as the only bound."},"enable_stamped_cmd_vel":{"type":"boolean","title":"Enable Stamped Cmd Vel","description":"ROS 2 export only. False publishes geometry_msgs/Twist. True publishes TwistStamped. The solve is unchanged.","default":false},"cmd_vel_frame_id":{"type":"string","maxLength":64,"minLength":1,"title":"Cmd Vel Frame Id","description":"frame_id on TwistStamped exports. Default base_link. Letters, digits, underscore, slash, and hyphen only.","default":"base_link"},"max_fallback_steps":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Max Fallback Steps","description":"ROS 2 export only. Infeasible solves hold the last command for this many ticks, then publish zero and clear the delay buffer and disturbance estimate.","default":2},"X_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"X Ref","description":"State reference over the horizon, shape (N+1) by nx. Omit to hold x_ref."},"U_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"U Ref","description":"Input reference over the horizon, shape N by nu. Omit for the equilibrium input."},"d_forecast":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"D Forecast","description":"Disturbance forecast, shape N by nd. Omit for a zero forecast."},"slack_l1":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L1","description":"L1 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 1000."},"slack_l2":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L2","description":"L2 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 100."},"session_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Session Id","description":"Reuse this id across solve_mpc calls so the shifted primal and dual warm start stays with this closed loop. Omit it for a stateless solve. Max length 128. The seed is stored for this caller only."},"reset_warm_start":{"type":"boolean","title":"Reset Warm Start","description":"Drop this session_id's warm-start seed before the solve. Default false. The compiled solver stays.","default":false},"timeout_s":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Timeout S","description":"IPOPT wall-clock budget in seconds. Default 2, must be > 0 and <= 5.","default":2.0},"max_iter":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Iter","description":"IPOPT iteration cap. Default 200, must be >= 1 and <= 500.","default":200},"output_weight":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Output Weight","description":"Weight on the output residual z - z_ref, with z = C x + D u. Shape ny by ny. Omit for a zero weight, which leaves the quadratic cost on x and u unchanged."},"z_ref":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Z Ref","description":"Output reference, length ny, held at every stage. Omit for zeros."},"qf_source":{"type":"string","enum":["caller","discrete_riccati"],"title":"Qf Source","description":"Terminal weight source. caller uses Qf as sent. discrete_riccati replaces Qf with the discrete algebraic Riccati solution of (A, B, Q, R) on a linear plant.","default":"caller"},"solver":{"type":"string","title":"Solver","description":"Leave this at auto. The server selects the numerical method.","default":"auto"},"solver_backend":{"type":"string","enum":["auto","ipopt","fatrop","sqp_rti"],"title":"Solver Backend","description":"ipopt is the browser rollout. fatrop is the same host solver as a paid solve. sqp_rti is accepted and is compiled only for an authenticated caller; an anonymous call is forced back to ipopt and never compiles C on this route.","default":"ipopt"},"iteration_mode":{"type":"string","enum":["full","rti"],"title":"Iteration Mode","description":"full is the default and runs IPOPT to the request's iteration cap. rti takes at most two warm-started iterations, then resolves with the full cap only when the constraint residual is still above 1e-2.","default":"full"},"terminal_set":{"type":"boolean","title":"Terminal Set","description":"When true, the terminal state must lie in a sublevel set of the Qf Lyapunov function. A slack keeps a distant start feasible. Default false leaves the NLP unchanged. This constraint is solved with IPOPT.","default":false},"terminal_level":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Terminal Level","description":"Upper bound on (x_N - x_ref)^T Qf (x_N - x_ref) when terminal_set is true. Omit for max(4, nx)."},"robust_margin_m":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Robust Margin M","description":"Extra meters added to every keep-out radius. Omit for the nominal disk. The compiled obstacle rows stay the same; only the numeric radius changes."},"robust_keepout":{"type":"boolean","title":"Robust Keepout","description":"Alias of robust_margin_tightening for a closed-loop simulate. Grows each keep-out by the observer bias. Default false.","default":false},"robust_margin_tightening":{"type":"boolean","title":"Robust Margin Tightening","description":"When true, inflate every keep-out radius and shrink the corridor by gain * ||d_hat_xy|| plus margin_tightening_m. The pad is clamped to 0.15 m and the corridor never drops below 0.05 m or its original width. Default false leaves the nominal disks unchanged.","default":false},"observer_margin_gain":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Observer Margin Gain","description":"Scale on ||d_hat_xy|| inside the robust pad. Used only when tightening is on.","default":1.0},"margin_tightening_m":{"anyOf":[{"type":"number","maximum":0.15,"minimum":0.0},{"type":"null"}],"title":"Margin Tightening M","description":"Meters of worst-case obstacle penetration measured in autotune, added to the robust pad. Clamped with the observer term at 0.15 m. Omit for zero. Used only when tightening is on."},"linear_state_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear State Cost","description":"Economic stage price on each state node, length nx. Linear, not squared. Omit for zeros."},"linear_input_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear Input Cost","description":"Economic stage price on each input node, length nu. Linear, not squared. Omit for zeros."},"tube_bound":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Tube Bound","description":"Elementwise magnitude of an additive state disturbance for tube tightening. Length nx. Omit to leave the bounds unchanged. Linear plants only."},"scenario_forecasts":{"anyOf":[{"items":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Scenario Forecasts","description":"Disturbance scenarios, each shaped N by nd. Omit for one forecast. One input is shared across the scenarios. Linear plants only."},"constraints":{"anyOf":[{"$ref":"#/components/schemas/ConstraintSpec"},{"type":"null"}],"description":"Optional h(x, u, p) <= 0 rows and fixed obstacle slots. Omit for none. Needs the nonlinear solver. The linear-only solver option is rejected."},"costs":{"anyOf":[{"$ref":"#/components/schemas/CostSpec"},{"type":"null"}],"description":"Optional path-frame and zone least-squares residuals. Omit for the quadratic cost only. Needs the nonlinear solver when a path frame or a zone is set."},"steps":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Steps","description":"Closed-loop steps to simulate. Default 40. Must be from 1 to 200.","default":40},"waypoints":{"anyOf":[{"items":{"$ref":"#/components/schemas/SimulateWaypoint"},"type":"array","maxItems":500},{"type":"null"}],"title":"Waypoints","description":"Optional reference switches. Each x_ref must match nx. At most 500. The active reference at a step is the latest waypoint whose step is <= the current step. Omit to keep x_ref for the whole rollout."},"plan_to_goal":{"type":"boolean","title":"Plan To Goal","description":"When true, replace waypoints with a single-goal path rolled out by the plant dynamics under commands that already respect the input and slew limits. An unreachable goal is rejected instead of tracked as a guessed polyline.","default":false},"plan_pattern":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plan Pattern","description":"Optional planner pattern. 'helix' asks the quadrotor planner for one cleared orbit."},"replan_tube_m":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Replan Tube M","description":"Replan when the position leaves this tube around the certified tail. Omit for 0.55 m on a kinodynamic rollout, and for no replanning otherwise."},"reveal_obstacle":{"anyOf":[{"$ref":"#/components/schemas/RevealObstacle"},{"type":"null"}],"description":"Optional obstacle revealed mid-rollout. It invalidates the remaining tail and requests a replan."},"plant_disturbance":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Plant Disturbance","description":"Disturbance applied only inside the simulated plant step. The NLP and the offset observer's nominal model keep disturbance_hat (zeros when omitted). Omit to step the plant with disturbance_hat, which is the previous behavior."},"solver_drop_at":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Solver Drop At","description":"Closed-loop step at which IPOPT stops. From there the plant holds the last command for max_fallback_steps, then hover thrust on quadrotor_3d or zeros on every other plant. Those steps are integrated. They are not included in solve_ms."},"codegen":{"type":"boolean","title":"Codegen","description":"Ask for the compiled oracle. Anonymous callers are forced to false so this route cannot invoke gcc. Authenticated callers may leave it true.","default":false},"planner_fidelity":{"type":"string","enum":["fast","high_fidelity"],"title":"Planner Fidelity","description":"Kinodynamic search fidelity. Omit for fast. The try page sends high_fidelity so a live solve uses the full search.","default":"fast"}},"additionalProperties":false,"type":"object","required":["system","x0","x_ref","Q","R","Rd","Qf"],"title":"SimulateRequest","description":"A solve body plus how many closed-loop steps to show in the browser.\n\n``steps`` defaults to 40 and cannot exceed 200. The route stops early when\nthe rollout passes its wall-clock budget. ``waypoints`` is optional. Omit it\nand the single ``x_ref`` is used at every step."},"SimulateWaypoint":{"properties":{"step":{"type":"integer","minimum":0.0,"title":"Step","description":"Closed-loop step at which x_ref becomes active. Must be >= 0."},"x_ref":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","minItems":1,"title":"X Ref","description":"Reference state, one value per state. Same length as the plant nx."}},"additionalProperties":false,"type":"object","required":["step","x_ref"],"title":"SimulateWaypoint","description":"One reference switch inside a browser rollout.\n\n``step`` is the closed-loop index where this ``x_ref`` becomes the solver target.\nThe solve, validate, and export bodies do not accept this object."},"SolveRequest":{"properties":{"system":{"oneOf":[{"$ref":"#/components/schemas/LinearStateSpaceSpec"},{"$ref":"#/components/schemas/NonlinearTemplateSpec"},{"$ref":"#/components/schemas/ExpressionDynamicsSpec"}],"title":"System","description":"Plant to control. Free validate_problem first, then this paid solve, then autotune if the weights are still unknown.","discriminator":{"propertyName":"kind","mapping":{"expression":"#/components/schemas/ExpressionDynamicsSpec","linear":"#/components/schemas/LinearStateSpaceSpec","nonlinear":"#/components/schemas/NonlinearTemplateSpec"}}},"x0":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X0","description":"Initial state, length nx, at most 24 entries, in the plant's state units."},"x_ref":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":24,"title":"X Ref","description":"Constant state reference, length nx, at most 24 entries. Ignored for the trajectory when X_ref is set."},"Q":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Q","description":"Stage state weight, shape nx by nx."},"R":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"R","description":"Input weight, shape nu by nu."},"Rd":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Rd","description":"Slew weight on delta-u, shape nu by nu."},"Qf":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array","title":"Qf","description":"Terminal state weight, shape nx by nx."},"d_hat":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"D Hat","description":"Constant disturbance estimate, length nd. Omit for zeros."},"u_prev":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"U Prev","description":"Previous applied input, length nu, used by the slew penalty. Omit for zeros."},"actuator_delay_steps":{"type":"integer","title":"Actuator Delay Steps","description":"Commands already in flight before the one being solved. 0 leaves the solve unchanged. Values outside 0..5 are clamped.","default":0},"actuator_delay_ms":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Actuator Delay Ms","description":"Optional delay in milliseconds. Used only when actuator_delay_steps is 0. Converted with round(ms / (dt * 1000)) and clamped to 0..5."},"corridor_half_width":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Corridor Half Width","description":"Optional half-width, in meters, of a soft corridor around the reference heading. Omit to add no corridor slacks. Nodes k = 1..N stay within this lateral distance, with a non-negative slack so a start outside the tube stays feasible."},"obstacles":{"items":{"$ref":"#/components/schemas/KeepOutObstacle"},"type":"array","maxItems":8,"title":"Obstacles","description":"Up to 8 circular keep-out zones in the x-y plane. Empty adds no obstacle slacks. Each zone is softened so a start inside the circle does not make IPOPT infeasible."},"enable_disturbance_observer":{"type":"boolean","title":"Enable Disturbance Observer","description":"When true, a lightweight observer estimates a constant state bias and the MPC predicts x+ = f(x, u) + d_hat. Default false leaves the NLP unchanged.","default":false},"observer_gain":{"type":"number","title":"Observer Gain","description":"Observer blend, clamped to 0.05..0.6. 0.25 is a slow bias tracker.","default":0.25},"observer_clip":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Observer Clip","description":"Per-state saturation on d_hat, length nx, or one number used for every state. Omit for a small default so a bad odometry sample cannot wind the estimate up."},"d_hat_lpf_cutoff_hz":{"type":"number","maximum":50.0,"minimum":0.0,"title":"D Hat Lpf Cutoff Hz","description":"First-order low-pass cutoff on the disturbance estimate, in hertz. 0 disables the extra filter. 1 Hz rejects odometry noise and still tracks a current. Ignored when d_hat_lpf_alpha is set.","default":1.0},"d_hat_lpf_alpha":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Lpf Alpha","description":"Discrete low-pass blend in (0, 1]. Omit to use d_hat_lpf_cutoff_hz and dt."},"d_hat_max":{"anyOf":[{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"D Hat Max","description":"Symmetric projection bound on every component of d_hat. Omit to keep the per-state observer_clip as the only bound."},"enable_stamped_cmd_vel":{"type":"boolean","title":"Enable Stamped Cmd Vel","description":"ROS 2 export only. False publishes geometry_msgs/Twist. True publishes TwistStamped. The solve is unchanged.","default":false},"cmd_vel_frame_id":{"type":"string","maxLength":64,"minLength":1,"title":"Cmd Vel Frame Id","description":"frame_id on TwistStamped exports. Default base_link. Letters, digits, underscore, slash, and hyphen only.","default":"base_link"},"max_fallback_steps":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Max Fallback Steps","description":"ROS 2 export only. Infeasible solves hold the last command for this many ticks, then publish zero and clear the delay buffer and disturbance estimate.","default":2},"X_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"X Ref","description":"State reference over the horizon, shape (N+1) by nx. Omit to hold x_ref."},"U_ref":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"U Ref","description":"Input reference over the horizon, shape N by nu. Omit for the equilibrium input."},"d_forecast":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"D Forecast","description":"Disturbance forecast, shape N by nd. Omit for a zero forecast."},"slack_l1":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L1","description":"L1 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 1000."},"slack_l2":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Slack L2","description":"L2 penalty on soft state-bound slack. Must be >= 0. Omit for the solver default 100."},"session_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Session Id","description":"Reuse this id across solve_mpc calls so the shifted primal and dual warm start stays with this closed loop. Omit it for a stateless solve. Max length 128. The seed is stored for this caller only."},"reset_warm_start":{"type":"boolean","title":"Reset Warm Start","description":"Drop this session_id's warm-start seed before the solve. Default false. The compiled solver stays.","default":false},"timeout_s":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Timeout S","description":"IPOPT wall-clock budget in seconds. Default 2, must be > 0 and <= 5.","default":2.0},"max_iter":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Iter","description":"IPOPT iteration cap. Default 200, must be >= 1 and <= 500.","default":200},"output_weight":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Output Weight","description":"Weight on the output residual z - z_ref, with z = C x + D u. Shape ny by ny. Omit for a zero weight, which leaves the quadratic cost on x and u unchanged."},"z_ref":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Z Ref","description":"Output reference, length ny, held at every stage. Omit for zeros."},"qf_source":{"type":"string","enum":["caller","discrete_riccati"],"title":"Qf Source","description":"Terminal weight source. caller uses Qf as sent. discrete_riccati replaces Qf with the discrete algebraic Riccati solution of (A, B, Q, R) on a linear plant.","default":"caller"},"solver":{"type":"string","title":"Solver","description":"Leave this at auto. The server selects the numerical method.","default":"auto"},"solver_backend":{"type":"string","enum":["auto","ipopt","fatrop"],"title":"Solver Backend","description":"Nonlinear program backend. ipopt is the existing solver and the default, so a payload that omits this field is unchanged. auto uses fatrop when this CasADi build has the plugin and the shooting NLP matches its stage-wise structure, and IPOPT otherwise. fatrop asks for that OCP solver and still falls back to IPOPT if structure detection rejects the formulation.","default":"ipopt"},"iteration_mode":{"type":"string","enum":["full","rti"],"title":"Iteration Mode","description":"full is the default and runs IPOPT to the request's iteration cap. rti takes at most two warm-started iterations, then resolves with the full cap only when the constraint residual is still above 1e-2.","default":"full"},"terminal_set":{"type":"boolean","title":"Terminal Set","description":"When true, the terminal state must lie in a sublevel set of the Qf Lyapunov function. A slack keeps a distant start feasible. Default false leaves the NLP unchanged. This constraint is solved with IPOPT.","default":false},"terminal_level":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Terminal Level","description":"Upper bound on (x_N - x_ref)^T Qf (x_N - x_ref) when terminal_set is true. Omit for max(4, nx)."},"robust_margin_m":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Robust Margin M","description":"Extra meters added to every keep-out radius. Omit for the nominal disk. The compiled obstacle rows stay the same; only the numeric radius changes."},"robust_keepout":{"type":"boolean","title":"Robust Keepout","description":"Alias of robust_margin_tightening for a closed-loop simulate. Grows each keep-out by the observer bias. Default false.","default":false},"robust_margin_tightening":{"type":"boolean","title":"Robust Margin Tightening","description":"When true, inflate every keep-out radius and shrink the corridor by gain * ||d_hat_xy|| plus margin_tightening_m. The pad is clamped to 0.15 m and the corridor never drops below 0.05 m or its original width. Default false leaves the nominal disks unchanged.","default":false},"observer_margin_gain":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Observer Margin Gain","description":"Scale on ||d_hat_xy|| inside the robust pad. Used only when tightening is on.","default":1.0},"margin_tightening_m":{"anyOf":[{"type":"number","maximum":0.15,"minimum":0.0},{"type":"null"}],"title":"Margin Tightening M","description":"Meters of worst-case obstacle penetration measured in autotune, added to the robust pad. Clamped with the observer term at 0.15 m. Omit for zero. Used only when tightening is on."},"linear_state_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear State Cost","description":"Economic stage price on each state node, length nx. Linear, not squared. Omit for zeros."},"linear_input_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear Input Cost","description":"Economic stage price on each input node, length nu. Linear, not squared. Omit for zeros."},"tube_bound":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Tube Bound","description":"Elementwise magnitude of an additive state disturbance for tube tightening. Length nx. Omit to leave the bounds unchanged. Linear plants only."},"scenario_forecasts":{"anyOf":[{"items":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Scenario Forecasts","description":"Disturbance scenarios, each shaped N by nd. Omit for one forecast. One input is shared across the scenarios. Linear plants only."},"constraints":{"anyOf":[{"$ref":"#/components/schemas/ConstraintSpec"},{"type":"null"}],"description":"Optional h(x, u, p) <= 0 rows and fixed obstacle slots. Omit for none. Needs the nonlinear solver. The linear-only solver option is rejected."},"costs":{"anyOf":[{"$ref":"#/components/schemas/CostSpec"},{"type":"null"}],"description":"Optional path-frame and zone least-squares residuals. Omit for the quadratic cost only. Needs the nonlinear solver when a path frame or a zone is set."}},"additionalProperties":false,"type":"object","required":["system","x0","x_ref","Q","R","Rd","Qf"],"title":"SolveRequest"},"SysIdFitRequest":{"properties":{"plant":{"type":"string","enum":["icr_skid_steer","ackermann","marine_usv","quadrotor_3d"],"title":"Plant","description":"Which registered plant to fit."},"rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/SysIdFitRow"},"type":"array"},{"type":"null"}],"title":"Rows","description":"JSON samples. At least 80 when csv is omitted."},"csv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csv","description":"Headered CSV text. Same columns the extract script writes, or t,x0,..,u0,.."}},"additionalProperties":false,"type":"object","required":["plant"],"title":"SysIdFitRequest","description":"A hardware log for delay estimation and a nonlinear parameter fit.\n\nThis route is free. Send either ``rows`` or ``csv``. The plant is one of\nicr_skid_steer, ackermann, marine_usv, or quadrotor_3d."},"SysIdFitRow":{"properties":{"t":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"T","description":"Sample time. Seconds. Strictly increasing down the log."},"x":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":12,"minItems":3,"title":"X","description":"Measured state at t."},"u":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array","maxItems":4,"minItems":1,"title":"U","description":"Command issued at t, before the actuator delay."}},"additionalProperties":false,"type":"object","required":["t","x","u"],"title":"SysIdFitRow","description":"One sample for the nonlinear plant fit. ``x`` and ``u`` are in plant order."},"SysIdRequest":{"properties":{"samples":{"items":{"$ref":"#/components/schemas/SysIdSample"},"type":"array","maxItems":2000,"minItems":4,"title":"Samples","description":"Logged (t, u, y) rows. Length 4 to 2000. This fit is free: no X-API-Key and no x402 charge."}},"additionalProperties":false,"type":"object","required":["samples"],"title":"SysIdRequest","description":"Logged ``(t, u, y)`` samples for a discrete linear fit. The route stays free.\n\nFour to 2000 rows. Every ``y`` has length 1..24 and every ``u`` has length\n1..12, and those widths do not change from row to row. Timestamps are finite\nand strictly increasing. Those checks run before any numeric fit."},"SysIdSample":{"properties":{"t":{"type":"number","title":"T","description":"Sample time. Must be finite, and strictly increasing from row to row. Use one time unit for the whole log."},"u":{"items":{"type":"number"},"type":"array","maxItems":12,"minItems":1,"title":"U","description":"Input sample, length 1 to 12. A scalar is wrapped as a one-element list. Every row uses the same length."},"y":{"items":{"type":"number"},"type":"array","maxItems":24,"minItems":1,"title":"Y","description":"Output sample, length 1 to 24. A scalar is wrapped as a one-element list. Every row uses the same length."}},"additionalProperties":false,"type":"object","required":["t","u","y"],"title":"SysIdSample","description":"One logged sample. ``u`` and ``y`` are scalars or vectors."},"TemplateAutotuneRequest":{"properties":{"name":{"type":"string","enum":["root_zone_irrigation","battery_peak_shaving","differential_drive"],"title":"Name","description":"Built-in plant: root_zone_irrigation, battery_peak_shaving, or differential_drive."},"max_trials":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Max Trials","description":"Optuna trials for that plant. Default 20, must be >= 1 and <= 30.","default":20},"study_version":{"anyOf":[{"type":"string","enum":["published","physics-v1"]},{"type":"null"}],"title":"Study Version","description":"Irrigation only. Omit for physics-v1: start [0.17, 0.22, 0.22], comfort reference, horizon 9. published keeps the older start-on-reference horizon 24 scenario."}},"additionalProperties":false,"type":"object","required":["name"],"title":"TemplateAutotuneRequest"},"ValidateRequest":{"properties":{"system":{"oneOf":[{"$ref":"#/components/schemas/LinearStateSpaceSpec"},{"$ref":"#/components/schemas/NonlinearTemplateSpec"},{"$ref":"#/components/schemas/ExpressionDynamicsSpec"}],"title":"System","description":"Plant to check. This call is free: no X-API-Key and no x402 charge. Run it before the paid solve, and before autotune.","discriminator":{"propertyName":"kind","mapping":{"expression":"#/components/schemas/ExpressionDynamicsSpec","linear":"#/components/schemas/LinearStateSpaceSpec","nonlinear":"#/components/schemas/NonlinearTemplateSpec"}}},"x0":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X0","description":"Initial state, length nx. Omit to skip that length check."},"x_ref":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"X Ref","description":"State reference, length nx. Omit to skip that length check."},"Q":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Q","description":"Stage state weight, shape nx by nx. Omit to skip the weight check."},"R":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"R","description":"Input weight, shape nu by nu. Omit to skip the weight check."},"Rd":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Rd","description":"Slew weight, shape nu by nu. Omit to skip the weight check."},"Qf":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Qf","description":"Terminal state weight, shape nx by nx. Omit to skip the weight check."},"d_hat":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"D Hat","description":"Disturbance estimate, length nd. Omit to skip that length check."},"output_weight":{"anyOf":[{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},{"type":"null"}],"title":"Output Weight","description":"Output residual weight, shape ny by ny. Omit to skip that check."},"z_ref":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Z Ref","description":"Output reference, length ny. Omit to skip that check."},"qf_source":{"type":"string","enum":["caller","discrete_riccati"],"title":"Qf Source","description":"caller checks Qf only. discrete_riccati also requires a linear plant.","default":"caller"},"solver":{"type":"string","title":"Solver","description":"Leave this at auto. The server selects the numerical method.","default":"auto"},"linear_state_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear State Cost","description":"Linear state stage cost, length nx. Omit to skip that check."},"linear_input_cost":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Linear Input Cost","description":"Linear input stage cost, length nu. Omit to skip that check."},"tube_bound":{"anyOf":[{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},{"type":"null"}],"title":"Tube Bound","description":"Tube disturbance magnitude, length nx. Omit to skip that check."},"scenario_forecasts":{"anyOf":[{"items":{"items":{"items":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0},"type":"array"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Scenario Forecasts","description":"Scenario forecasts, each N by nd. Omit to skip that check."},"constraints":{"anyOf":[{"$ref":"#/components/schemas/ConstraintSpec"},{"type":"null"}],"description":"h rows and obstacle slots to check. Omit to skip that check. The linear-only solver option is rejected."},"costs":{"anyOf":[{"$ref":"#/components/schemas/CostSpec"},{"type":"null"}],"description":"Path-frame and zone residuals to check. Omit to skip that check."}},"additionalProperties":false,"type":"object","required":["system"],"title":"ValidateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ZoneBand":{"properties":{"state":{"type":"integer","minimum":0.0,"title":"State","description":"State index this band applies to."},"center":{"type":"number","maximum":1000000000000.0,"minimum":-1000000000000.0,"title":"Center","description":"Band center, in that state's units."},"half_width":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Half Width","description":"Half width of the band. Must be >= 0."},"weight":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Weight","description":"Quadratic weight on the band slack. Zero leaves the band unpaid. Must be >= 0."}},"additionalProperties":false,"type":"object","required":["state","center","half_width","weight"],"title":"ZoneBand","description":"One slack band. Inside the band the residual is zero."},"_JobExportBody":{"properties":{"target":{"type":"string","enum":["casadi_python","acados_python","ros2_node","ros2_package"],"title":"Target","default":"casadi_python"}},"additionalProperties":false,"type":"object","title":"_JobExportBody","description":"Optional target for a finished autotune job. The plant and weights come from the job."}}}}