ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Colcon commands

asked 2021-07-08 04:27:53 -0600

Anjulo gravatar image


I'm new to ROS 2 and recently started using it for a project. I have been using ROS (1) for the last year and really liked the catkin_tools. I guess it's easier to use. I'm wondering if there are analogues commands in colon build. Commands like catkin clean, catkin list. In addition, is it possible to build only certain packages in colcon?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-08 04:44:11 -0600

Ranjit Kathiriya gravatar image

updated 2021-07-08 05:14:57 -0600

Hello Anjulo,

Commands like catkin clean

rm -r build install

I think colon does not have any clean command. For that have a look at the below links.

catkin list


In addition, is it possible to build only certain packages in colcon?

colcon build --packages-select <name-of-pkg>

If you only want to build selected package from workspace:

colcon build --packages-select <name-of-pkg> <name-of-another-pkg>

I think this will help you. This is a good official user documentation:

Moreover, You can also have a look at this documentation by Dirk Thomas:

edit flag offensive delete link more



Thanks man!

Anjulo gravatar image Anjulo  ( 2021-07-08 22:05:33 -0600 )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


Asked: 2021-07-08 04:27:53 -0600

Seen: 318 times

Last updated: Jul 08 '21