TECHNOLOGY

Gazebo PostUpdate systems: plugin registration order is not a processing pipeline

In this article
THE QUICK TAKE

The inspected runner executes PostUpdate systems on separate workers; a shared phase boundary does not establish producer-before-consumer order within that phase.

A shared phase does not create a data dependency

A twin registers a perception system before a reporting system and places both in PostUpdate. The reporter reads an application-owned buffer that perception writes, assuming registration order guarantees fresh data from the same iteration. That assumption can create a race or silently report the previous result. Identify the execution relationship rather than treating a common phase label as a producer-consumer pipeline. The world state may be stable for readers while their own shared buffers remain unsynchronized.

Read the interface permission separately from scheduling

The system-plugin guide gives PostUpdate read-only access to entity/component state after an update. It places command modification before physics in PreUpdate and observation after the step in PostUpdate. These phase roles do not establish a serial order among every observer. Read-only access to the entity manager also does not automatically make arbitrary application-owned data immutable or thread-safe. Inventory buffers and external services used by the callbacks separately from the simulator’s entity access contract.

Inspect the worker and barrier structure

The inspected SimulationRunner source creates a separate worker for each PostUpdate system. Workers wait at a common start barrier, run their callbacks and meet a stop barrier. The main update path also participates in those boundaries. This establishes phase completion, not a fixed order between individual workers. A consumer cannot infer that another worker finished merely because its own callback has started or because its plugin was added later to the system list.

Propose an iteration-tagged handoff fixture

A proposed fixture should tag producer output and consumer reads with iteration identity. Introduce controlled scheduling variation in an isolated test so a hidden ordering assumption becomes observable. Inspect whether the consumer receives an intended current result, a deliberately previous-iteration result or an explicitly unavailable state. Do not rely on incidental timing from one fast run. No Gazebo plugin experiment was executed here; this is a proposed concurrency-contract check, not a measured race reproduction.

Make a dependency explicit or keep observers independent

If same-iteration ordering is required, choose a supported explicit design, such as performing dependent operations under one owning callback with appropriate data synchronization. Alternatively, define a bounded previous-iteration handoff and preserve its identity. Avoid blocking cycles between callbacks that all must finish the same phase. Acceptance should retain buffer ownership, synchronization policy and observed iteration relationships, not merely absence of crashes or apparently ordered console messages.

Keep concurrency correctness separate from perception quality

The Kedro state-ownership guide explains a neighboring execution boundary; software reproducibility supports preserving plugin and runner revisions. Here acceptance establishes a defined producer-consumer relationship under the inspected worker model. It does not validate perception accuracy, controller stability or real-time deadlines. Those remain separate evaluations after the system can identify which iteration produced the data each consumer actually used.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles