improved example with convenience functions and aligned code with micro-ros/tuturial webpage.
improved example with convenience functions and aligned code with micro-ros/tuturial webpage.

Signed-off-by: Staschulat Jan <e475a11f0a81ee8b8f81740975325a87bd2cd795@de.bosch.com>

ros2/rclc,ros2/rclc