I used the colcon build in the src directory

Hi,

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.

Thank you for your time and sorry for my mistake.

Felix

I would like to know if there is a command to undo the colcon build? I tried the colcon clean directory but it did not clean everything.

Thank you,

Felix

Hello @Kickmaker ,

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

1 Like

@albertoezquerro Thank you very much, it was the answer I was looking for !

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.