all tutorials code
- Creating the workspace in ros2
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
- If you wanted to open ws in any perticular folder then remove the ~/ part from the command and create the ws.
mkdir -p ros2_ws/src
cd ros2_ws/src
- create pakage
ros2 pkg create --build-type ament_cmake <package_name>