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

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


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?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

Question Tools

1 follower


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

Seen: 342 times

Last updated: Sep 14 '19