Skip to content

How to Build MLOps for a Robot Fleet: Logging, Data Selection, Validation and OTA Updates

A continuous MLOps loop for robot fleets: rosbag2 and MCAP logging, event-based selection, simulation checks, staged rollout and TUF-secured updates.

Contents

Key takeaways

  1. Robot fleet MLOps is a continuous loop — record, select, train, validate, roll out in stages, monitor — not a pipeline you run once.
  2. ROS 2’s rosbag2 uses MCAP as its default storage format, records topics with ros2 bag record and supports zstd compression; MCAP stores schemas alongside the data so logs stay readable later.
  3. Uploading every log is expensive, so fleets usually upload only windows around events such as interventions, failures and rare situations.
  4. Update security is essential: TUF is an update-security framework designed to protect even when repositories or signing keys are compromised, and is a CNCF graduated project.
  5. ML systems create their own technical debt — hidden feedback loops, data dependencies, changes in the external world — which should be designed for from the start.

Running one robot for a demo and operating dozens in the field while continuously improving their models are entirely different jobs. The second requires a loop that records what robots experience, selects the useful parts for training and deploys new models safely. This tutorial lays out how to build robot fleet MLOps step by step, based on public tools and references.

The whole loop

Fleet MLOps is not a pipeline you run once but a loop that keeps turning:

  1. Record — robots log sensors, state and commands while working.
  2. Select — only segments worth training on are uploaded.
  3. Train — models are fine-tuned on selected and synthetic data.
  4. Validate — new models are evaluated in simulation and limited real tests.
  5. Roll out in stages — new models go to a subset of robots first and metrics are compared.
  6. Monitor — operating metrics determine the data for the next loop.

This is the same loop of data flowing between training, simulation and on-robot computers described in NVIDIA’s three computers for robotics.

Step 1: recording on the robot

For ROS 2 robots, the recording tool is rosbag2. According to the rosbag2 repository, it provides two storage plugins, mcap and sqlite3, with mcap as the default, and supports zstd as its compression format.

# Record only the needed topics, with an output name
ros2 bag record --topics /camera/image_raw /joint_states /cmd_vel -o shift_0425
# Record all topics with zstd file compression
ros2 bag record -a --compression-mode file --compression-format zstd
# Inspect and replay
ros2 bag info shift_0425
ros2 bag play shift_0425

MCAP is an open-source container format for multimodal, timestamped log data. It stores message schemas alongside the data so files remain readable in the future, supports an optional index for fast reads, and offers LZ4 or Zstandard chunk compression. For logs you may want to train on months later, keeping the schema with the data is especially valuable.

Step 2: choosing what to upload

Uploading everything a fleet produces drives up storage and transfer costs and buries the rare situations training actually needs. Event-based selection is the usual answer:

  • Human intervention — moments when an operator stopped the robot or took over remotely
  • Failures — missed grasps, path deviations, task timeouts
  • Rare situations — unfamiliar objects, unusual lighting or floor conditions
  • Model uncertainty — segments where the model acted with low confidence

When an event occurs, only a window before and after it is uploaded. Uploaded data then goes through filtering and annotation; NVIDIA presents Cosmos Curator as a tool for this step.

Steps 3 and 4: training and validation

Selected data is mixed with synthetic data to fine-tune the model, which is then tested in simulation before deployment. The essential discipline here is recording which training data and settings produced each model version. When a problem appears on a robot, being able to trace the model back to its data and configuration is what makes root-cause analysis possible. Narrowing the gap between simulated and real results is covered in Closing the Sim-to-Real gap.

Step 5: staged rollout and secure updates

New models are not pushed to the whole fleet at once. They go to a subset of robots first, and their metrics are compared with the existing model. Running a new model alongside the current one — logging its decisions without letting it control the robot — is another common way to reduce risk. If metrics worsen, you must be able to roll back to the previous version immediately. Decide the stop conditions before the rollout starts — for example, a rise in interventions per hour or a drop in task success beyond an agreed margin — so that the call to roll back is mechanical rather than a debate in the middle of a shift.

The update files themselves must be secure. The Update Framework (TUF) is a framework for securing software update systems, designed to protect even against attackers who compromise the repository or signing keys, and is a CNCF graduated project. Because robots are physical machines that move, preventing unsigned or tampered updates from installing is not optional.

ML technical debt to plan for from day one

Sculley et al. (2015) warn that real-world ML systems commonly incur massive ongoing maintenance costs, and name ML-specific risks including boundary erosion, entanglement, hidden feedback loops, undeclared consumers, data dependencies, configuration issues and changes in the external world. Two stand out for robot fleets: hidden feedback loops, where behavior changed by the model alters the data collected for the next training round, and changes in the external world, such as new layouts, lighting or products at the site. Continuous monitoring of operating metrics, with alerts when the data distribution shifts, is the starting point for managing both. The cost of operating a fleet can be modeled with TCO and ROI model for warehouse and factory robots.

Data governance and privacy

In a workplace, robot cameras record people as well as objects, so data rules have to start at the recording step. Blur faces where they are not needed for training, set retention periods after which raw logs are deleted, and separate who can access which data. NVIDIA, for example, includes a face-blur filter in the output stage of its Cosmos world models, and the same principle applies to any processing or generation step in your own pipeline. When robots operate at customer sites, write data ownership and permitted uses into the contract before the first log is collected.

Metrics worth tracking across the loop

A loop is only as good as the signals that drive it. Useful fleet-level metrics include task success rate per site and per task type, interventions per operating hour, mean time between failures, cycle time distributions rather than averages, and the share of uploaded events that end up in training data. Tracking the last one helps keep data selection honest: if most uploads are never used, the triggers are too broad; if training sets keep running short of certain situations, the triggers are too narrow. Reviewing these metrics at a regular cadence, with the people who operate the robots in the room, keeps the loop connected to what is actually happening on the floor.

Common mistakes

  • Uploading everything robots produce to the cloud — costs grow and the rare cases you actually need become harder to find.
  • Deploying a new model to the whole fleet at once — roll out to a subset first and compare metrics so problems do not spread.
  • Not tracking which data and settings produced the model running on each robot.
  • Running OTA updates without signing and verifying update files.

Pre-flight checklist

  • Have you decided which topics robots record, and under what conditions?
  • Have you defined upload-triggering events (interventions, failures, rare situations) and the window around them?
  • Do you have a record linking each model version to its training data and settings?
  • Have you set simulation pass criteria, staged-rollout percentages and stop conditions?
  • Do you have update signing, verification and rollback in place?

Frequently asked questions

How many robots do you need before MLOps matters?
The trigger is how often you change models, not fleet size. Even with one robot, if you repeatedly improve and redeploy models, set up data recording, version tracking and rollback from the start. As the fleet grows, staged rollout and remote monitoring become more important.
Can synthetic data be part of this loop?
Yes. Teams often multiply rare field situations with simulation or generative models and use them in training. Blending synthetic and real data is covered in Robot training data: teleoperation vs synthetic.

Sources & verification

  1. ros2/rosbag2 — GitHub README
  2. MCAP — open source container format for multimodal log data
  3. The Update Framework (TUF)
  4. Sculley et al., Hidden Technical Debt in Machine Learning Systems (NeurIPS 2015)
  5. NVIDIA — Cosmos (Curator, Transfer and world foundation models)

Last verified: