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

support generation of interface files before calling rosidl_generate_interface

asked 2020-09-10 14:55:09 -0500

CharlesOnera gravatar image

Hi, I want to generate some .action files using a custom command in my cmake file, and then generate the ROS2 interfaces from these .action files. I have defined a custom_command / custom_target for the generation, that works, but I could not find a way to force the call of this command before running the rosidl_generate_interfaces macro ; however, this macro first checks for file existence, and then fails... Any hint? Thanks, Charles

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-10 17:15:51 -0500

Dirk Thomas gravatar image

The implementation of rosidl_generate_interfaces() expects all passed files to exist at configuration time. So you need to make sure that the files you want to generate are generated at configure time rather than as part of a target at build time.

edit flag offensive delete link more

Comments

Thanks. I replaced the add_custom_command with execute_process in the cmake file and it works!

CharlesOnera gravatar image CharlesOnera  ( 2020-09-11 01:12:25 -0500 )edit

Question Tools

Stats

Asked: 2020-09-10 14:55:09 -0500

Seen: 182 times

Last updated: Sep 11 '20