Import header files from bazel generated project to ROS code

asked 2018-11-20 12:01:39 -0500

kk2105 gravatar image

Hi Guys,

I am quite new to ROS and need your suggestions in fixing the below issue.

I have a complex ROS project (Project_X), which is written in C++ and uses Bazel framework to build the project.

I have written an isolated ROS project which subscribes to one of the topic from Project_X. Now I need to use one of the function from Project_X which is there in header Program.

How would I import the header file to the ROS CPP program which uses catkin_make_isolated to build.

Kindly let me know if the question is not clear.

Thank you, KK

edit retag flag offensive close merge delete



I'm not aware of any public ROS projects that build with Bazel, but I know of two companies that are using it internally (Zoox and Cruise). If you're using headers, you probably need compiled libraries too, and exporting those from bazel is somewhere between painful and impossible. ...

ahendrix gravatar image ahendrix  ( 2018-11-20 12:43:39 -0500 )edit

In short, there's no canonical way to do this, and it's something that you should ask to the authors of Project_X

ahendrix gravatar image ahendrix  ( 2018-11-20 12:44:19 -0500 )edit

@ahendrix Thanks for the guidance. I will check and update here if I find something useful.

kk2105 gravatar image kk2105  ( 2018-11-21 05:41:06 -0500 )edit