See simple_navigation_goals_tutorial on index.ros.org for more info including aything ROS 2 related.
This package provides the code for the Sending Simple Goals tutorial for the navigation stack.
NOTE: The code in this package does not match the current version of the tutorial.