00001
00002 #ifndef DYNAMIXEL_CONTROLLERS_SERVICE_SETTORQUELIMIT_H
00003 #define DYNAMIXEL_CONTROLLERS_SERVICE_SETTORQUELIMIT_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 dynamixel_controllers
00019 {
00020 template <class ContainerAllocator>
00021 struct SetTorqueLimitRequest_ : public ros::Message
00022 {
00023 typedef SetTorqueLimitRequest_<ContainerAllocator> Type;
00024
00025 SetTorqueLimitRequest_()
00026 : torque_limit(0.0)
00027 {
00028 }
00029
00030 SetTorqueLimitRequest_(const ContainerAllocator& _alloc)
00031 : torque_limit(0.0)
00032 {
00033 }
00034
00035 typedef double _torque_limit_type;
00036 double torque_limit;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "dynamixel_controllers/SetTorqueLimitRequest"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "7ac67170532bb79d95db2a425915bbd6"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getServerMD5Sum_() { return "7ac67170532bb79d95db2a425915bbd6"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getMessageDefinition_() { return "\n\
00062 \n\
00063 float64 torque_limit\n\
00064 \n\
00065 "; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072 {
00073 ros::serialization::OStream stream(write_ptr, 1000000000);
00074 ros::serialization::serialize(stream, torque_limit);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00079 {
00080 ros::serialization::IStream stream(read_ptr, 1000000000);
00081 ros::serialization::deserialize(stream, torque_limit);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 size += ros::serialization::serializationLength(torque_limit);
00089 return size;
00090 }
00091
00092 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > Ptr;
00093 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> const> ConstPtr;
00094 };
00095 typedef ::dynamixel_controllers::SetTorqueLimitRequest_<std::allocator<void> > SetTorqueLimitRequest;
00096
00097 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitRequest> SetTorqueLimitRequestPtr;
00098 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitRequest const> SetTorqueLimitRequestConstPtr;
00099
00100
00101 template <class ContainerAllocator>
00102 struct SetTorqueLimitResponse_ : public ros::Message
00103 {
00104 typedef SetTorqueLimitResponse_<ContainerAllocator> Type;
00105
00106 SetTorqueLimitResponse_()
00107 {
00108 }
00109
00110 SetTorqueLimitResponse_(const ContainerAllocator& _alloc)
00111 {
00112 }
00113
00114
00115 private:
00116 static const char* __s_getDataType_() { return "dynamixel_controllers/SetTorqueLimitResponse"; }
00117 public:
00118 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00119
00120 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00121
00122 private:
00123 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00124 public:
00125 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00126
00127 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00128
00129 private:
00130 static const char* __s_getServerMD5Sum_() { return "7ac67170532bb79d95db2a425915bbd6"; }
00131 public:
00132 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00133
00134 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00135
00136 private:
00137 static const char* __s_getMessageDefinition_() { return "\n\
00138 \n\
00139 \n\
00140 "; }
00141 public:
00142 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00143
00144 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00145
00146 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00147 {
00148 ros::serialization::OStream stream(write_ptr, 1000000000);
00149 return stream.getData();
00150 }
00151
00152 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00153 {
00154 ros::serialization::IStream stream(read_ptr, 1000000000);
00155 return stream.getData();
00156 }
00157
00158 ROS_DEPRECATED virtual uint32_t serializationLength() const
00159 {
00160 uint32_t size = 0;
00161 return size;
00162 }
00163
00164 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > Ptr;
00165 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> const> ConstPtr;
00166 };
00167 typedef ::dynamixel_controllers::SetTorqueLimitResponse_<std::allocator<void> > SetTorqueLimitResponse;
00168
00169 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitResponse> SetTorqueLimitResponsePtr;
00170 typedef boost::shared_ptr< ::dynamixel_controllers::SetTorqueLimitResponse const> SetTorqueLimitResponseConstPtr;
00171
00172 struct SetTorqueLimit
00173 {
00174
00175 typedef SetTorqueLimitRequest Request;
00176 typedef SetTorqueLimitResponse Response;
00177 Request request;
00178 Response response;
00179
00180 typedef Request RequestType;
00181 typedef Response ResponseType;
00182 };
00183 }
00184
00185 namespace ros
00186 {
00187 namespace message_traits
00188 {
00189 template<class ContainerAllocator>
00190 struct MD5Sum< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > {
00191 static const char* value()
00192 {
00193 return "7ac67170532bb79d95db2a425915bbd6";
00194 }
00195
00196 static const char* value(const ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> &) { return value(); }
00197 static const uint64_t static_value1 = 0x7ac67170532bb79dULL;
00198 static const uint64_t static_value2 = 0x95db2a425915bbd6ULL;
00199 };
00200
00201 template<class ContainerAllocator>
00202 struct DataType< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > {
00203 static const char* value()
00204 {
00205 return "dynamixel_controllers/SetTorqueLimitRequest";
00206 }
00207
00208 static const char* value(const ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> &) { return value(); }
00209 };
00210
00211 template<class ContainerAllocator>
00212 struct Definition< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > {
00213 static const char* value()
00214 {
00215 return "\n\
00216 \n\
00217 float64 torque_limit\n\
00218 \n\
00219 ";
00220 }
00221
00222 static const char* value(const ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> &) { return value(); }
00223 };
00224
00225 template<class ContainerAllocator> struct IsFixedSize< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > : public TrueType {};
00226 }
00227 }
00228
00229
00230 namespace ros
00231 {
00232 namespace message_traits
00233 {
00234 template<class ContainerAllocator>
00235 struct MD5Sum< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > {
00236 static const char* value()
00237 {
00238 return "d41d8cd98f00b204e9800998ecf8427e";
00239 }
00240
00241 static const char* value(const ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> &) { return value(); }
00242 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00243 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00244 };
00245
00246 template<class ContainerAllocator>
00247 struct DataType< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > {
00248 static const char* value()
00249 {
00250 return "dynamixel_controllers/SetTorqueLimitResponse";
00251 }
00252
00253 static const char* value(const ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> &) { return value(); }
00254 };
00255
00256 template<class ContainerAllocator>
00257 struct Definition< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > {
00258 static const char* value()
00259 {
00260 return "\n\
00261 \n\
00262 \n\
00263 ";
00264 }
00265
00266 static const char* value(const ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator> struct IsFixedSize< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > : public TrueType {};
00270 }
00271 }
00272
00273 namespace ros
00274 {
00275 namespace serialization
00276 {
00277
00278 template<class ContainerAllocator> struct Serializer< ::dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> >
00279 {
00280 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00281 {
00282 stream.next(m.torque_limit);
00283 }
00284
00285 ROS_DECLARE_ALLINONE_SERIALIZER;
00286 };
00287 }
00288 }
00289
00290
00291 namespace ros
00292 {
00293 namespace serialization
00294 {
00295
00296 template<class ContainerAllocator> struct Serializer< ::dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> >
00297 {
00298 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00299 {
00300 }
00301
00302 ROS_DECLARE_ALLINONE_SERIALIZER;
00303 };
00304 }
00305 }
00306
00307 namespace ros
00308 {
00309 namespace service_traits
00310 {
00311 template<>
00312 struct MD5Sum<dynamixel_controllers::SetTorqueLimit> {
00313 static const char* value()
00314 {
00315 return "7ac67170532bb79d95db2a425915bbd6";
00316 }
00317
00318 static const char* value(const dynamixel_controllers::SetTorqueLimit&) { return value(); }
00319 };
00320
00321 template<>
00322 struct DataType<dynamixel_controllers::SetTorqueLimit> {
00323 static const char* value()
00324 {
00325 return "dynamixel_controllers/SetTorqueLimit";
00326 }
00327
00328 static const char* value(const dynamixel_controllers::SetTorqueLimit&) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator>
00332 struct MD5Sum<dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "7ac67170532bb79d95db2a425915bbd6";
00336 }
00337
00338 static const char* value(const dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> &) { return value(); }
00339 };
00340
00341 template<class ContainerAllocator>
00342 struct DataType<dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> > {
00343 static const char* value()
00344 {
00345 return "dynamixel_controllers/SetTorqueLimit";
00346 }
00347
00348 static const char* value(const dynamixel_controllers::SetTorqueLimitRequest_<ContainerAllocator> &) { return value(); }
00349 };
00350
00351 template<class ContainerAllocator>
00352 struct MD5Sum<dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > {
00353 static const char* value()
00354 {
00355 return "7ac67170532bb79d95db2a425915bbd6";
00356 }
00357
00358 static const char* value(const dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> &) { return value(); }
00359 };
00360
00361 template<class ContainerAllocator>
00362 struct DataType<dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> > {
00363 static const char* value()
00364 {
00365 return "dynamixel_controllers/SetTorqueLimit";
00366 }
00367
00368 static const char* value(const dynamixel_controllers::SetTorqueLimitResponse_<ContainerAllocator> &) { return value(); }
00369 };
00370
00371 }
00372 }
00373
00374 #endif // DYNAMIXEL_CONTROLLERS_SERVICE_SETTORQUELIMIT_H
00375