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