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

How to integrate code-generators with catkin

asked 2014-08-05 17:37:19 -0500

roadrunner gravatar image

I'm trying to integrate some code-generators into catkin. In contrast to the ROS message generator, they produce .h and .cpp files. So where are those files supposed to go? The ROS message generator writes the generated .h files into devel/include/xyz/. But where would the .cpp files go in this case? Most code generators are not too happy about writing .h and .cpp to different locations.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-06 00:52:22 -0500

ahendrix gravatar image

In catkin, the "right" thing to do is probably to put the generated cpp files in build/ somewhere, and the generated headers in devel/include/package/

If your code generator isn't happy generating into multiple directories, you could probably generate into build/ and then have a second cmake target which copies the headers into devel/include/

edit flag offensive delete link more

Comments

Thanks for the pointers. I'll try that.

roadrunner gravatar image roadrunner  ( 2014-08-06 15:13:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-05 17:37:19 -0500

Seen: 100 times

Last updated: Aug 06 '14