CodeTheRobot

ROS 2 Labs · exercise 06

Validate a parameter on set

Accept a loaded parameter only when it is inside the declared safe range.

Lab 06 · Launch and parameters

Guided steps

  1. 1.Reject any max_speed above the declared maximum and keep the previous value.
  2. 2.Accept a value inside the range and report the new value.
  3. 3.A loaded YAML value is not automatically safe: the node decides.

Your code

Your code is saved in this browser after every run and restored next time.