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