$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/ethercat_trigger_controllers/srv/SetWaveform.srv */ 00002 #ifndef ETHERCAT_TRIGGER_CONTROLLERS_SERVICE_SETWAVEFORM_H 00003 #define ETHERCAT_TRIGGER_CONTROLLERS_SERVICE_SETWAVEFORM_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 00022 namespace ethercat_trigger_controllers 00023 { 00024 template <class ContainerAllocator> 00025 struct SetWaveformRequest_ { 00026 typedef SetWaveformRequest_<ContainerAllocator> Type; 00027 00028 SetWaveformRequest_() 00029 : rep_rate(0.0) 00030 , phase(0.0) 00031 , duty_cycle(0.0) 00032 , running(0) 00033 , active_low(0) 00034 , pulsed(0) 00035 { 00036 } 00037 00038 SetWaveformRequest_(const ContainerAllocator& _alloc) 00039 : rep_rate(0.0) 00040 , phase(0.0) 00041 , duty_cycle(0.0) 00042 , running(0) 00043 , active_low(0) 00044 , pulsed(0) 00045 { 00046 } 00047 00048 typedef double _rep_rate_type; 00049 double rep_rate; 00050 00051 typedef double _phase_type; 00052 double phase; 00053 00054 typedef double _duty_cycle_type; 00055 double duty_cycle; 00056 00057 typedef int32_t _running_type; 00058 int32_t running; 00059 00060 typedef int32_t _active_low_type; 00061 int32_t active_low; 00062 00063 typedef int32_t _pulsed_type; 00064 int32_t pulsed; 00065 00066 00067 private: 00068 static const char* __s_getDataType_() { return "ethercat_trigger_controllers/SetWaveformRequest"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00071 00072 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00073 00074 private: 00075 static const char* __s_getMD5Sum_() { return "988450e1ddd386f3967c381c19b2330c"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getServerMD5Sum_() { return "988450e1ddd386f3967c381c19b2330c"; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00085 00086 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00087 00088 private: 00089 static const char* __s_getMessageDefinition_() { return "float64 rep_rate\n\ 00090 float64 phase\n\ 00091 float64 duty_cycle\n\ 00092 int32 running\n\ 00093 int32 active_low\n\ 00094 int32 pulsed\n\ 00095 \n\ 00096 "; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00103 { 00104 ros::serialization::OStream stream(write_ptr, 1000000000); 00105 ros::serialization::serialize(stream, rep_rate); 00106 ros::serialization::serialize(stream, phase); 00107 ros::serialization::serialize(stream, duty_cycle); 00108 ros::serialization::serialize(stream, running); 00109 ros::serialization::serialize(stream, active_low); 00110 ros::serialization::serialize(stream, pulsed); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00115 { 00116 ros::serialization::IStream stream(read_ptr, 1000000000); 00117 ros::serialization::deserialize(stream, rep_rate); 00118 ros::serialization::deserialize(stream, phase); 00119 ros::serialization::deserialize(stream, duty_cycle); 00120 ros::serialization::deserialize(stream, running); 00121 ros::serialization::deserialize(stream, active_low); 00122 ros::serialization::deserialize(stream, pulsed); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(rep_rate); 00130 size += ros::serialization::serializationLength(phase); 00131 size += ros::serialization::serializationLength(duty_cycle); 00132 size += ros::serialization::serializationLength(running); 00133 size += ros::serialization::serializationLength(active_low); 00134 size += ros::serialization::serializationLength(pulsed); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct SetWaveformRequest 00142 typedef ::ethercat_trigger_controllers::SetWaveformRequest_<std::allocator<void> > SetWaveformRequest; 00143 00144 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformRequest> SetWaveformRequestPtr; 00145 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformRequest const> SetWaveformRequestConstPtr; 00146 00147 00148 template <class ContainerAllocator> 00149 struct SetWaveformResponse_ { 00150 typedef SetWaveformResponse_<ContainerAllocator> Type; 00151 00152 SetWaveformResponse_() 00153 { 00154 } 00155 00156 SetWaveformResponse_(const ContainerAllocator& _alloc) 00157 { 00158 } 00159 00160 00161 private: 00162 static const char* __s_getDataType_() { return "ethercat_trigger_controllers/SetWaveformResponse"; } 00163 public: 00164 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00165 00166 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00167 00168 private: 00169 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00170 public: 00171 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00172 00173 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00174 00175 private: 00176 static const char* __s_getServerMD5Sum_() { return "988450e1ddd386f3967c381c19b2330c"; } 00177 public: 00178 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00179 00180 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00181 00182 private: 00183 static const char* __s_getMessageDefinition_() { return "\n\ 00184 \n\ 00185 "; } 00186 public: 00187 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00188 00189 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00190 00191 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00192 { 00193 ros::serialization::OStream stream(write_ptr, 1000000000); 00194 return stream.getData(); 00195 } 00196 00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00198 { 00199 ros::serialization::IStream stream(read_ptr, 1000000000); 00200 return stream.getData(); 00201 } 00202 00203 ROS_DEPRECATED virtual uint32_t serializationLength() const 00204 { 00205 uint32_t size = 0; 00206 return size; 00207 } 00208 00209 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > Ptr; 00210 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> const> ConstPtr; 00211 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00212 }; // struct SetWaveformResponse 00213 typedef ::ethercat_trigger_controllers::SetWaveformResponse_<std::allocator<void> > SetWaveformResponse; 00214 00215 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformResponse> SetWaveformResponsePtr; 00216 typedef boost::shared_ptr< ::ethercat_trigger_controllers::SetWaveformResponse const> SetWaveformResponseConstPtr; 00217 00218 struct SetWaveform 00219 { 00220 00221 typedef SetWaveformRequest Request; 00222 typedef SetWaveformResponse Response; 00223 Request request; 00224 Response response; 00225 00226 typedef Request RequestType; 00227 typedef Response ResponseType; 00228 }; // struct SetWaveform 00229 } // namespace ethercat_trigger_controllers 00230 00231 namespace ros 00232 { 00233 namespace message_traits 00234 { 00235 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > : public TrueType {}; 00236 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> const> : public TrueType {}; 00237 template<class ContainerAllocator> 00238 struct MD5Sum< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "988450e1ddd386f3967c381c19b2330c"; 00242 } 00243 00244 static const char* value(const ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> &) { return value(); } 00245 static const uint64_t static_value1 = 0x988450e1ddd386f3ULL; 00246 static const uint64_t static_value2 = 0x967c381c19b2330cULL; 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct DataType< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "ethercat_trigger_controllers/SetWaveformRequest"; 00254 } 00255 00256 static const char* value(const ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct Definition< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "float64 rep_rate\n\ 00264 float64 phase\n\ 00265 float64 duty_cycle\n\ 00266 int32 running\n\ 00267 int32 active_low\n\ 00268 int32 pulsed\n\ 00269 \n\ 00270 "; 00271 } 00272 00273 static const char* value(const ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 template<class ContainerAllocator> struct IsFixedSize< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > : public TrueType {}; 00277 } // namespace message_traits 00278 } // namespace ros 00279 00280 00281 namespace ros 00282 { 00283 namespace message_traits 00284 { 00285 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > : public TrueType {}; 00286 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> const> : public TrueType {}; 00287 template<class ContainerAllocator> 00288 struct MD5Sum< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "d41d8cd98f00b204e9800998ecf8427e"; 00292 } 00293 00294 static const char* value(const ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> &) { return value(); } 00295 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00296 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00297 }; 00298 00299 template<class ContainerAllocator> 00300 struct DataType< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > { 00301 static const char* value() 00302 { 00303 return "ethercat_trigger_controllers/SetWaveformResponse"; 00304 } 00305 00306 static const char* value(const ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> &) { return value(); } 00307 }; 00308 00309 template<class ContainerAllocator> 00310 struct Definition< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > { 00311 static const char* value() 00312 { 00313 return "\n\ 00314 \n\ 00315 "; 00316 } 00317 00318 static const char* value(const ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> &) { return value(); } 00319 }; 00320 00321 template<class ContainerAllocator> struct IsFixedSize< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > : public TrueType {}; 00322 } // namespace message_traits 00323 } // namespace ros 00324 00325 namespace ros 00326 { 00327 namespace serialization 00328 { 00329 00330 template<class ContainerAllocator> struct Serializer< ::ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > 00331 { 00332 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00333 { 00334 stream.next(m.rep_rate); 00335 stream.next(m.phase); 00336 stream.next(m.duty_cycle); 00337 stream.next(m.running); 00338 stream.next(m.active_low); 00339 stream.next(m.pulsed); 00340 } 00341 00342 ROS_DECLARE_ALLINONE_SERIALIZER; 00343 }; // struct SetWaveformRequest_ 00344 } // namespace serialization 00345 } // namespace ros 00346 00347 00348 namespace ros 00349 { 00350 namespace serialization 00351 { 00352 00353 template<class ContainerAllocator> struct Serializer< ::ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > 00354 { 00355 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00356 { 00357 } 00358 00359 ROS_DECLARE_ALLINONE_SERIALIZER; 00360 }; // struct SetWaveformResponse_ 00361 } // namespace serialization 00362 } // namespace ros 00363 00364 namespace ros 00365 { 00366 namespace service_traits 00367 { 00368 template<> 00369 struct MD5Sum<ethercat_trigger_controllers::SetWaveform> { 00370 static const char* value() 00371 { 00372 return "988450e1ddd386f3967c381c19b2330c"; 00373 } 00374 00375 static const char* value(const ethercat_trigger_controllers::SetWaveform&) { return value(); } 00376 }; 00377 00378 template<> 00379 struct DataType<ethercat_trigger_controllers::SetWaveform> { 00380 static const char* value() 00381 { 00382 return "ethercat_trigger_controllers/SetWaveform"; 00383 } 00384 00385 static const char* value(const ethercat_trigger_controllers::SetWaveform&) { return value(); } 00386 }; 00387 00388 template<class ContainerAllocator> 00389 struct MD5Sum<ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > { 00390 static const char* value() 00391 { 00392 return "988450e1ddd386f3967c381c19b2330c"; 00393 } 00394 00395 static const char* value(const ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct DataType<ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "ethercat_trigger_controllers/SetWaveform"; 00403 } 00404 00405 static const char* value(const ethercat_trigger_controllers::SetWaveformRequest_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> 00409 struct MD5Sum<ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > { 00410 static const char* value() 00411 { 00412 return "988450e1ddd386f3967c381c19b2330c"; 00413 } 00414 00415 static const char* value(const ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> &) { return value(); } 00416 }; 00417 00418 template<class ContainerAllocator> 00419 struct DataType<ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> > { 00420 static const char* value() 00421 { 00422 return "ethercat_trigger_controllers/SetWaveform"; 00423 } 00424 00425 static const char* value(const ethercat_trigger_controllers::SetWaveformResponse_<ContainerAllocator> &) { return value(); } 00426 }; 00427 00428 } // namespace service_traits 00429 } // namespace ros 00430 00431 #endif // ETHERCAT_TRIGGER_CONTROLLERS_SERVICE_SETWAVEFORM_H 00432