Webots API functions are executed but they are applied to the simulation world only when calling the `wb_robot_step` function, that is when the controller process communicates with Webots process.
[ERROR] [driver-2]: process has died [pid 63124, exit code -11, cmd '/Users/xlla/ros2_dev_ws/install/webots_ros2_driver/lib/webots_ros2_driver/driver --ros-args ...