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

CFG_EXTRAS equivalent for ros2/colcon

asked 2021-07-27 21:22:49 -0500

KenYN gravatar image

We have a ROS1 CMakeLists.txt that contains:

catkin_package(
  INCLUDE_DIRS include/
  CATKIN_DEPENDS roscpp
  CFG_EXTRAS Findthis_package.cmake)

For colcon on Foxy, how do we specify loading in an extra .cmake file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-28 01:39:45 -0500

KenYN gravatar image

I did a little more searching, and in colcon the keyword is CONFIG_EXTRAS and is used in ament_package(), as documented here.

So, my solution is to use this instead:

ament_package(
  CONFIG_EXTRAS cmake/Findthis_package.cmake)

Note that the full relative path is needed, whereas catkin_package() assumed the cmake directory.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-07-27 21:22:49 -0500

Seen: 141 times

Last updated: Jul 28 '21