Unit 04 · overview

Prerequisite Review: Decision Contracts Across Java and ROS 2

This route no longer teaches comparisons, boolean operators, if/else, or method syntax as new material. Those are prerequisite skills from java-programming.

The bridge-specific question is:

How do you prove that a local Java decision rule and an external ROS configuration value are related without inventing an integration path?

Use a small caution-distance case to verify that you can already read and modify Java control flow. Then focus on three boundaries:

  1. the Java method's inputs and boolean contract;
  2. the ROS parameter or supplied runtime configuration value;
  3. the missing evidence required to prove those values are synchronized in a real system.

Matching values are evidence of agreement at one moment, not evidence of shared configuration plumbing.

Required checkpoint

Produce a Decision Contract Note with the Java rule, its boundary cases, the ROS configuration snapshot, and one sentence stating what would be needed to prove an actual integration path.

If boolean logic or method mechanics require reteaching, return to java-programming. Do not expand this bridge route into a second control-flow unit.