{
  "id": "drake-examples-pendulum-trajectory-optimization-simulation-cc",
  "name": "Drake: trajectory optimization simulation",
  "summary": "Official Drake native main example for trajectory optimization simulation. Inspect the pinned source and upstream setup before use.",
  "framework": "drake",
  "kind": "official_example",
  "source_registry": "ecosystem-examples-v1",
  "capabilities": [
    "dynamics",
    "motion-planning",
    "simulation",
    "trajectory"
  ],
  "robot_types": [
    "source-defined"
  ],
  "robot_scope": "Discovery labels inferred from this source path; inspect its robot configuration for compatibility. Project-wide categories are not a supported-robot list.",
  "source": {
    "repository": "https://github.com/RobotLocomotion/drake",
    "commit": "09bc913cf1af0cdde31073d5f1f7f66ca35ee0d8",
    "tag": "v1.58.0",
    "path": "examples/pendulum/trajectory_optimization_simulation.cc",
    "url": "https://github.com/RobotLocomotion/drake/blob/09bc913cf1af0cdde31073d5f1f7f66ca35ee0d8/examples/pendulum/trajectory_optimization_simulation.cc",
    "raw_url": "https://raw.githubusercontent.com/RobotLocomotion/drake/09bc913cf1af0cdde31073d5f1f7f66ca35ee0d8/examples/pendulum/trajectory_optimization_simulation.cc",
    "sha256": "99bc4b2757c7fc044b77e403c0261a60764fc55c1d48024f7ea8e6c4f99b124f",
    "bytes": 5281
  },
  "license": {
    "spdx": "BSD-3-Clause",
    "url": "https://github.com/RobotLocomotion/drake/blob/09bc913cf1af0cdde31073d5f1f7f66ca35ee0d8/LICENSE.TXT",
    "sha256": "68a284dd034413ae0b9c36b269c64e25d3dcf74c9356e0698e184a58ac2fd9e3",
    "scope": "Selected example source code only; preserve upstream copyright and per-file notices. Robot models, datasets, weights, simulator binaries and third-party dependencies retain their separate licenses."
  },
  "access": {
    "mode": "source_reference",
    "hub_prepare": false,
    "instructions": "Fetch the pinned repository, verify this source checksum, and use upstream installation and invocation. This record does not install or execute code.",
    "setup_url": "https://github.com/RobotLocomotion/drake/blob/09bc913cf1af0cdde31073d5f1f7f66ca35ee0d8/README.md"
  },
  "requirements": {
    "python": "Python/C++ versions supported by pinned Drake v1.58.0",
    "packages": [
      "Drake v1.58.0 / pydrake from the matching release",
      "Bazel/C++ toolchain for native examples and optional LCM/Meshcat components"
    ],
    "display": "Native examples require matching Bazel targets and model data; Python examples may need Meshcat/LCM. Some examples communicate over LCM; inspect configuration before hardware use.",
    "execution_domain": "simulation-or-hardware",
    "source_imports": [
      "drake/common/is_approx_equal_abstol.h",
      "drake/examples/pendulum/pendulum_geometry.h",
      "drake/examples/pendulum/pendulum_plant.h",
      "drake/geometry/drake_visualizer.h",
      "drake/planning/trajectory_optimization/direct_collocation.h",
      "drake/solvers/solve.h",
      "drake/systems/analysis/simulator.h",
      "drake/systems/controllers/pid_controlled_system.h",
      "drake/systems/framework/diagram.h",
      "drake/systems/framework/diagram_builder.h",
      "drake/systems/primitives/trajectory_source.h",
      "gflags/gflags.h",
      "iostream",
      "memory",
      "utility"
    ]
  },
  "invocation": {
    "entrypoint": "Native main: examples/pendulum/trajectory_optimization_simulation.cc; build the target declared by the pinned upstream build files",
    "notes": "Native examples require matching Bazel targets and model data; Python examples may need Meshcat/LCM. Some examples communicate over LCM; inspect configuration before hardware use. No Hub preparation adapter or measured runtime success is claimed."
  },
  "popularity": {
    "metric": "github_stars",
    "repository_stars": 4226,
    "checked_at": "2026-10-18",
    "meaning": "Dated repository interest, not robot-skill usage, compatibility or runtime success."
  },
  "evidence": {
    "level": "source_reviewed",
    "runtime_verification": "not_run",
    "checked_at": "2026-10-18",
    "inspection": "Fetched and SHA-256 checked this immutable source; statically parsed Python or located native main; verified pinned license bytes and checked explicit per-file license identifiers. No upstream code executed.",
    "entrypoint_kind": "native_main",
    "inspection_method": "automated_static"
  }
}
