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