$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/ChangeTask.srv */ 00002 #ifndef CONTINUOUS_OPS_MSGS_SERVICE_CHANGETASK_H 00003 #define CONTINUOUS_OPS_MSGS_SERVICE_CHANGETASK_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 ChangeTaskRequest_ { 00027 typedef ChangeTaskRequest_<ContainerAllocator> Type; 00028 00029 ChangeTaskRequest_() 00030 : run_id() 00031 { 00032 } 00033 00034 ChangeTaskRequest_(const ContainerAllocator& _alloc) 00035 : run_id(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _run_id_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > run_id; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "continuous_ops_msgs/ChangeTaskRequest"; } 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 "3556f757c00324804cc4196184489e8c"; } 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 "684487ce98884abdbc1524a5854e85f9"; } 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 run_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, run_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, run_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(run_id); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct ChangeTaskRequest 00098 typedef ::continuous_ops_msgs::ChangeTaskRequest_<std::allocator<void> > ChangeTaskRequest; 00099 00100 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskRequest> ChangeTaskRequestPtr; 00101 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskRequest const> ChangeTaskRequestConstPtr; 00102 00103 00104 template <class ContainerAllocator> 00105 struct ChangeTaskResponse_ { 00106 typedef ChangeTaskResponse_<ContainerAllocator> Type; 00107 00108 ChangeTaskResponse_() 00109 : tasks() 00110 { 00111 } 00112 00113 ChangeTaskResponse_(const ContainerAllocator& _alloc) 00114 : tasks(_alloc) 00115 { 00116 } 00117 00118 typedef std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > _tasks_type; 00119 std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > tasks; 00120 00121 00122 ROS_DEPRECATED uint32_t get_tasks_size() const { return (uint32_t)tasks.size(); } 00123 ROS_DEPRECATED void set_tasks_size(uint32_t size) { tasks.resize((size_t)size); } 00124 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; } 00125 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; } 00126 private: 00127 static const char* __s_getDataType_() { return "continuous_ops_msgs/ChangeTaskResponse"; } 00128 public: 00129 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00130 00131 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00132 00133 private: 00134 static const char* __s_getMD5Sum_() { return "e6fac003aa050bdfb91de78e5697a3e5"; } 00135 public: 00136 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00137 00138 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00139 00140 private: 00141 static const char* __s_getServerMD5Sum_() { return "684487ce98884abdbc1524a5854e85f9"; } 00142 public: 00143 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00144 00145 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00146 00147 private: 00148 static const char* __s_getMessageDefinition_() { return "Task[] tasks\n\ 00149 \n\ 00150 ================================================================================\n\ 00151 MSG: continuous_ops_msgs/Task\n\ 00152 string name\n\ 00153 string description\n\ 00154 string task_id\n\ 00155 string run_id\n\ 00156 string launch_file\n\ 00157 string image_file\n\ 00158 string state\n\ 00159 string action_ns\n\ 00160 duration timeout\n\ 00161 "; } 00162 public: 00163 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00164 00165 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00166 00167 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00168 { 00169 ros::serialization::OStream stream(write_ptr, 1000000000); 00170 ros::serialization::serialize(stream, tasks); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00175 { 00176 ros::serialization::IStream stream(read_ptr, 1000000000); 00177 ros::serialization::deserialize(stream, tasks); 00178 return stream.getData(); 00179 } 00180 00181 ROS_DEPRECATED virtual uint32_t serializationLength() const 00182 { 00183 uint32_t size = 0; 00184 size += ros::serialization::serializationLength(tasks); 00185 return size; 00186 } 00187 00188 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > Ptr; 00189 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> const> ConstPtr; 00190 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00191 }; // struct ChangeTaskResponse 00192 typedef ::continuous_ops_msgs::ChangeTaskResponse_<std::allocator<void> > ChangeTaskResponse; 00193 00194 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskResponse> ChangeTaskResponsePtr; 00195 typedef boost::shared_ptr< ::continuous_ops_msgs::ChangeTaskResponse const> ChangeTaskResponseConstPtr; 00196 00197 struct ChangeTask 00198 { 00199 00200 typedef ChangeTaskRequest Request; 00201 typedef ChangeTaskResponse Response; 00202 Request request; 00203 Response response; 00204 00205 typedef Request RequestType; 00206 typedef Response ResponseType; 00207 }; // struct ChangeTask 00208 } // namespace continuous_ops_msgs 00209 00210 namespace ros 00211 { 00212 namespace message_traits 00213 { 00214 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > : public TrueType {}; 00215 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> const> : public TrueType {}; 00216 template<class ContainerAllocator> 00217 struct MD5Sum< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "3556f757c00324804cc4196184489e8c"; 00221 } 00222 00223 static const char* value(const ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> &) { return value(); } 00224 static const uint64_t static_value1 = 0x3556f757c0032480ULL; 00225 static const uint64_t static_value2 = 0x4cc4196184489e8cULL; 00226 }; 00227 00228 template<class ContainerAllocator> 00229 struct DataType< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "continuous_ops_msgs/ChangeTaskRequest"; 00233 } 00234 00235 static const char* value(const ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 template<class ContainerAllocator> 00239 struct Definition< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > { 00240 static const char* value() 00241 { 00242 return "string run_id\n\ 00243 \n\ 00244 "; 00245 } 00246 00247 static const char* value(const ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 } // namespace message_traits 00251 } // namespace ros 00252 00253 00254 namespace ros 00255 { 00256 namespace message_traits 00257 { 00258 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> const> : public TrueType {}; 00260 template<class ContainerAllocator> 00261 struct MD5Sum< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "e6fac003aa050bdfb91de78e5697a3e5"; 00265 } 00266 00267 static const char* value(const ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> &) { return value(); } 00268 static const uint64_t static_value1 = 0xe6fac003aa050bdfULL; 00269 static const uint64_t static_value2 = 0xb91de78e5697a3e5ULL; 00270 }; 00271 00272 template<class ContainerAllocator> 00273 struct DataType< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "continuous_ops_msgs/ChangeTaskResponse"; 00277 } 00278 00279 static const char* value(const ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct Definition< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "Task[] tasks\n\ 00287 \n\ 00288 ================================================================================\n\ 00289 MSG: continuous_ops_msgs/Task\n\ 00290 string name\n\ 00291 string description\n\ 00292 string task_id\n\ 00293 string run_id\n\ 00294 string launch_file\n\ 00295 string image_file\n\ 00296 string state\n\ 00297 string action_ns\n\ 00298 duration timeout\n\ 00299 "; 00300 } 00301 00302 static const char* value(const ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> &) { return value(); } 00303 }; 00304 00305 } // namespace message_traits 00306 } // namespace ros 00307 00308 namespace ros 00309 { 00310 namespace serialization 00311 { 00312 00313 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > 00314 { 00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00316 { 00317 stream.next(m.run_id); 00318 } 00319 00320 ROS_DECLARE_ALLINONE_SERIALIZER; 00321 }; // struct ChangeTaskRequest_ 00322 } // namespace serialization 00323 } // namespace ros 00324 00325 00326 namespace ros 00327 { 00328 namespace serialization 00329 { 00330 00331 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > 00332 { 00333 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00334 { 00335 stream.next(m.tasks); 00336 } 00337 00338 ROS_DECLARE_ALLINONE_SERIALIZER; 00339 }; // struct ChangeTaskResponse_ 00340 } // namespace serialization 00341 } // namespace ros 00342 00343 namespace ros 00344 { 00345 namespace service_traits 00346 { 00347 template<> 00348 struct MD5Sum<continuous_ops_msgs::ChangeTask> { 00349 static const char* value() 00350 { 00351 return "684487ce98884abdbc1524a5854e85f9"; 00352 } 00353 00354 static const char* value(const continuous_ops_msgs::ChangeTask&) { return value(); } 00355 }; 00356 00357 template<> 00358 struct DataType<continuous_ops_msgs::ChangeTask> { 00359 static const char* value() 00360 { 00361 return "continuous_ops_msgs/ChangeTask"; 00362 } 00363 00364 static const char* value(const continuous_ops_msgs::ChangeTask&) { return value(); } 00365 }; 00366 00367 template<class ContainerAllocator> 00368 struct MD5Sum<continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > { 00369 static const char* value() 00370 { 00371 return "684487ce98884abdbc1524a5854e85f9"; 00372 } 00373 00374 static const char* value(const continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> &) { return value(); } 00375 }; 00376 00377 template<class ContainerAllocator> 00378 struct DataType<continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> > { 00379 static const char* value() 00380 { 00381 return "continuous_ops_msgs/ChangeTask"; 00382 } 00383 00384 static const char* value(const continuous_ops_msgs::ChangeTaskRequest_<ContainerAllocator> &) { return value(); } 00385 }; 00386 00387 template<class ContainerAllocator> 00388 struct MD5Sum<continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > { 00389 static const char* value() 00390 { 00391 return "684487ce98884abdbc1524a5854e85f9"; 00392 } 00393 00394 static const char* value(const continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> &) { return value(); } 00395 }; 00396 00397 template<class ContainerAllocator> 00398 struct DataType<continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> > { 00399 static const char* value() 00400 { 00401 return "continuous_ops_msgs/ChangeTask"; 00402 } 00403 00404 static const char* value(const continuous_ops_msgs::ChangeTaskResponse_<ContainerAllocator> &) { return value(); } 00405 }; 00406 00407 } // namespace service_traits 00408 } // namespace ros 00409 00410 #endif // CONTINUOUS_OPS_MSGS_SERVICE_CHANGETASK_H 00411