00001 //ROS typedefs 00002 #include "ros/ros.h" 00003 #include <std_msgs/String.h> 00004 00005 /* protected region user include files on begin */ 00006 /* protected region user include files end */ 00007 00008 class listener_config 00009 { 00010 public: 00011 00012 }; 00013 00014 class listener_data 00015 { 00016 // autogenerated: don't touch this class 00017 public: 00018 //input data 00019 std_msgs::String in_sub; 00020 00021 00022 //output data 00023 00024 00025 }; 00026 00027 class listener_impl 00028 { 00029 /* protected region user member variables on begin */ 00030 /* protected region user member variables end */ 00031 00032 public: 00033 listener_impl() 00034 { 00035 /* protected region user constructor on begin */ 00036 /* protected region user constructor end */ 00037 } 00038 void configure(listener_config config) 00039 { 00040 /* protected region user configure on begin */ 00041 /* protected region user configure end */ 00042 } 00043 void update(listener_data &data, listener_config config) 00044 { 00045 /* protected region user update on begin */ 00046 std::cout << "Received: " << data.in_sub << "\n"; 00047 /* protected region user update end */ 00048 } 00049 00050 00051 00052 00053 00054 /* protected region user additional functions on begin */ 00055 /* protected region user additional functions end */ 00056 00057 };