$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_msgs/srv/ApplyJointEffort.srv */ 00002 #ifndef GAZEBO_MSGS_SERVICE_APPLYJOINTEFFORT_H 00003 #define GAZEBO_MSGS_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_msgs 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_msgs/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 string joint_name\n\ 00081 float64 effort\n\ 00082 time start_time\n\ 00083 \n\ 00084 duration duration\n\ 00085 \n\ 00086 \n\ 00087 \n\ 00088 \n\ 00089 \n\ 00090 "; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00097 { 00098 ros::serialization::OStream stream(write_ptr, 1000000000); 00099 ros::serialization::serialize(stream, joint_name); 00100 ros::serialization::serialize(stream, effort); 00101 ros::serialization::serialize(stream, start_time); 00102 ros::serialization::serialize(stream, duration); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00107 { 00108 ros::serialization::IStream stream(read_ptr, 1000000000); 00109 ros::serialization::deserialize(stream, joint_name); 00110 ros::serialization::deserialize(stream, effort); 00111 ros::serialization::deserialize(stream, start_time); 00112 ros::serialization::deserialize(stream, duration); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(joint_name); 00120 size += ros::serialization::serializationLength(effort); 00121 size += ros::serialization::serializationLength(start_time); 00122 size += ros::serialization::serializationLength(duration); 00123 return size; 00124 } 00125 00126 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > Ptr; 00127 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> const> ConstPtr; 00128 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00129 }; // struct ApplyJointEffortRequest 00130 typedef ::gazebo_msgs::ApplyJointEffortRequest_<std::allocator<void> > ApplyJointEffortRequest; 00131 00132 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortRequest> ApplyJointEffortRequestPtr; 00133 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortRequest const> ApplyJointEffortRequestConstPtr; 00134 00135 00136 template <class ContainerAllocator> 00137 struct ApplyJointEffortResponse_ { 00138 typedef ApplyJointEffortResponse_<ContainerAllocator> Type; 00139 00140 ApplyJointEffortResponse_() 00141 : success(false) 00142 , status_message() 00143 { 00144 } 00145 00146 ApplyJointEffortResponse_(const ContainerAllocator& _alloc) 00147 : success(false) 00148 , status_message(_alloc) 00149 { 00150 } 00151 00152 typedef uint8_t _success_type; 00153 uint8_t success; 00154 00155 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00156 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00157 00158 00159 private: 00160 static const char* __s_getDataType_() { return "gazebo_msgs/ApplyJointEffortResponse"; } 00161 public: 00162 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00163 00164 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00165 00166 private: 00167 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; } 00168 public: 00169 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00170 00171 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00172 00173 private: 00174 static const char* __s_getServerMD5Sum_() { return "c0039811b8cc919490b3cff748cdf46b"; } 00175 public: 00176 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00177 00178 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00179 00180 private: 00181 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00182 string status_message\n\ 00183 \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 ros::serialization::serialize(stream, success); 00195 ros::serialization::serialize(stream, status_message); 00196 return stream.getData(); 00197 } 00198 00199 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00200 { 00201 ros::serialization::IStream stream(read_ptr, 1000000000); 00202 ros::serialization::deserialize(stream, success); 00203 ros::serialization::deserialize(stream, status_message); 00204 return stream.getData(); 00205 } 00206 00207 ROS_DEPRECATED virtual uint32_t serializationLength() const 00208 { 00209 uint32_t size = 0; 00210 size += ros::serialization::serializationLength(success); 00211 size += ros::serialization::serializationLength(status_message); 00212 return size; 00213 } 00214 00215 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > Ptr; 00216 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> const> ConstPtr; 00217 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00218 }; // struct ApplyJointEffortResponse 00219 typedef ::gazebo_msgs::ApplyJointEffortResponse_<std::allocator<void> > ApplyJointEffortResponse; 00220 00221 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortResponse> ApplyJointEffortResponsePtr; 00222 typedef boost::shared_ptr< ::gazebo_msgs::ApplyJointEffortResponse const> ApplyJointEffortResponseConstPtr; 00223 00224 struct ApplyJointEffort 00225 { 00226 00227 typedef ApplyJointEffortRequest Request; 00228 typedef ApplyJointEffortResponse Response; 00229 Request request; 00230 Response response; 00231 00232 typedef Request RequestType; 00233 typedef Response ResponseType; 00234 }; // struct ApplyJointEffort 00235 } // namespace gazebo_msgs 00236 00237 namespace ros 00238 { 00239 namespace message_traits 00240 { 00241 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > : public TrueType {}; 00242 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> const> : public TrueType {}; 00243 template<class ContainerAllocator> 00244 struct MD5Sum< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > { 00245 static const char* value() 00246 { 00247 return "2c3396ab9af67a509ecd2167a8fe41a2"; 00248 } 00249 00250 static const char* value(const ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> &) { return value(); } 00251 static const uint64_t static_value1 = 0x2c3396ab9af67a50ULL; 00252 static const uint64_t static_value2 = 0x9ecd2167a8fe41a2ULL; 00253 }; 00254 00255 template<class ContainerAllocator> 00256 struct DataType< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > { 00257 static const char* value() 00258 { 00259 return "gazebo_msgs/ApplyJointEffortRequest"; 00260 } 00261 00262 static const char* value(const ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> &) { return value(); } 00263 }; 00264 00265 template<class ContainerAllocator> 00266 struct Definition< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > { 00267 static const char* value() 00268 { 00269 return "\n\ 00270 string joint_name\n\ 00271 float64 effort\n\ 00272 time start_time\n\ 00273 \n\ 00274 duration duration\n\ 00275 \n\ 00276 \n\ 00277 \n\ 00278 \n\ 00279 \n\ 00280 "; 00281 } 00282 00283 static const char* value(const ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> &) { return value(); } 00284 }; 00285 00286 } // namespace message_traits 00287 } // namespace ros 00288 00289 00290 namespace ros 00291 { 00292 namespace message_traits 00293 { 00294 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > : public TrueType {}; 00295 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> const> : public TrueType {}; 00296 template<class ContainerAllocator> 00297 struct MD5Sum< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > { 00298 static const char* value() 00299 { 00300 return "2ec6f3eff0161f4257b808b12bc830c2"; 00301 } 00302 00303 static const char* value(const ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> &) { return value(); } 00304 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL; 00305 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL; 00306 }; 00307 00308 template<class ContainerAllocator> 00309 struct DataType< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > { 00310 static const char* value() 00311 { 00312 return "gazebo_msgs/ApplyJointEffortResponse"; 00313 } 00314 00315 static const char* value(const ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> &) { return value(); } 00316 }; 00317 00318 template<class ContainerAllocator> 00319 struct Definition< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > { 00320 static const char* value() 00321 { 00322 return "bool success\n\ 00323 string status_message\n\ 00324 \n\ 00325 \n\ 00326 "; 00327 } 00328 00329 static const char* value(const ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> &) { return value(); } 00330 }; 00331 00332 } // namespace message_traits 00333 } // namespace ros 00334 00335 namespace ros 00336 { 00337 namespace serialization 00338 { 00339 00340 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > 00341 { 00342 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00343 { 00344 stream.next(m.joint_name); 00345 stream.next(m.effort); 00346 stream.next(m.start_time); 00347 stream.next(m.duration); 00348 } 00349 00350 ROS_DECLARE_ALLINONE_SERIALIZER; 00351 }; // struct ApplyJointEffortRequest_ 00352 } // namespace serialization 00353 } // namespace ros 00354 00355 00356 namespace ros 00357 { 00358 namespace serialization 00359 { 00360 00361 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > 00362 { 00363 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00364 { 00365 stream.next(m.success); 00366 stream.next(m.status_message); 00367 } 00368 00369 ROS_DECLARE_ALLINONE_SERIALIZER; 00370 }; // struct ApplyJointEffortResponse_ 00371 } // namespace serialization 00372 } // namespace ros 00373 00374 namespace ros 00375 { 00376 namespace service_traits 00377 { 00378 template<> 00379 struct MD5Sum<gazebo_msgs::ApplyJointEffort> { 00380 static const char* value() 00381 { 00382 return "c0039811b8cc919490b3cff748cdf46b"; 00383 } 00384 00385 static const char* value(const gazebo_msgs::ApplyJointEffort&) { return value(); } 00386 }; 00387 00388 template<> 00389 struct DataType<gazebo_msgs::ApplyJointEffort> { 00390 static const char* value() 00391 { 00392 return "gazebo_msgs/ApplyJointEffort"; 00393 } 00394 00395 static const char* value(const gazebo_msgs::ApplyJointEffort&) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct MD5Sum<gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "c0039811b8cc919490b3cff748cdf46b"; 00403 } 00404 00405 static const char* value(const gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> 00409 struct DataType<gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> > { 00410 static const char* value() 00411 { 00412 return "gazebo_msgs/ApplyJointEffort"; 00413 } 00414 00415 static const char* value(const gazebo_msgs::ApplyJointEffortRequest_<ContainerAllocator> &) { return value(); } 00416 }; 00417 00418 template<class ContainerAllocator> 00419 struct MD5Sum<gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > { 00420 static const char* value() 00421 { 00422 return "c0039811b8cc919490b3cff748cdf46b"; 00423 } 00424 00425 static const char* value(const gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> &) { return value(); } 00426 }; 00427 00428 template<class ContainerAllocator> 00429 struct DataType<gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> > { 00430 static const char* value() 00431 { 00432 return "gazebo_msgs/ApplyJointEffort"; 00433 } 00434 00435 static const char* value(const gazebo_msgs::ApplyJointEffortResponse_<ContainerAllocator> &) { return value(); } 00436 }; 00437 00438 } // namespace service_traits 00439 } // namespace ros 00440 00441 #endif // GAZEBO_MSGS_SERVICE_APPLYJOINTEFFORT_H 00442