Build a Robot-Cell Mechanical Interference Disposition Engine — implementation
Linked challenge: Build a Robot-Cell Mechanical Interference Disposition Engine
Prompt source
implementation67 lines11 sectionsNo variables1 code block
## Build
Evaluate dimensional metrology scan failures against MoveIt geometric collision envelopes. Synthesize disposition recommendations based on mechanical interference risks during automated assembly processes before scrapping expensive manufactured parts.
## User
Manufacturing Quality Engineer
## Workflow
1. Ingest non-conformance records containing dimensional laser scanner bounding box deviations.
2. Inject deviated dimensional measurements into MoveIt geometric shape definitions.
3. Perform collision checking simulations to detect physical interference during automated assembly insertion.
4. Assemble an audit-ready non-conformance dossier indicating collision risks for human engineering sign-off.
## Interface
Multi-pane review console showing collision envelopes, defect images, and disposition draft.
## Data
Create simplified synthetic app records representing dimensional deviations and mating clearance measurements for robot assembly.
Starter examples below are synthetic. They are not downloaded records.
## Source
[MoveIt robotics](https://raw.githubusercontent.com/moveit/moveit2/main/README.md)
Employs MoveIt geometric shape definitions and collision checking capabilities from Source 1 to evaluate interference.
## Tools
dspy, pydantic, numpy.
DSPy compiles optimized prompts and assertions to reliably categorize non-conformance dispositions based on simulated collision outputs.
Local or hosted LLM capable of structured reasoning on numerical tolerance variances and boolean collision flags.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Correctly calculates interference risk percentage from measured dimensions and clearances.
- Flags detected structural collisions as mandatory scrap dispositions.
- Validates that disposition outputs follow strict engineering review board schemas.
## Starter Examples
```json
[
{
"input": {
"part_serial": "CAST-BLK-891",
"feature": "EXTERNAL_FLANGE",
"nominal_mm": 50,
"measured_mm": 51.5,
"mating_clearance_mm": 2
},
"expected_output": {
"part_serial": "CAST-BLK-891",
"collision_detected": false,
"disposition": "USE_AS_IS",
"interference_risk_pct": 75,
"engineering_signoff_required": true
}
},
{
"input": {
"part_serial": "CAST-BLK-892",
"feature": "EXTERNAL_FLANGE",
"nominal_mm": 50,
"measured_mm": 52.5,
"mating_clearance_mm": 2
},
"expected_output": {
"part_serial": "CAST-BLK-892",
"collision_detected": true,
"disposition": "SCRAP",
"interference_risk_pct": 100,
"engineering_signoff_required": true
}
}
]
```
## Safety
Read-only advisory disposition; does not scrap or accept physical parts without human engineer sign-off.
Use mock external writes. Require human review before any real deployment.