[ros-diffs] [jimtabor] 24906: Fixup example code and add the new helper function.