I was trying a few commands in the second terminal and when I went back to the terminal 1 I didn’t check in which terminal I was. Apparently the wrong one as specified in 2.4.
It broke my package and when I tried to fix the problem I made it worse.
Is there a way to factory reset my directory ? I did create a few things but up until that point it’s mostly example written in the course.
No, you cannot undo the colcon build command. However, you don’t have to worry, this is a very common mistake. If you build in the wrong directory, you will see that some folders are generated (build, install, log). All you have to do is to remove these generated folders from the wrong path: rm -rf build install log