$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/srv/ChangeMotorSystemControls.srv */ 00002 #ifndef SR_ROBOT_MSGS_SERVICE_CHANGEMOTORSYSTEMCONTROLS_H 00003 #define SR_ROBOT_MSGS_SERVICE_CHANGEMOTORSYSTEMCONTROLS_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 #include "sr_robot_msgs/MotorSystemControls.h" 00020 00021 00022 00023 namespace sr_robot_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct ChangeMotorSystemControlsRequest_ { 00027 typedef ChangeMotorSystemControlsRequest_<ContainerAllocator> Type; 00028 00029 ChangeMotorSystemControlsRequest_() 00030 : motor_system_controls() 00031 { 00032 } 00033 00034 ChangeMotorSystemControlsRequest_(const ContainerAllocator& _alloc) 00035 : motor_system_controls(_alloc) 00036 { 00037 } 00038 00039 typedef std::vector< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::other > _motor_system_controls_type; 00040 std::vector< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::other > motor_system_controls; 00041 00042 00043 ROS_DEPRECATED uint32_t get_motor_system_controls_size() const { return (uint32_t)motor_system_controls.size(); } 00044 ROS_DEPRECATED void set_motor_system_controls_size(uint32_t size) { motor_system_controls.resize((size_t)size); } 00045 ROS_DEPRECATED void get_motor_system_controls_vec(std::vector< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::other > & vec) const { vec = this->motor_system_controls; } 00046 ROS_DEPRECATED void set_motor_system_controls_vec(const std::vector< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::other > & vec) { this->motor_system_controls = vec; } 00047 private: 00048 static const char* __s_getDataType_() { return "sr_robot_msgs/ChangeMotorSystemControlsRequest"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "6458c2239125c960f4d1ef4d23696a1e"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getServerMD5Sum_() { return "d953bca2f568403b8e2c3f41c87d9ac4"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "MotorSystemControls[] motor_system_controls\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: sr_robot_msgs/MotorSystemControls\n\ 00073 int8 motor_id # the id of the motor you want to control\n\ 00074 \n\ 00075 bool enable_backlash_compensation # switch on/off backlash compensation at the motor level\n\ 00076 bool increase_sgl_tracking # increment the tracking value for the left gauge\n\ 00077 bool decrease_sgl_tracking # decrement the tracking value for the left gauge\n\ 00078 bool increase_sgr_tracking # increment the tracking value for the right gauge\n\ 00079 bool decrease_sgr_tracking # decrement the tracking value for the right gauge\n\ 00080 bool initiate_jiggling # starts jiggling the given motor\n\ 00081 bool write_config_to_eeprom # write the current configuration to the eeprom\n\ 00082 "; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00089 { 00090 ros::serialization::OStream stream(write_ptr, 1000000000); 00091 ros::serialization::serialize(stream, motor_system_controls); 00092 return stream.getData(); 00093 } 00094 00095 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00096 { 00097 ros::serialization::IStream stream(read_ptr, 1000000000); 00098 ros::serialization::deserialize(stream, motor_system_controls); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(motor_system_controls); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct ChangeMotorSystemControlsRequest 00113 typedef ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<std::allocator<void> > ChangeMotorSystemControlsRequest; 00114 00115 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsRequest> ChangeMotorSystemControlsRequestPtr; 00116 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsRequest const> ChangeMotorSystemControlsRequestConstPtr; 00117 00118 00119 template <class ContainerAllocator> 00120 struct ChangeMotorSystemControlsResponse_ { 00121 typedef ChangeMotorSystemControlsResponse_<ContainerAllocator> Type; 00122 00123 ChangeMotorSystemControlsResponse_() 00124 : result(0) 00125 { 00126 } 00127 00128 ChangeMotorSystemControlsResponse_(const ContainerAllocator& _alloc) 00129 : result(0) 00130 { 00131 } 00132 00133 typedef int8_t _result_type; 00134 int8_t result; 00135 00136 enum { SUCCESS = 0 }; 00137 enum { MOTOR_ID_OUT_OF_RANGE = -1 }; 00138 00139 private: 00140 static const char* __s_getDataType_() { return "sr_robot_msgs/ChangeMotorSystemControlsResponse"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00143 00144 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00145 00146 private: 00147 static const char* __s_getMD5Sum_() { return "5dade9e97a517a3f230ed76028e54c71"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getServerMD5Sum_() { return "d953bca2f568403b8e2c3f41c87d9ac4"; } 00155 public: 00156 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00157 00158 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00159 00160 private: 00161 static const char* __s_getMessageDefinition_() { return "int8 result\n\ 00162 \n\ 00163 int8 SUCCESS=0\n\ 00164 int8 MOTOR_ID_OUT_OF_RANGE=-1\n\ 00165 \n\ 00166 "; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00171 00172 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00173 { 00174 ros::serialization::OStream stream(write_ptr, 1000000000); 00175 ros::serialization::serialize(stream, result); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, result); 00183 return stream.getData(); 00184 } 00185 00186 ROS_DEPRECATED virtual uint32_t serializationLength() const 00187 { 00188 uint32_t size = 0; 00189 size += ros::serialization::serializationLength(result); 00190 return size; 00191 } 00192 00193 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > Ptr; 00194 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> const> ConstPtr; 00195 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00196 }; // struct ChangeMotorSystemControlsResponse 00197 typedef ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<std::allocator<void> > ChangeMotorSystemControlsResponse; 00198 00199 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsResponse> ChangeMotorSystemControlsResponsePtr; 00200 typedef boost::shared_ptr< ::sr_robot_msgs::ChangeMotorSystemControlsResponse const> ChangeMotorSystemControlsResponseConstPtr; 00201 00202 struct ChangeMotorSystemControls 00203 { 00204 00205 typedef ChangeMotorSystemControlsRequest Request; 00206 typedef ChangeMotorSystemControlsResponse Response; 00207 Request request; 00208 Response response; 00209 00210 typedef Request RequestType; 00211 typedef Response ResponseType; 00212 }; // struct ChangeMotorSystemControls 00213 } // namespace sr_robot_msgs 00214 00215 namespace ros 00216 { 00217 namespace message_traits 00218 { 00219 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > : public TrueType {}; 00220 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> const> : public TrueType {}; 00221 template<class ContainerAllocator> 00222 struct MD5Sum< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "6458c2239125c960f4d1ef4d23696a1e"; 00226 } 00227 00228 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> &) { return value(); } 00229 static const uint64_t static_value1 = 0x6458c2239125c960ULL; 00230 static const uint64_t static_value2 = 0xf4d1ef4d23696a1eULL; 00231 }; 00232 00233 template<class ContainerAllocator> 00234 struct DataType< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > { 00235 static const char* value() 00236 { 00237 return "sr_robot_msgs/ChangeMotorSystemControlsRequest"; 00238 } 00239 00240 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> &) { return value(); } 00241 }; 00242 00243 template<class ContainerAllocator> 00244 struct Definition< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > { 00245 static const char* value() 00246 { 00247 return "MotorSystemControls[] motor_system_controls\n\ 00248 \n\ 00249 ================================================================================\n\ 00250 MSG: sr_robot_msgs/MotorSystemControls\n\ 00251 int8 motor_id # the id of the motor you want to control\n\ 00252 \n\ 00253 bool enable_backlash_compensation # switch on/off backlash compensation at the motor level\n\ 00254 bool increase_sgl_tracking # increment the tracking value for the left gauge\n\ 00255 bool decrease_sgl_tracking # decrement the tracking value for the left gauge\n\ 00256 bool increase_sgr_tracking # increment the tracking value for the right gauge\n\ 00257 bool decrease_sgr_tracking # decrement the tracking value for the right gauge\n\ 00258 bool initiate_jiggling # starts jiggling the given motor\n\ 00259 bool write_config_to_eeprom # write the current configuration to the eeprom\n\ 00260 "; 00261 } 00262 00263 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> &) { return value(); } 00264 }; 00265 00266 } // namespace message_traits 00267 } // namespace ros 00268 00269 00270 namespace ros 00271 { 00272 namespace message_traits 00273 { 00274 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > : public TrueType {}; 00275 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> const> : public TrueType {}; 00276 template<class ContainerAllocator> 00277 struct MD5Sum< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > { 00278 static const char* value() 00279 { 00280 return "5dade9e97a517a3f230ed76028e54c71"; 00281 } 00282 00283 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> &) { return value(); } 00284 static const uint64_t static_value1 = 0x5dade9e97a517a3fULL; 00285 static const uint64_t static_value2 = 0x230ed76028e54c71ULL; 00286 }; 00287 00288 template<class ContainerAllocator> 00289 struct DataType< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > { 00290 static const char* value() 00291 { 00292 return "sr_robot_msgs/ChangeMotorSystemControlsResponse"; 00293 } 00294 00295 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> &) { return value(); } 00296 }; 00297 00298 template<class ContainerAllocator> 00299 struct Definition< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "int8 result\n\ 00303 \n\ 00304 int8 SUCCESS=0\n\ 00305 int8 MOTOR_ID_OUT_OF_RANGE=-1\n\ 00306 \n\ 00307 "; 00308 } 00309 00310 static const char* value(const ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> &) { return value(); } 00311 }; 00312 00313 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > : public TrueType {}; 00314 } // namespace message_traits 00315 } // namespace ros 00316 00317 namespace ros 00318 { 00319 namespace serialization 00320 { 00321 00322 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > 00323 { 00324 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00325 { 00326 stream.next(m.motor_system_controls); 00327 } 00328 00329 ROS_DECLARE_ALLINONE_SERIALIZER; 00330 }; // struct ChangeMotorSystemControlsRequest_ 00331 } // namespace serialization 00332 } // namespace ros 00333 00334 00335 namespace ros 00336 { 00337 namespace serialization 00338 { 00339 00340 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > 00341 { 00342 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00343 { 00344 stream.next(m.result); 00345 } 00346 00347 ROS_DECLARE_ALLINONE_SERIALIZER; 00348 }; // struct ChangeMotorSystemControlsResponse_ 00349 } // namespace serialization 00350 } // namespace ros 00351 00352 namespace ros 00353 { 00354 namespace service_traits 00355 { 00356 template<> 00357 struct MD5Sum<sr_robot_msgs::ChangeMotorSystemControls> { 00358 static const char* value() 00359 { 00360 return "d953bca2f568403b8e2c3f41c87d9ac4"; 00361 } 00362 00363 static const char* value(const sr_robot_msgs::ChangeMotorSystemControls&) { return value(); } 00364 }; 00365 00366 template<> 00367 struct DataType<sr_robot_msgs::ChangeMotorSystemControls> { 00368 static const char* value() 00369 { 00370 return "sr_robot_msgs/ChangeMotorSystemControls"; 00371 } 00372 00373 static const char* value(const sr_robot_msgs::ChangeMotorSystemControls&) { return value(); } 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct MD5Sum<sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "d953bca2f568403b8e2c3f41c87d9ac4"; 00381 } 00382 00383 static const char* value(const sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct DataType<sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "sr_robot_msgs/ChangeMotorSystemControls"; 00391 } 00392 00393 static const char* value(const sr_robot_msgs::ChangeMotorSystemControlsRequest_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct MD5Sum<sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "d953bca2f568403b8e2c3f41c87d9ac4"; 00401 } 00402 00403 static const char* value(const sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 template<class ContainerAllocator> 00407 struct DataType<sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> > { 00408 static const char* value() 00409 { 00410 return "sr_robot_msgs/ChangeMotorSystemControls"; 00411 } 00412 00413 static const char* value(const sr_robot_msgs::ChangeMotorSystemControlsResponse_<ContainerAllocator> &) { return value(); } 00414 }; 00415 00416 } // namespace service_traits 00417 } // namespace ros 00418 00419 #endif // SR_ROBOT_MSGS_SERVICE_CHANGEMOTORSYSTEMCONTROLS_H 00420