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