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

Generate srvs from directory using catkin build

asked 2018-07-18 14:14:45 -0600

updated 2018-07-18 14:15:41 -0600

For srv generation, I've taken to using add_service_files(DIRECTORY srv) instead of listing each file individually, since it's more compact and I don't ever put srvs in that directory that I don't want generated.

However, one downside is, since you don't have to edit the CMakeLists.txt file when you add a new srv to that directory, it doesn't generate them unless I do a catkin clean or I make some edit to CMakeLists.txt.

What I want to know, is there a way to force it to generate the srvs with a catkin build without having to do a clean, and without making bogus edits to CMakeLists.txt?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-18 14:50:02 -0600

Dirk Thomas gravatar image

With catkin build you can trigger an explicit CMake configure invocation by passing --force-cmake (see catkin build --help).

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-07-18 14:14:45 -0600

Seen: 118 times

Last updated: Jul 18 '18