service.hpp
Go to the documentation of this file.
1 #ifndef ros1_ros_cpp_template_SERVICE_HPP_
2 #define ros1_ros_cpp_template_SERVICE_HPP_
3 
5 #include <ros1_template_msgs/Answer.h>
6 
7 #include <ros/service.h>
8 #include <ros/node_handle.h>
9 
10 #include <memory>
11 #include <string>
12 
13 namespace ros1_ros_cpptemplate
14 {
15 
19 class Service
20 {
21 public:
29  explicit Service(ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci,
30  ros::NodeHandle& node_handle,
31  const std::string& service_topic_name);
32 
36  virtual ~Service();
37 
38 protected:
43  {
44  }
45 
49  virtual bool serve(ros1_template_msgs::Answer::Request &request,
50  ros1_template_msgs::Answer::Response &response);
51 
54 
57 };
58 typedef std::shared_ptr<Service> ServicePtr;
59 
60 } // namespace
61 
62 #endif
std::shared_ptr< AtomicFibonacci > AtomicFibonacciPtr
ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci_
AtomicFibonacci supplier (shared)
Definition: service.hpp:53
ros::ServiceServer service_
Actual service.
Definition: service.hpp:56
virtual bool serve(ros1_template_msgs::Answer::Request &request, ros1_template_msgs::Answer::Response &response)
Definition: src/service.cpp:28
std::shared_ptr< Service > ServicePtr
Definition: service.hpp:58


ros1_ros_cpptemplate
Author(s): Alexander Reimann
autogenerated on Sat Sep 2 2017 02:38:06