ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
4

ROS2 workspace clean

asked 2019-08-06 12:31:57 -0500

mikepark93 gravatar image

What is the equivalent to catkin clean for ROS2 and colcon?

edit retag flag offensive close merge delete

Comments

There isn't one (yet) see ticket: https://github.com/colcon/colcon-core... You're best off scripting the removal of those directories for now.

stevemacenski gravatar image stevemacenski  ( 2019-08-06 16:00:48 -0500 )edit

Happy to say, there is one now: https://github.com/colcon/colcon-core...

ruffsl gravatar image ruffsl  ( 2022-12-15 09:41:37 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
5

answered 2019-08-06 14:03:13 -0500

DanRose gravatar image

rm -r build install

edit flag offensive delete link more
3

answered 2020-12-16 19:40:52 -0500

pfarkas gravatar image

In addition to build and install, I would also clean the log directory

rm -r build install log
edit flag offensive delete link more
1

answered 2022-12-15 09:47:06 -0500

ruffsl gravatar image

By installing the new colcon-clean extension, you can clean the build, install and log base paths like so:

sudo apt install python3-colcon-clean
colcon clean workspace

See the extension's repo readme for more documentation:

https://github.com/colcon/colcon-clean

edit flag offensive delete link more

Comments

Nice! Thanks for posting.

clyde gravatar image clyde  ( 2022-12-19 08:10:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-08-06 12:31:57 -0500

Seen: 12,182 times

Last updated: Dec 15 '22