It is assumed that the workspace is ~/ros2_ws/
.
cd ~/ros2_ws/src
git clone https://github.com/gfigneczi1/ign_b7e_array_sorter
cd ~/ros2_ws
colcon build --packages-select array_sorter --symlink-install
Don't forget to source before ROS commands.
source ~/ros2_ws/install/setup.bash
ros2 launch array_sorter launch_array_sorter.launch.py
Echo topics /unsorted_array and /sorted_array by:
ros2 topic echo /unsorted_array
ros2 topic echo /sorted_array