$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-continuous_ops/doc_stacks/2013-03-01_15-04-55.848441/continuous_ops/continuous_ops_msgs/srv/AddTask.srv */ 00002 #ifndef CONTINUOUS_OPS_MSGS_SERVICE_ADDTASK_H 00003 #define CONTINUOUS_OPS_MSGS_SERVICE_ADDTASK_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "ros/service_traits.h" 00018 00019 00020 00021 #include "continuous_ops_msgs/Task.h" 00022 00023 namespace continuous_ops_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct AddTaskRequest_ { 00027 typedef AddTaskRequest_<ContainerAllocator> Type; 00028 00029 AddTaskRequest_() 00030 : task_id() 00031 { 00032 } 00033 00034 AddTaskRequest_(const ContainerAllocator& _alloc) 00035 : task_id(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _task_id_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > task_id; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "continuous_ops_msgs/AddTaskRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "2b6ff28cc01b440b5e2f50ddfe7763c3"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "9f006c64e7df3a3de962d4fabeb03d6e"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "string task_id\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, task_id); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00081 { 00082 ros::serialization::IStream stream(read_ptr, 1000000000); 00083 ros::serialization::deserialize(stream, task_id); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint32_t serializationLength() const 00088 { 00089 uint32_t size = 0; 00090 size += ros::serialization::serializationLength(task_id); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct AddTaskRequest 00098 typedef ::continuous_ops_msgs::AddTaskRequest_<std::allocator<void> > AddTaskRequest; 00099 00100 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskRequest> AddTaskRequestPtr; 00101 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskRequest const> AddTaskRequestConstPtr; 00102 00103 00104 template <class ContainerAllocator> 00105 struct AddTaskResponse_ { 00106 typedef AddTaskResponse_<ContainerAllocator> Type; 00107 00108 AddTaskResponse_() 00109 : run_id() 00110 , tasks() 00111 { 00112 } 00113 00114 AddTaskResponse_(const ContainerAllocator& _alloc) 00115 : run_id(_alloc) 00116 , tasks(_alloc) 00117 { 00118 } 00119 00120 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _run_id_type; 00121 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > run_id; 00122 00123 typedef std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > _tasks_type; 00124 std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > tasks; 00125 00126 00127 ROS_DEPRECATED uint32_t get_tasks_size() const { return (uint32_t)tasks.size(); } 00128 ROS_DEPRECATED void set_tasks_size(uint32_t size) { tasks.resize((size_t)size); } 00129 ROS_DEPRECATED void get_tasks_vec(std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > & vec) const { vec = this->tasks; } 00130 ROS_DEPRECATED void set_tasks_vec(const std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > & vec) { this->tasks = vec; } 00131 private: 00132 static const char* __s_getDataType_() { return "continuous_ops_msgs/AddTaskResponse"; } 00133 public: 00134 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00135 00136 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00137 00138 private: 00139 static const char* __s_getMD5Sum_() { return "979d5775818765dc12366ea52f087732"; } 00140 public: 00141 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00142 00143 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00144 00145 private: 00146 static const char* __s_getServerMD5Sum_() { return "9f006c64e7df3a3de962d4fabeb03d6e"; } 00147 public: 00148 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00149 00150 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00151 00152 private: 00153 static const char* __s_getMessageDefinition_() { return "string run_id\n\ 00154 Task[] tasks\n\ 00155 \n\ 00156 ================================================================================\n\ 00157 MSG: continuous_ops_msgs/Task\n\ 00158 string name\n\ 00159 string description\n\ 00160 string task_id\n\ 00161 string run_id\n\ 00162 string launch_file\n\ 00163 string image_file\n\ 00164 string state\n\ 00165 string action_ns\n\ 00166 duration timeout\n\ 00167 "; } 00168 public: 00169 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00170 00171 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00172 00173 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00174 { 00175 ros::serialization::OStream stream(write_ptr, 1000000000); 00176 ros::serialization::serialize(stream, run_id); 00177 ros::serialization::serialize(stream, tasks); 00178 return stream.getData(); 00179 } 00180 00181 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00182 { 00183 ros::serialization::IStream stream(read_ptr, 1000000000); 00184 ros::serialization::deserialize(stream, run_id); 00185 ros::serialization::deserialize(stream, tasks); 00186 return stream.getData(); 00187 } 00188 00189 ROS_DEPRECATED virtual uint32_t serializationLength() const 00190 { 00191 uint32_t size = 0; 00192 size += ros::serialization::serializationLength(run_id); 00193 size += ros::serialization::serializationLength(tasks); 00194 return size; 00195 } 00196 00197 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > Ptr; 00198 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> const> ConstPtr; 00199 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00200 }; // struct AddTaskResponse 00201 typedef ::continuous_ops_msgs::AddTaskResponse_<std::allocator<void> > AddTaskResponse; 00202 00203 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskResponse> AddTaskResponsePtr; 00204 typedef boost::shared_ptr< ::continuous_ops_msgs::AddTaskResponse const> AddTaskResponseConstPtr; 00205 00206 struct AddTask 00207 { 00208 00209 typedef AddTaskRequest Request; 00210 typedef AddTaskResponse Response; 00211 Request request; 00212 Response response; 00213 00214 typedef Request RequestType; 00215 typedef Response ResponseType; 00216 }; // struct AddTask 00217 } // namespace continuous_ops_msgs 00218 00219 namespace ros 00220 { 00221 namespace message_traits 00222 { 00223 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > : public TrueType {}; 00224 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> const> : public TrueType {}; 00225 template<class ContainerAllocator> 00226 struct MD5Sum< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > { 00227 static const char* value() 00228 { 00229 return "2b6ff28cc01b440b5e2f50ddfe7763c3"; 00230 } 00231 00232 static const char* value(const ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> &) { return value(); } 00233 static const uint64_t static_value1 = 0x2b6ff28cc01b440bULL; 00234 static const uint64_t static_value2 = 0x5e2f50ddfe7763c3ULL; 00235 }; 00236 00237 template<class ContainerAllocator> 00238 struct DataType< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "continuous_ops_msgs/AddTaskRequest"; 00242 } 00243 00244 static const char* value(const ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 template<class ContainerAllocator> 00248 struct Definition< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > { 00249 static const char* value() 00250 { 00251 return "string task_id\n\ 00252 \n\ 00253 "; 00254 } 00255 00256 static const char* value(const ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 } // namespace message_traits 00260 } // namespace ros 00261 00262 00263 namespace ros 00264 { 00265 namespace message_traits 00266 { 00267 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > : public TrueType {}; 00268 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> const> : public TrueType {}; 00269 template<class ContainerAllocator> 00270 struct MD5Sum< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "979d5775818765dc12366ea52f087732"; 00274 } 00275 00276 static const char* value(const ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> &) { return value(); } 00277 static const uint64_t static_value1 = 0x979d5775818765dcULL; 00278 static const uint64_t static_value2 = 0x12366ea52f087732ULL; 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct DataType< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "continuous_ops_msgs/AddTaskResponse"; 00286 } 00287 00288 static const char* value(const ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> &) { return value(); } 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct Definition< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "string run_id\n\ 00296 Task[] tasks\n\ 00297 \n\ 00298 ================================================================================\n\ 00299 MSG: continuous_ops_msgs/Task\n\ 00300 string name\n\ 00301 string description\n\ 00302 string task_id\n\ 00303 string run_id\n\ 00304 string launch_file\n\ 00305 string image_file\n\ 00306 string state\n\ 00307 string action_ns\n\ 00308 duration timeout\n\ 00309 "; 00310 } 00311 00312 static const char* value(const ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 } // namespace message_traits 00316 } // namespace ros 00317 00318 namespace ros 00319 { 00320 namespace serialization 00321 { 00322 00323 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > 00324 { 00325 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00326 { 00327 stream.next(m.task_id); 00328 } 00329 00330 ROS_DECLARE_ALLINONE_SERIALIZER; 00331 }; // struct AddTaskRequest_ 00332 } // namespace serialization 00333 } // namespace ros 00334 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 stream.next(m.run_id); 00346 stream.next(m.tasks); 00347 } 00348 00349 ROS_DECLARE_ALLINONE_SERIALIZER; 00350 }; // struct AddTaskResponse_ 00351 } // namespace serialization 00352 } // namespace ros 00353 00354 namespace ros 00355 { 00356 namespace service_traits 00357 { 00358 template<> 00359 struct MD5Sum<continuous_ops_msgs::AddTask> { 00360 static const char* value() 00361 { 00362 return "9f006c64e7df3a3de962d4fabeb03d6e"; 00363 } 00364 00365 static const char* value(const continuous_ops_msgs::AddTask&) { return value(); } 00366 }; 00367 00368 template<> 00369 struct DataType<continuous_ops_msgs::AddTask> { 00370 static const char* value() 00371 { 00372 return "continuous_ops_msgs/AddTask"; 00373 } 00374 00375 static const char* value(const continuous_ops_msgs::AddTask&) { return value(); } 00376 }; 00377 00378 template<class ContainerAllocator> 00379 struct MD5Sum<continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > { 00380 static const char* value() 00381 { 00382 return "9f006c64e7df3a3de962d4fabeb03d6e"; 00383 } 00384 00385 static const char* value(const continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> &) { return value(); } 00386 }; 00387 00388 template<class ContainerAllocator> 00389 struct DataType<continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> > { 00390 static const char* value() 00391 { 00392 return "continuous_ops_msgs/AddTask"; 00393 } 00394 00395 static const char* value(const continuous_ops_msgs::AddTaskRequest_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct MD5Sum<continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "9f006c64e7df3a3de962d4fabeb03d6e"; 00403 } 00404 00405 static const char* value(const continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> 00409 struct DataType<continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> > { 00410 static const char* value() 00411 { 00412 return "continuous_ops_msgs/AddTask"; 00413 } 00414 00415 static const char* value(const continuous_ops_msgs::AddTaskResponse_<ContainerAllocator> &) { return value(); } 00416 }; 00417 00418 } // namespace service_traits 00419 } // namespace ros 00420 00421 #endif // CONTINUOUS_OPS_MSGS_SERVICE_ADDTASK_H 00422