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