Ask Your Question
0

Where is this header file?

asked 2019-09-14 10:59:13 -0500

mun gravatar image

updated 2019-09-14 11:03:40 -0500

gvdhoorn gravatar image

Hi

I was looking at some code and noticed a header file that doesn't exist in the repo. This line includes a header "orb_slam2_ros/SaveMap.h", but it's not included in the repo. The package builds completely fine. Is the header generated? If so, how is it generated?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-09-14 11:06:45 -0500

gvdhoorn gravatar image

updated 2019-09-14 11:07:43 -0500

orb_slam2_ros/SaveMap is a service, which is defined in appliedAI-Initiative/orb_slam_2_ros/srv/SaveMap.srv.

All ROS service definitions are processed by code generators which -- in the case of C++ -- generate header files for them.

See these lines for where the service is registered and the code generators are invoked.

it's not included in the repo.

as should now be clear: the header file is generated during the build, so is not part of the repository.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-09-14 10:59:13 -0500

Seen: 15 times

Last updated: Sep 14