{"adoption": {"forks": 329, "observed_at": "2026-08-28T04:04:54.370103+00:00", "stars": 1501}, "canonical_url": "https://ross.abutalabs.com/products/ocs2", "card": {"archived": false, "artifact_type": "library", "description": "Optimal Control for Switched Systems", "domain": ["robotics", "simulation", "autonomous-vehicles"], "enriched": true, "function": ["simulation", "machine-learning", "robotics", "math", "developer-tools"], "health_score": 77, "homepage": "https://leggedrobotics.github.io/ocs2", "language": "C++", "license": "BSD-3-Clause", "license_family": "permissive", "maturity": "active", "member_repos": ["leggedrobotics/ocs2"], "name": "leggedrobotics/ocs2", "platform": ["cpp", "python"], "pushed_at": "2026-07-20T14:29:24+00:00", "repo": "leggedrobotics/ocs2", "stars": 1501, "tags": ["optimal-control", "mpc", "model-predictive-control", "switched-systems", "slq", "ilqr", "sqp", "automatic-differentiation", "urdf", "pinocchio", "legged-robots", "algorithms", "linux", "ros"], "topics": ["optimal-control", "mpc", "robotics", "control"], "urls": [], "use_cases": ["implement real-time model predictive control for a legged robot", "solve nonlinear optimal control problems with switched-system dynamics", "build MPC controllers from a URDF robot model with self-collision avoidance", "generate derivatives of system dynamics and costs via automatic differentiation", "deploy MPC on robots with limited onboard computation using ROS", "run cartpole, quadrotor, or mobile manipulator MPC examples"], "what_it_is": "OCS2 is a C++ toolbox for formulating and solving nonlinear optimal control problems, with an emphasis on real-time Model Predictive Control (MPC) for robotics. It provides multiple solvers (SLQ, iLQR, SQP, SLP, IPM), switched-system support, automatic differentiation, URDF-based robot modeling tools, and ROS interfaces.", "when_to_avoid": ["you need a lightweight general-purpose optimizer without robotics focus", "your project does not use C++ or ROS and you only need simple scripting", "you require a mature Python-first control library instead"], "when_to_choose": ["you need real-time nonlinear MPC for robotic platforms", "your problem involves switched systems with mode schedules and jump maps", "you want URDF-based modeling, Pinocchio integration, and ROS deployment tooling", "you need a choice of solvers (SLQ, iLQR, SQP, SLP, IPM) with constraint handling"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/ocs2", "repo": "leggedrobotics/ocs2", "role": "main", "score": 65}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.370103+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:32:56.728751+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6afe7fe7dd8ef70f92d5570fa760c383d04982c375e27cd4fbb26547cf7d6d03", "fetched_at": "2026-08-28T04:04:54.370103+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leggedrobotics/ocs2"}, {"content_hash": "2efe08fbe5e62c026497089cc224ea8b99ac8f3dc36ab931bc5790c759931cc4", "fetched_at": "2026-08-29T11:37:49.285359+00:00", "kind": "homepage", "missing": false, "url": "https://leggedrobotics.github.io/ocs2"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 93, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1882, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 65, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}