Skip to content

Agent skill for creative 3D visualization: turn an idea into a Three.js/Blender scene worth exploring. Claude Code + Codex plugin, 223 recipes, 440 knowledge records, 22 proved kits, 37 runnable studies.

5.3 KB
Raw Blame
{
  "schema_version": 1,
  "id": "recipe.differential-drive-odometry",
  "revision": 1,
  "status": "active",
  "record_kind": "factual",
  "title": {
    "en": "Differential-drive command and odometry view"
  },
  "aliases": {
    "en": [
      "two wheel robot",
      "mobile robot odometry"
    ]
  },
  "direction_ids": [
    "robotics-control"
  ],
  "summary": "Distinguish requested motion, applied wheel motion and estimated pose in a teaching mobile robot.",
  "objective": "Build a two-wheel robot view with commanded motion, wheel feedback and an odometry trail shown separately.",
  "tags": [
    "differential drive",
    "wheel radius",
    "wheel separation"
  ],
  "subject_terms": [
    "differential drive",
    "wheel radius",
    "wheel separation",
    "odometry",
    "command timeout"
  ],
  "intent_signals": [
    "compare command and feedback",
    "inspect a mobile robot turn"
  ],
  "example_prompts": [
    "Build a two-wheel robot view with commanded motion, wheel feedback and an odometry trail shown separately.",
    "Inject a clearly synthetic wheel-feedback mismatch and show why commanded travel is not a measurement."
  ],
  "entities": [
    {
      "name": "Mobile base",
      "guidance": "Create chassis, two coaxial driven wheels and passive support; show wheel-radius and axle-separation brackets."
    },
    {
      "name": "Pose indicators",
      "guidance": "Use separate actual-model and estimated-pose outlines, plus heading arrow and trail legend."
    },
    {
      "name": "Command panel",
      "guidance": "Show command age, applied speed and feedback mode with explicit units."
    }
  ],
  "object_craft": [
    {
      "family": "Mobile base",
      "structure": "Create chassis, two coaxial driven wheels and passive support; show wheel-radius and axle-separation brackets.",
      "material": "Matte chassis, rubber-looking tires and metal-looking hubs."
    },
    {
      "family": "Pose indicators",
      "structure": "Use separate actual-model and estimated-pose outlines, plus heading arrow and trail legend.",
      "material": "Solid body for model pose and dashed outline for estimate."
    },
    {
      "family": "Command panel",
      "structure": "Show command age, applied speed and feedback mode with explicit units.",
      "material": "Flat readable values attached to the base frame legend."
    }
  ],
  "state_contract": {
    "model": "Teaching adapter state separates requested body twist, limited wheel commands, synthetic wheel feedback and integrated pose estimate; declare planar convention, positive wheel dimensions and whether feedback or commands drive odometry.",
    "authority": "Domain state owns identities, values and accepted transitions. Derive labels and meshes from that state; camera and display offsets are separate.",
    "actions": [
      "Command forward and turn velocity.",
      "Toggle declared synthetic feedback mismatch.",
      "Expire command, stop and reset pose/trails."
    ]
  },
  "invariants": [
    "Feedback-mode odometry uses feedback values rather than silently substituting requested commands.",
    "Stale commands trigger the configured stop policy.",
    "Reset clears pose estimate, wheel history and command age together."
  ],
  "motion_guidance": [
    "Bound applied velocity, acceleration and turn rate; derive wheel spin from the same applied wheel state.",
    "A companion renderer handles trail and chassis transforms; the controller/odometry adapter owns motion state."
  ],
  "known_limits": [
    "Educational synthetic adapter, not a running ROS hardware controller or calibrated localization system.",
    "No slip/contact identification, uncertainty calibration or obstacle-avoidance guarantee.",
    "Cited Rolling development API must be checked against a chosen implementation version.",
    "Authored recipe only; runtime and rendered geometry checks have not run."
  ],
  "claims": [
    {
      "id": "claim.differential-drive-odometry",
      "statement": "The documented differential-drive controller translates body velocity commands to wheel commands; feedback supplies odometry unless open-loop mode uses commands, and command timeout can stop motion.",
      "scope": "ros2_control Rolling documentation read 2026-09-07; the recipe borrows these responsibility boundaries and does not claim a working hardware integration.",
      "source_refs": [
        {
          "source_id": "source.applied-differential-drive",
          "locator": "Description, Feedback, Other features, wheel_separation, wheel_radius and open_loop parameters"
        }
      ]
    }
  ],
  "physical_contract": {
    "model": "controlled-locomotion",
    "scope": "Planar teaching robot with explicit command/feedback separation.",
    "state": [
      "body pose",
      "wheel state",
      "command age",
      "odometry pose"
    ],
    "colliders": [
      "Chassis footprint and authored ground bounds."
    ],
    "driving": [
      "Limited body commands converted to wheel motion by declared adapter."
    ],
    "contact": [
      "Flat support only; stop at scene boundary, no wheel contact solver."
    ],
    "timestep": "Use a declared fixed update step for changing model state; interpolate presentation only. Pause clears accumulated playback time.",
    "checks": [
      "Timeout stop; wheel mismatch changes estimate under feedback mode; reset clears both trails."
    ]
  }
}