Skip to content
All projects

Operations research

robotic cell

A miniature production cell, on real hardware. A camera identifies the parts, a scheduler picks the order that finishes the batch soonest, and the arms coordinate over messages.

  • 5

    robotic arms

    Controlled independently for four weeks, on a real cell.

  • 800

    batches ordered at the optimum

    Out of 800 simulated batches, as many as by trying every possible order.

  • 6

    part types

    Two shapes and three colors, which the camera tells apart on its own.

Setting
Academic, CESI, operations research module
Period
September to October 2025, five weeks; strategy simulation run after the project
Team
Solo
Role
Everything, from the camera to the scheduling
ChapterProblemContents
  1. Problem
  2. Constraints
  3. Architecture
  4. Decisions
  5. Results
  6. Limitations and lessons learned

Problem

In what order to release the parts

A miniature production cell, with robotic arms linked by conveyors, a bin of parts at the start, processing stations. Not every part type visits the same stations. In what order should the parts be released so the whole batch finishes as early as possible?

It is a classic scheduling problem, the job-shop. Here it plays out on hardware that really moves, and that sometimes misses a pick. The final assessment: a demonstration on a batch laid out at random. The cycle ran to the end.

Three blue robotic arms lined up on a workbench, linked by conveyors.
The delivered cell: three arms, two conveyors, one work surface per station.

Constraints

A cell that discovers its batch

  • The batch is seen, not declared. The source arm's camera photographs the bin; OpenCV recognizes each part from the shape of its contour and its color, then counts the batch.
  • Every cycle is unique. The batch is laid at random in the bin and read by the camera. The route of each part type is drawn for every cycle: no station, one or both. Machining times are drawn at random, per type. The scheduler never solves the same problem twice.
  • Everything is distributed. Each arm is an independent process with no shared memory. It must stay correct if a neighbor lags, restarts or misses a pick.
  • The hardware misses picks. A grab can fail at the bin, on the belt or at the station, and the cycle has to carry on without anyone stepping in.
Top-down view of a workspace holding two green discs, a blue disc, a red square and a blue square, framed by four concentric calibration markers.
What the camera sees at the start: the batch to process, and the markers that give the scale.

Architecture

The path of a part

The configuration delivered at the end of the project keeps three of the arms: a source arm and two processing stations, coordinated over MQTT. Follow one part.

Two parts written for illustration

A red square, drawn for both stations. Processed at both stations, the batch completes.

See and scheduleRelease and processFinish the batchstation 2 only“a redsquare”“a bluecircle”“batchdone”“fault published”yesnoSchedule NEH
See and scheduleSchedule NEHRelease and processyesnoFinish the batch

SchedulePython, NumPy

It works out the release order that finishes the batch soonest: every order on a small batch, the NEH heuristic beyond.

Example written for the illustration.

What holds the cell together

  • Messages Quality of service 1 on every exchange; the broker keeps each arm's last state.
  • Fail cleanly If a process dies, the broker announces the arm offline on its behalf. A global stop halts conveyors and arms.
  • Recover Reconnection to an arm over six spaced attempts; at the station, a failed re-pick falls back to a recorded position.
  • Supervise An interface launches each arm, shows its state live and picks the scheduling method.
Close-up of a black conveyor, with a yellow optical sensor mounted on the edge and calibration markers.
The pass-through sensor at the edge of the conveyor. It triggers the pick, and it supplies the measured transit times.

From a single window, the operator starts and stops the arms, picks the scheduling method, launches a cycle and calibrates the cell. Each arm's state shows there live. A second interface tests the hardware one component at a time: vision, camera, pump, conveyor, positions.

Screenshot of the supervision interface: launch all arms, global stop, choice of scheduling method, cycle start, calibration, then one card per arm with its state and buttons.
The supervision interface, run away from the cell for this screenshot: the arms therefore show as offline.

Decisions

A protocol that stays correct when a pick fails

Five decisions and what settled them
DecisionOption ruled outWhat settled it
Accept a part when the station is freeA reserved slot, timed to the secondOn a missed pick, a reserved slot becomes invalid at once, and the whole downstream plan with it. Observed availability stays accurate.
Every order up to eight parts, NEH beyondExhaustive enumeration everywhereTrying every order takes 0.18 s at eight parts, already 1.7 s at nine.
One program for every armOne program per armRole, neighbors and positions come from the arm's identifier. Adding a station needs no new code.
A scheduler kept apart from arm controlPlanning inside the arms' programIt knows nothing of arms or cameras: it can be rerun away from the cell, and that is what makes the results below measurable.
A load drawn at random for each batchA fixed batch, always the same routeWithout the draw, one batch looks like the last and the scheduler has nothing to decide.

Results

What scheduling gains, in simulation

After the project, I reran the scheduling module as is, away from the cell, and compared it with the exact optimum.

Time lost without a good processing order. 0 is the best possible order, in simulation. +17%, no scheduling, median; +40%, worst order, median; +245%, no scheduling, worst batch. A station's time: 93 to 96% handling the part, the rest machining it.

All other measurements

  • Gap between the best and the worst order, when only machining times change: 0.68% at the median, nearly sixty times smaller than when the parts' route changes. The lever is the parts' route, not the machining time.
  • Batches where arrival order lands on the optimum: 25.06%.
  • Batches where the hybrid strategy reaches the optimum: 0 draws out of 800.
  • The model. The project's scheduling module, run as is, with the service and transit times smoothed by the cell.
  • The reference. The exact optimum, found by trying the 720 possible orders of a full batch, one part of each type.
  • The draws. The stations visited are drawn as in the real cycle: 800 batches to compare the strategies, 1,500 draws to measure the gap between orders.
  • The status. Simulated, after the project, for this portfolio. None of these figures is a time measured on the line.

Limitations and lessons learned

Set up the control from the start

I built the exhaustive enumeration before comparing with “no scheduling”. That control, set up from the start, would have shown sooner that the hybrid strategy did worse than arrival order.

The cell timed the real duration of every batch without logging it. One line at the end of each cycle would have given a comparison between estimate and reality. Machining itself is a programmed wait, and the load draw seeds itself from the clock: no two cycles can be rerun identically.