[ROS2] Service header files
Hi,
source: https://github.com/ros2/examples/blob...
In the example of the service Client they use following header file:
#include "example_interfaces/srv/add_two_ints.hpp"
I think it is necessary to make the server Client, to find the (example_interfaces::srv::AddTwoInts):
rclcpp::Client<example_interfaces::srv::AddTwoInts::SharedPtr init = node->create_client<example_interfaces::srv::AddTwoInts>("init");
In my custom package I made some .srv files that I want to use, do I need a Header file as well ?
sum.srv
#include "my_package/srv/sum.hpp"
Obviously I don't have this .hpp file so it will throw an error. Do I need to make one myself or can I generate this file ?
Thanks