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

How to use CATKIN_IGNORE file correctly

asked 2015-04-29 11:11:37 -0600

updated 2015-05-03 06:41:49 -0600

gvdhoorn gravatar image

Hello everyone

I have a catkin_ws that is composed of all the node for my project. I am working with a UAV. So some of the nodes (such as rqt_pluggins and other GCS nodes) doesn't need to be compiled on the UAV computer. My question is this, how to tell catkin make to ignore those package automaticly (yes I am aware of the command catkin_make -DCATKIN_BLACKLIST_PACKAGES="foo;bar" but it is not very usefull if i want to ignore 2 or more nodes)

Best regards,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
17

answered 2015-04-30 03:13:27 -0600

gvdhoorn gravatar image

If you want to use CATKIN_IGNORE for this, just create a file with that name in each of the package directories that you want catkin to ignore. You can use touch for that, ie:

touch /path/to/catkin_ws/your/package/CATKIN_IGNORE

If you now run catkin_make (or any of the other catkin variants), it should ignore any package in that directory (and also in all subdirectories). Note that if you already built your workspace before adding CATKIN_IGNORE, the pkgs might still be picked up by catkin, as it then uses some of the information in the build directory. Simply removing build/ and devel/ and rebuilding should fix that.

The new catkin_tools package supports so called profiles, which allow you to configure the black and whitelists in a more comfortable way (and also makes switching between them very easy).

edit flag offensive delete link more

Comments

Which version onwards supports catkin tools?

2ROS0 gravatar image 2ROS0  ( 2016-07-29 16:45:20 -0600 )edit
1

@2ROS0: it'd be better to open a new question for this, as it's rather unrelated to the one you comment on. But to provide you an answer: catkin_tools is not really tied to any particular ROS release, as it's a stand-alone tool. I'd expect it to work (best) with Indigo and up though.

gvdhoorn gravatar image gvdhoorn  ( 2016-08-13 11:50:07 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-29 11:11:37 -0600

Seen: 22,475 times

Last updated: Apr 30 '15