$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simple_arms/doc_stacks/2013-03-02_13-33-24.490382/simple_arms/simple_arm_server/srv/GetTrajectoryValidity.srv */ 00002 #ifndef SIMPLE_ARM_SERVER_SERVICE_GETTRAJECTORYVALIDITY_H 00003 #define SIMPLE_ARM_SERVER_SERVICE_GETTRAJECTORYVALIDITY_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 #include "std_msgs/Header.h" 00020 #include "simple_arm_server/ArmAction.h" 00021 00022 00023 00024 namespace simple_arm_server 00025 { 00026 template <class ContainerAllocator> 00027 struct GetTrajectoryValidityRequest_ { 00028 typedef GetTrajectoryValidityRequest_<ContainerAllocator> Type; 00029 00030 GetTrajectoryValidityRequest_() 00031 : header() 00032 , motions() 00033 { 00034 } 00035 00036 GetTrajectoryValidityRequest_(const ContainerAllocator& _alloc) 00037 : header(_alloc) 00038 , motions(_alloc) 00039 { 00040 } 00041 00042 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00043 ::std_msgs::Header_<ContainerAllocator> header; 00044 00045 typedef std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > _motions_type; 00046 std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > motions; 00047 00048 00049 ROS_DEPRECATED uint32_t get_motions_size() const { return (uint32_t)motions.size(); } 00050 ROS_DEPRECATED void set_motions_size(uint32_t size) { motions.resize((size_t)size); } 00051 ROS_DEPRECATED void get_motions_vec(std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > & vec) const { vec = this->motions; } 00052 ROS_DEPRECATED void set_motions_vec(const std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > & vec) { this->motions = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "simple_arm_server/GetTrajectoryValidityRequest"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "ac68653317d50968c1043cdf98e3aea9"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getServerMD5Sum_() { return "12941ae14efdf67a2accd5922da026b4"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "std_msgs/Header header\n\ 00076 ArmAction[] motions\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: std_msgs/Header\n\ 00080 # Standard metadata for higher-level stamped data types.\n\ 00081 # This is generally used to communicate timestamped data \n\ 00082 # in a particular coordinate frame.\n\ 00083 # \n\ 00084 # sequence ID: consecutively increasing ID \n\ 00085 uint32 seq\n\ 00086 #Two-integer timestamp that is expressed as:\n\ 00087 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00088 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00089 # time-handling sugar is provided by the client library\n\ 00090 time stamp\n\ 00091 #Frame this data is associated with\n\ 00092 # 0: no frame\n\ 00093 # 1: global frame\n\ 00094 string frame_id\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: simple_arm_server/ArmAction\n\ 00098 #\n\ 00099 # Move arm or adjust gripper\n\ 00100 #\n\ 00101 \n\ 00102 byte MOVE_ARM=0\n\ 00103 byte MOVE_GRIPPER=1\n\ 00104 \n\ 00105 byte type # move the arm or the gripper?\n\ 00106 \n\ 00107 geometry_msgs/Pose goal # goal for arm\n\ 00108 float64 command # width to open gripper\n\ 00109 \n\ 00110 duration move_time\n\ 00111 \n\ 00112 ================================================================================\n\ 00113 MSG: geometry_msgs/Pose\n\ 00114 # A representation of pose in free space, composed of postion and orientation. \n\ 00115 Point position\n\ 00116 Quaternion orientation\n\ 00117 \n\ 00118 ================================================================================\n\ 00119 MSG: geometry_msgs/Point\n\ 00120 # This contains the position of a point in free space\n\ 00121 float64 x\n\ 00122 float64 y\n\ 00123 float64 z\n\ 00124 \n\ 00125 ================================================================================\n\ 00126 MSG: geometry_msgs/Quaternion\n\ 00127 # This represents an orientation in free space in quaternion form.\n\ 00128 \n\ 00129 float64 x\n\ 00130 float64 y\n\ 00131 float64 z\n\ 00132 float64 w\n\ 00133 \n\ 00134 "; } 00135 public: 00136 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00137 00138 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00139 00140 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00141 { 00142 ros::serialization::OStream stream(write_ptr, 1000000000); 00143 ros::serialization::serialize(stream, header); 00144 ros::serialization::serialize(stream, motions); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00149 { 00150 ros::serialization::IStream stream(read_ptr, 1000000000); 00151 ros::serialization::deserialize(stream, header); 00152 ros::serialization::deserialize(stream, motions); 00153 return stream.getData(); 00154 } 00155 00156 ROS_DEPRECATED virtual uint32_t serializationLength() const 00157 { 00158 uint32_t size = 0; 00159 size += ros::serialization::serializationLength(header); 00160 size += ros::serialization::serializationLength(motions); 00161 return size; 00162 } 00163 00164 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > Ptr; 00165 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> const> ConstPtr; 00166 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00167 }; // struct GetTrajectoryValidityRequest 00168 typedef ::simple_arm_server::GetTrajectoryValidityRequest_<std::allocator<void> > GetTrajectoryValidityRequest; 00169 00170 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityRequest> GetTrajectoryValidityRequestPtr; 00171 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityRequest const> GetTrajectoryValidityRequestConstPtr; 00172 00173 00174 template <class ContainerAllocator> 00175 struct GetTrajectoryValidityResponse_ { 00176 typedef GetTrajectoryValidityResponse_<ContainerAllocator> Type; 00177 00178 GetTrajectoryValidityResponse_() 00179 : success(false) 00180 { 00181 } 00182 00183 GetTrajectoryValidityResponse_(const ContainerAllocator& _alloc) 00184 : success(false) 00185 { 00186 } 00187 00188 typedef uint8_t _success_type; 00189 uint8_t success; 00190 00191 00192 private: 00193 static const char* __s_getDataType_() { return "simple_arm_server/GetTrajectoryValidityResponse"; } 00194 public: 00195 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00196 00197 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00198 00199 private: 00200 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; } 00201 public: 00202 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00203 00204 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00205 00206 private: 00207 static const char* __s_getServerMD5Sum_() { return "12941ae14efdf67a2accd5922da026b4"; } 00208 public: 00209 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00210 00211 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00212 00213 private: 00214 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00215 \n\ 00216 \n\ 00217 "; } 00218 public: 00219 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00220 00221 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00222 00223 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00224 { 00225 ros::serialization::OStream stream(write_ptr, 1000000000); 00226 ros::serialization::serialize(stream, success); 00227 return stream.getData(); 00228 } 00229 00230 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00231 { 00232 ros::serialization::IStream stream(read_ptr, 1000000000); 00233 ros::serialization::deserialize(stream, success); 00234 return stream.getData(); 00235 } 00236 00237 ROS_DEPRECATED virtual uint32_t serializationLength() const 00238 { 00239 uint32_t size = 0; 00240 size += ros::serialization::serializationLength(success); 00241 return size; 00242 } 00243 00244 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > Ptr; 00245 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> const> ConstPtr; 00246 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00247 }; // struct GetTrajectoryValidityResponse 00248 typedef ::simple_arm_server::GetTrajectoryValidityResponse_<std::allocator<void> > GetTrajectoryValidityResponse; 00249 00250 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityResponse> GetTrajectoryValidityResponsePtr; 00251 typedef boost::shared_ptr< ::simple_arm_server::GetTrajectoryValidityResponse const> GetTrajectoryValidityResponseConstPtr; 00252 00253 struct GetTrajectoryValidity 00254 { 00255 00256 typedef GetTrajectoryValidityRequest Request; 00257 typedef GetTrajectoryValidityResponse Response; 00258 Request request; 00259 Response response; 00260 00261 typedef Request RequestType; 00262 typedef Response ResponseType; 00263 }; // struct GetTrajectoryValidity 00264 } // namespace simple_arm_server 00265 00266 namespace ros 00267 { 00268 namespace message_traits 00269 { 00270 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> const> : public TrueType {}; 00272 template<class ContainerAllocator> 00273 struct MD5Sum< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "ac68653317d50968c1043cdf98e3aea9"; 00277 } 00278 00279 static const char* value(const ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> &) { return value(); } 00280 static const uint64_t static_value1 = 0xac68653317d50968ULL; 00281 static const uint64_t static_value2 = 0xc1043cdf98e3aea9ULL; 00282 }; 00283 00284 template<class ContainerAllocator> 00285 struct DataType< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "simple_arm_server/GetTrajectoryValidityRequest"; 00289 } 00290 00291 static const char* value(const ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> &) { return value(); } 00292 }; 00293 00294 template<class ContainerAllocator> 00295 struct Definition< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > { 00296 static const char* value() 00297 { 00298 return "std_msgs/Header header\n\ 00299 ArmAction[] motions\n\ 00300 \n\ 00301 ================================================================================\n\ 00302 MSG: std_msgs/Header\n\ 00303 # Standard metadata for higher-level stamped data types.\n\ 00304 # This is generally used to communicate timestamped data \n\ 00305 # in a particular coordinate frame.\n\ 00306 # \n\ 00307 # sequence ID: consecutively increasing ID \n\ 00308 uint32 seq\n\ 00309 #Two-integer timestamp that is expressed as:\n\ 00310 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00311 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00312 # time-handling sugar is provided by the client library\n\ 00313 time stamp\n\ 00314 #Frame this data is associated with\n\ 00315 # 0: no frame\n\ 00316 # 1: global frame\n\ 00317 string frame_id\n\ 00318 \n\ 00319 ================================================================================\n\ 00320 MSG: simple_arm_server/ArmAction\n\ 00321 #\n\ 00322 # Move arm or adjust gripper\n\ 00323 #\n\ 00324 \n\ 00325 byte MOVE_ARM=0\n\ 00326 byte MOVE_GRIPPER=1\n\ 00327 \n\ 00328 byte type # move the arm or the gripper?\n\ 00329 \n\ 00330 geometry_msgs/Pose goal # goal for arm\n\ 00331 float64 command # width to open gripper\n\ 00332 \n\ 00333 duration move_time\n\ 00334 \n\ 00335 ================================================================================\n\ 00336 MSG: geometry_msgs/Pose\n\ 00337 # A representation of pose in free space, composed of postion and orientation. \n\ 00338 Point position\n\ 00339 Quaternion orientation\n\ 00340 \n\ 00341 ================================================================================\n\ 00342 MSG: geometry_msgs/Point\n\ 00343 # This contains the position of a point in free space\n\ 00344 float64 x\n\ 00345 float64 y\n\ 00346 float64 z\n\ 00347 \n\ 00348 ================================================================================\n\ 00349 MSG: geometry_msgs/Quaternion\n\ 00350 # This represents an orientation in free space in quaternion form.\n\ 00351 \n\ 00352 float64 x\n\ 00353 float64 y\n\ 00354 float64 z\n\ 00355 float64 w\n\ 00356 \n\ 00357 "; 00358 } 00359 00360 static const char* value(const ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> &) { return value(); } 00361 }; 00362 00363 } // namespace message_traits 00364 } // namespace ros 00365 00366 00367 namespace ros 00368 { 00369 namespace message_traits 00370 { 00371 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > : public TrueType {}; 00372 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> const> : public TrueType {}; 00373 template<class ContainerAllocator> 00374 struct MD5Sum< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > { 00375 static const char* value() 00376 { 00377 return "358e233cde0c8a8bcfea4ce193f8fc15"; 00378 } 00379 00380 static const char* value(const ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> &) { return value(); } 00381 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL; 00382 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL; 00383 }; 00384 00385 template<class ContainerAllocator> 00386 struct DataType< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > { 00387 static const char* value() 00388 { 00389 return "simple_arm_server/GetTrajectoryValidityResponse"; 00390 } 00391 00392 static const char* value(const ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> &) { return value(); } 00393 }; 00394 00395 template<class ContainerAllocator> 00396 struct Definition< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > { 00397 static const char* value() 00398 { 00399 return "bool success\n\ 00400 \n\ 00401 \n\ 00402 "; 00403 } 00404 00405 static const char* value(const ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> struct IsFixedSize< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > : public TrueType {}; 00409 } // namespace message_traits 00410 } // namespace ros 00411 00412 namespace ros 00413 { 00414 namespace serialization 00415 { 00416 00417 template<class ContainerAllocator> struct Serializer< ::simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > 00418 { 00419 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00420 { 00421 stream.next(m.header); 00422 stream.next(m.motions); 00423 } 00424 00425 ROS_DECLARE_ALLINONE_SERIALIZER; 00426 }; // struct GetTrajectoryValidityRequest_ 00427 } // namespace serialization 00428 } // namespace ros 00429 00430 00431 namespace ros 00432 { 00433 namespace serialization 00434 { 00435 00436 template<class ContainerAllocator> struct Serializer< ::simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > 00437 { 00438 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00439 { 00440 stream.next(m.success); 00441 } 00442 00443 ROS_DECLARE_ALLINONE_SERIALIZER; 00444 }; // struct GetTrajectoryValidityResponse_ 00445 } // namespace serialization 00446 } // namespace ros 00447 00448 namespace ros 00449 { 00450 namespace service_traits 00451 { 00452 template<> 00453 struct MD5Sum<simple_arm_server::GetTrajectoryValidity> { 00454 static const char* value() 00455 { 00456 return "12941ae14efdf67a2accd5922da026b4"; 00457 } 00458 00459 static const char* value(const simple_arm_server::GetTrajectoryValidity&) { return value(); } 00460 }; 00461 00462 template<> 00463 struct DataType<simple_arm_server::GetTrajectoryValidity> { 00464 static const char* value() 00465 { 00466 return "simple_arm_server/GetTrajectoryValidity"; 00467 } 00468 00469 static const char* value(const simple_arm_server::GetTrajectoryValidity&) { return value(); } 00470 }; 00471 00472 template<class ContainerAllocator> 00473 struct MD5Sum<simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > { 00474 static const char* value() 00475 { 00476 return "12941ae14efdf67a2accd5922da026b4"; 00477 } 00478 00479 static const char* value(const simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> &) { return value(); } 00480 }; 00481 00482 template<class ContainerAllocator> 00483 struct DataType<simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> > { 00484 static const char* value() 00485 { 00486 return "simple_arm_server/GetTrajectoryValidity"; 00487 } 00488 00489 static const char* value(const simple_arm_server::GetTrajectoryValidityRequest_<ContainerAllocator> &) { return value(); } 00490 }; 00491 00492 template<class ContainerAllocator> 00493 struct MD5Sum<simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > { 00494 static const char* value() 00495 { 00496 return "12941ae14efdf67a2accd5922da026b4"; 00497 } 00498 00499 static const char* value(const simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> &) { return value(); } 00500 }; 00501 00502 template<class ContainerAllocator> 00503 struct DataType<simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> > { 00504 static const char* value() 00505 { 00506 return "simple_arm_server/GetTrajectoryValidity"; 00507 } 00508 00509 static const char* value(const simple_arm_server::GetTrajectoryValidityResponse_<ContainerAllocator> &) { return value(); } 00510 }; 00511 00512 } // namespace service_traits 00513 } // namespace ros 00514 00515 #endif // SIMPLE_ARM_SERVER_SERVICE_GETTRAJECTORYVALIDITY_H 00516