ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

ROS2 workspace clean

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

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 -0600 )edit

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

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

3 Answers

Sort by ยป oldest newest most voted
5

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

DanRose gravatar image

rm -r build install

edit flag offensive delete link more
3

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

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
2

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

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 -0600 )edit
1

What is your configuration? I'm using Ubuntu 20.04 ROS2 foxy and it's not available; Unable to locate package python3-colcon-clean.

Remi_Tortue gravatar image Remi_Tortue  ( 2023-06-29 08:05:33 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 27,232 times

Last updated: Dec 15 '22