Robotics StackExchange | Archived questions

Import header files from bazel generated project to ROS code

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 catkinmakeisolated to build.

Kindly let me know if the question is not clear.

Thank you, KK

Asked by kk2105 on 2018-11-20 13:01:39 UTC

Comments

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. ...

Asked by ahendrix on 2018-11-20 13:43:39 UTC

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

Asked by ahendrix on 2018-11-20 13:44:19 UTC

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

Asked by kk2105 on 2018-11-21 06:41:06 UTC

Answers