$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_utilities/srv/getJointState.srv */ 00002 #ifndef SR_UTILITIES_SERVICE_GETJOINTSTATE_H 00003 #define SR_UTILITIES_SERVICE_GETJOINTSTATE_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 #include "sensor_msgs/JointState.h" 00022 00023 namespace sr_utilities 00024 { 00025 template <class ContainerAllocator> 00026 struct getJointStateRequest_ { 00027 typedef getJointStateRequest_<ContainerAllocator> Type; 00028 00029 getJointStateRequest_() 00030 { 00031 } 00032 00033 getJointStateRequest_(const ContainerAllocator& _alloc) 00034 { 00035 } 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "sr_utilities/getJointStateRequest"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getServerMD5Sum_() { return "9ca061465ef0ed08771ed240c43789f5"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "\n\ 00061 \n\ 00062 "; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00067 00068 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00069 { 00070 ros::serialization::OStream stream(write_ptr, 1000000000); 00071 return stream.getData(); 00072 } 00073 00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00075 { 00076 ros::serialization::IStream stream(read_ptr, 1000000000); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint32_t serializationLength() const 00081 { 00082 uint32_t size = 0; 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::sr_utilities::getJointStateRequest_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct getJointStateRequest 00090 typedef ::sr_utilities::getJointStateRequest_<std::allocator<void> > getJointStateRequest; 00091 00092 typedef boost::shared_ptr< ::sr_utilities::getJointStateRequest> getJointStateRequestPtr; 00093 typedef boost::shared_ptr< ::sr_utilities::getJointStateRequest const> getJointStateRequestConstPtr; 00094 00095 00096 template <class ContainerAllocator> 00097 struct getJointStateResponse_ { 00098 typedef getJointStateResponse_<ContainerAllocator> Type; 00099 00100 getJointStateResponse_() 00101 : joint_state() 00102 { 00103 } 00104 00105 getJointStateResponse_(const ContainerAllocator& _alloc) 00106 : joint_state(_alloc) 00107 { 00108 } 00109 00110 typedef ::sensor_msgs::JointState_<ContainerAllocator> _joint_state_type; 00111 ::sensor_msgs::JointState_<ContainerAllocator> joint_state; 00112 00113 00114 private: 00115 static const char* __s_getDataType_() { return "sr_utilities/getJointStateResponse"; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00118 00119 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00120 00121 private: 00122 static const char* __s_getMD5Sum_() { return "9ca061465ef0ed08771ed240c43789f5"; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00125 00126 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00127 00128 private: 00129 static const char* __s_getServerMD5Sum_() { return "9ca061465ef0ed08771ed240c43789f5"; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00132 00133 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00134 00135 private: 00136 static const char* __s_getMessageDefinition_() { return "sensor_msgs/JointState joint_state\n\ 00137 \n\ 00138 \n\ 00139 ================================================================================\n\ 00140 MSG: sensor_msgs/JointState\n\ 00141 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00142 #\n\ 00143 # The state of each joint (revolute or prismatic) is defined by:\n\ 00144 # * the position of the joint (rad or m),\n\ 00145 # * the velocity of the joint (rad/s or m/s) and \n\ 00146 # * the effort that is applied in the joint (Nm or N).\n\ 00147 #\n\ 00148 # Each joint is uniquely identified by its name\n\ 00149 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00150 # in one message have to be recorded at the same time.\n\ 00151 #\n\ 00152 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00153 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00154 # effort associated with them, you can leave the effort array empty. \n\ 00155 #\n\ 00156 # All arrays in this message should have the same size, or be empty.\n\ 00157 # This is the only way to uniquely associate the joint name with the correct\n\ 00158 # states.\n\ 00159 \n\ 00160 \n\ 00161 Header header\n\ 00162 \n\ 00163 string[] name\n\ 00164 float64[] position\n\ 00165 float64[] velocity\n\ 00166 float64[] effort\n\ 00167 \n\ 00168 ================================================================================\n\ 00169 MSG: std_msgs/Header\n\ 00170 # Standard metadata for higher-level stamped data types.\n\ 00171 # This is generally used to communicate timestamped data \n\ 00172 # in a particular coordinate frame.\n\ 00173 # \n\ 00174 # sequence ID: consecutively increasing ID \n\ 00175 uint32 seq\n\ 00176 #Two-integer timestamp that is expressed as:\n\ 00177 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00178 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00179 # time-handling sugar is provided by the client library\n\ 00180 time stamp\n\ 00181 #Frame this data is associated with\n\ 00182 # 0: no frame\n\ 00183 # 1: global frame\n\ 00184 string frame_id\n\ 00185 \n\ 00186 "; } 00187 public: 00188 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00189 00190 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00191 00192 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00193 { 00194 ros::serialization::OStream stream(write_ptr, 1000000000); 00195 ros::serialization::serialize(stream, joint_state); 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, joint_state); 00203 return stream.getData(); 00204 } 00205 00206 ROS_DEPRECATED virtual uint32_t serializationLength() const 00207 { 00208 uint32_t size = 0; 00209 size += ros::serialization::serializationLength(joint_state); 00210 return size; 00211 } 00212 00213 typedef boost::shared_ptr< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > Ptr; 00214 typedef boost::shared_ptr< ::sr_utilities::getJointStateResponse_<ContainerAllocator> const> ConstPtr; 00215 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00216 }; // struct getJointStateResponse 00217 typedef ::sr_utilities::getJointStateResponse_<std::allocator<void> > getJointStateResponse; 00218 00219 typedef boost::shared_ptr< ::sr_utilities::getJointStateResponse> getJointStateResponsePtr; 00220 typedef boost::shared_ptr< ::sr_utilities::getJointStateResponse const> getJointStateResponseConstPtr; 00221 00222 struct getJointState 00223 { 00224 00225 typedef getJointStateRequest Request; 00226 typedef getJointStateResponse Response; 00227 Request request; 00228 Response response; 00229 00230 typedef Request RequestType; 00231 typedef Response ResponseType; 00232 }; // struct getJointState 00233 } // namespace sr_utilities 00234 00235 namespace ros 00236 { 00237 namespace message_traits 00238 { 00239 template<class ContainerAllocator> struct IsMessage< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > : public TrueType {}; 00240 template<class ContainerAllocator> struct IsMessage< ::sr_utilities::getJointStateRequest_<ContainerAllocator> const> : public TrueType {}; 00241 template<class ContainerAllocator> 00242 struct MD5Sum< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "d41d8cd98f00b204e9800998ecf8427e"; 00246 } 00247 00248 static const char* value(const ::sr_utilities::getJointStateRequest_<ContainerAllocator> &) { return value(); } 00249 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00250 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00251 }; 00252 00253 template<class ContainerAllocator> 00254 struct DataType< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > { 00255 static const char* value() 00256 { 00257 return "sr_utilities/getJointStateRequest"; 00258 } 00259 00260 static const char* value(const ::sr_utilities::getJointStateRequest_<ContainerAllocator> &) { return value(); } 00261 }; 00262 00263 template<class ContainerAllocator> 00264 struct Definition< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > { 00265 static const char* value() 00266 { 00267 return "\n\ 00268 \n\ 00269 "; 00270 } 00271 00272 static const char* value(const ::sr_utilities::getJointStateRequest_<ContainerAllocator> &) { return value(); } 00273 }; 00274 00275 template<class ContainerAllocator> struct IsFixedSize< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > : public TrueType {}; 00276 } // namespace message_traits 00277 } // namespace ros 00278 00279 00280 namespace ros 00281 { 00282 namespace message_traits 00283 { 00284 template<class ContainerAllocator> struct IsMessage< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > : public TrueType {}; 00285 template<class ContainerAllocator> struct IsMessage< ::sr_utilities::getJointStateResponse_<ContainerAllocator> const> : public TrueType {}; 00286 template<class ContainerAllocator> 00287 struct MD5Sum< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > { 00288 static const char* value() 00289 { 00290 return "9ca061465ef0ed08771ed240c43789f5"; 00291 } 00292 00293 static const char* value(const ::sr_utilities::getJointStateResponse_<ContainerAllocator> &) { return value(); } 00294 static const uint64_t static_value1 = 0x9ca061465ef0ed08ULL; 00295 static const uint64_t static_value2 = 0x771ed240c43789f5ULL; 00296 }; 00297 00298 template<class ContainerAllocator> 00299 struct DataType< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "sr_utilities/getJointStateResponse"; 00303 } 00304 00305 static const char* value(const ::sr_utilities::getJointStateResponse_<ContainerAllocator> &) { return value(); } 00306 }; 00307 00308 template<class ContainerAllocator> 00309 struct Definition< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > { 00310 static const char* value() 00311 { 00312 return "sensor_msgs/JointState joint_state\n\ 00313 \n\ 00314 \n\ 00315 ================================================================================\n\ 00316 MSG: sensor_msgs/JointState\n\ 00317 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00318 #\n\ 00319 # The state of each joint (revolute or prismatic) is defined by:\n\ 00320 # * the position of the joint (rad or m),\n\ 00321 # * the velocity of the joint (rad/s or m/s) and \n\ 00322 # * the effort that is applied in the joint (Nm or N).\n\ 00323 #\n\ 00324 # Each joint is uniquely identified by its name\n\ 00325 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00326 # in one message have to be recorded at the same time.\n\ 00327 #\n\ 00328 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00329 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00330 # effort associated with them, you can leave the effort array empty. \n\ 00331 #\n\ 00332 # All arrays in this message should have the same size, or be empty.\n\ 00333 # This is the only way to uniquely associate the joint name with the correct\n\ 00334 # states.\n\ 00335 \n\ 00336 \n\ 00337 Header header\n\ 00338 \n\ 00339 string[] name\n\ 00340 float64[] position\n\ 00341 float64[] velocity\n\ 00342 float64[] effort\n\ 00343 \n\ 00344 ================================================================================\n\ 00345 MSG: std_msgs/Header\n\ 00346 # Standard metadata for higher-level stamped data types.\n\ 00347 # This is generally used to communicate timestamped data \n\ 00348 # in a particular coordinate frame.\n\ 00349 # \n\ 00350 # sequence ID: consecutively increasing ID \n\ 00351 uint32 seq\n\ 00352 #Two-integer timestamp that is expressed as:\n\ 00353 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00354 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00355 # time-handling sugar is provided by the client library\n\ 00356 time stamp\n\ 00357 #Frame this data is associated with\n\ 00358 # 0: no frame\n\ 00359 # 1: global frame\n\ 00360 string frame_id\n\ 00361 \n\ 00362 "; 00363 } 00364 00365 static const char* value(const ::sr_utilities::getJointStateResponse_<ContainerAllocator> &) { return value(); } 00366 }; 00367 00368 } // namespace message_traits 00369 } // namespace ros 00370 00371 namespace ros 00372 { 00373 namespace serialization 00374 { 00375 00376 template<class ContainerAllocator> struct Serializer< ::sr_utilities::getJointStateRequest_<ContainerAllocator> > 00377 { 00378 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00379 { 00380 } 00381 00382 ROS_DECLARE_ALLINONE_SERIALIZER; 00383 }; // struct getJointStateRequest_ 00384 } // namespace serialization 00385 } // namespace ros 00386 00387 00388 namespace ros 00389 { 00390 namespace serialization 00391 { 00392 00393 template<class ContainerAllocator> struct Serializer< ::sr_utilities::getJointStateResponse_<ContainerAllocator> > 00394 { 00395 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00396 { 00397 stream.next(m.joint_state); 00398 } 00399 00400 ROS_DECLARE_ALLINONE_SERIALIZER; 00401 }; // struct getJointStateResponse_ 00402 } // namespace serialization 00403 } // namespace ros 00404 00405 namespace ros 00406 { 00407 namespace service_traits 00408 { 00409 template<> 00410 struct MD5Sum<sr_utilities::getJointState> { 00411 static const char* value() 00412 { 00413 return "9ca061465ef0ed08771ed240c43789f5"; 00414 } 00415 00416 static const char* value(const sr_utilities::getJointState&) { return value(); } 00417 }; 00418 00419 template<> 00420 struct DataType<sr_utilities::getJointState> { 00421 static const char* value() 00422 { 00423 return "sr_utilities/getJointState"; 00424 } 00425 00426 static const char* value(const sr_utilities::getJointState&) { return value(); } 00427 }; 00428 00429 template<class ContainerAllocator> 00430 struct MD5Sum<sr_utilities::getJointStateRequest_<ContainerAllocator> > { 00431 static const char* value() 00432 { 00433 return "9ca061465ef0ed08771ed240c43789f5"; 00434 } 00435 00436 static const char* value(const sr_utilities::getJointStateRequest_<ContainerAllocator> &) { return value(); } 00437 }; 00438 00439 template<class ContainerAllocator> 00440 struct DataType<sr_utilities::getJointStateRequest_<ContainerAllocator> > { 00441 static const char* value() 00442 { 00443 return "sr_utilities/getJointState"; 00444 } 00445 00446 static const char* value(const sr_utilities::getJointStateRequest_<ContainerAllocator> &) { return value(); } 00447 }; 00448 00449 template<class ContainerAllocator> 00450 struct MD5Sum<sr_utilities::getJointStateResponse_<ContainerAllocator> > { 00451 static const char* value() 00452 { 00453 return "9ca061465ef0ed08771ed240c43789f5"; 00454 } 00455 00456 static const char* value(const sr_utilities::getJointStateResponse_<ContainerAllocator> &) { return value(); } 00457 }; 00458 00459 template<class ContainerAllocator> 00460 struct DataType<sr_utilities::getJointStateResponse_<ContainerAllocator> > { 00461 static const char* value() 00462 { 00463 return "sr_utilities/getJointState"; 00464 } 00465 00466 static const char* value(const sr_utilities::getJointStateResponse_<ContainerAllocator> &) { return value(); } 00467 }; 00468 00469 } // namespace service_traits 00470 } // namespace ros 00471 00472 #endif // SR_UTILITIES_SERVICE_GETJOINTSTATE_H 00473