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

Colcon commands

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

Anjulo gravatar image

Hello,

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?

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

Ranjit Kathiriya gravatar image

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

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.

https://answers.ros.org/question/3301... https://github.com/colcon/colcon-core...

catkin list

colcon-package-information

https://colcon.readthedocs.io/en/rele...

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>

https://colcon.readthedocs.io/en/rele...

I think this will help you. This is a good official user documentation: https://colcon.readthedocs.io/en/rele....

Moreover, You can also have a look at this documentation by Dirk Thomas: https://docplayer.net/207294236-Colco...

edit flag offensive delete link more

Comments

1

Thanks man!

Anjulo gravatar image Anjulo  ( 2021-07-08 22:05:33 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 698 times

Last updated: Jul 08 '21