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:
- Record — robots log sensors, state and commands while working.
- Select — only segments worth training on are uploaded.
- Train — models are fine-tuned on selected and synthetic data.
- Validate — new models are evaluated in simulation and limited real tests.
- Roll out in stages — new models go to a subset of robots first and metrics are compared.
- 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.