build/: Contains the build files generated by colcon build.
install/: Contains the installed packages and setup files necessary for running the workspace.
log/: Contains logs of the build process for debugging and analysis.
src/: The source directory where all ROS2 packages are placed. In this case, it contains the cloned ros_tutorials repository, which includes the turtlesim package.
Source the environment
Open a new terminal and source the setup file for your main ROS 2 installation.
source /opt/ros/humble/setup.bash
Next, source the setup file from the training_ws overlay to enable access to the packages within the training_ws workspace.
# cd into ros2_wssource install/local_setup.bash
Try some demos
run turtle_sim package
ros2 run turtlesim turtlesim_node
run a subscriber node from the examples
ros2 run examples_rclcpp_minimal_subscriber subscriber_member_function
In another terminal, run a publisher node
source install/setup.bashros2 run examples_rclcpp_minimal_publisher publisher_member_function