StateMachineCmd.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-mtconnect/doc_stacks/2014-01-06_11-26-16.778192/mtconnect/mtconnect_example/mtconnect_example_msgs/srv/StateMachineCmd.srv */
00002 #ifndef MTCONNECT_EXAMPLE_MSGS_SERVICE_STATEMACHINECMD_H
00003 #define MTCONNECT_EXAMPLE_MSGS_SERVICE_STATEMACHINECMD_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 
00022 namespace mtconnect_example_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct StateMachineCmdRequest_ {
00026   typedef StateMachineCmdRequest_<ContainerAllocator> Type;
00027 
00028   StateMachineCmdRequest_()
00029   : command(0)
00030   {
00031   }
00032 
00033   StateMachineCmdRequest_(const ContainerAllocator& _alloc)
00034   : command(0)
00035   {
00036   }
00037 
00038   typedef int8_t _command_type;
00039   int8_t command;
00040 
00041   enum { FAULT_RESET = 1 };
00042   enum { START = 2 };
00043   enum { STOP = 3 };
00044 
00045   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct StateMachineCmdRequest
00049 typedef  ::mtconnect_example_msgs::StateMachineCmdRequest_<std::allocator<void> > StateMachineCmdRequest;
00050 
00051 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdRequest> StateMachineCmdRequestPtr;
00052 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdRequest const> StateMachineCmdRequestConstPtr;
00053 
00054 
00055 template <class ContainerAllocator>
00056 struct StateMachineCmdResponse_ {
00057   typedef StateMachineCmdResponse_<ContainerAllocator> Type;
00058 
00059   StateMachineCmdResponse_()
00060   : accepted(false)
00061   {
00062   }
00063 
00064   StateMachineCmdResponse_(const ContainerAllocator& _alloc)
00065   : accepted(false)
00066   {
00067   }
00068 
00069   typedef uint8_t _accepted_type;
00070   uint8_t accepted;
00071 
00072 
00073   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct StateMachineCmdResponse
00077 typedef  ::mtconnect_example_msgs::StateMachineCmdResponse_<std::allocator<void> > StateMachineCmdResponse;
00078 
00079 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdResponse> StateMachineCmdResponsePtr;
00080 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineCmdResponse const> StateMachineCmdResponseConstPtr;
00081 
00082 struct StateMachineCmd
00083 {
00084 
00085 typedef StateMachineCmdRequest Request;
00086 typedef StateMachineCmdResponse Response;
00087 Request request;
00088 Response response;
00089 
00090 typedef Request RequestType;
00091 typedef Response ResponseType;
00092 }; // struct StateMachineCmd
00093 } // namespace mtconnect_example_msgs
00094 
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > : public TrueType {};
00100 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator>  const> : public TrueType {};
00101 template<class ContainerAllocator>
00102 struct MD5Sum< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "2d868471d0fdc4ce08a50620b142cbc3";
00106   }
00107 
00108   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> &) { return value(); } 
00109   static const uint64_t static_value1 = 0x2d868471d0fdc4ceULL;
00110   static const uint64_t static_value2 = 0x08a50620b142cbc3ULL;
00111 };
00112 
00113 template<class ContainerAllocator>
00114 struct DataType< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "mtconnect_example_msgs/StateMachineCmdRequest";
00118   }
00119 
00120   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> &) { return value(); } 
00121 };
00122 
00123 template<class ContainerAllocator>
00124 struct Definition< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > {
00125   static const char* value() 
00126   {
00127     return "\n\
00128 int8 FAULT_RESET=1\n\
00129 int8 START=2\n\
00130 int8 STOP =3\n\
00131 int8 command\n\
00132 \n\
00133 ";
00134   }
00135 
00136   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> &) { return value(); } 
00137 };
00138 
00139 template<class ContainerAllocator> struct IsFixedSize< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > : public TrueType {};
00140 } // namespace message_traits
00141 } // namespace ros
00142 
00143 
00144 namespace ros
00145 {
00146 namespace message_traits
00147 {
00148 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator>  const> : public TrueType {};
00150 template<class ContainerAllocator>
00151 struct MD5Sum< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > {
00152   static const char* value() 
00153   {
00154     return "1ea39b897cc8620c46aaa14cb60920cd";
00155   }
00156 
00157   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> &) { return value(); } 
00158   static const uint64_t static_value1 = 0x1ea39b897cc8620cULL;
00159   static const uint64_t static_value2 = 0x46aaa14cb60920cdULL;
00160 };
00161 
00162 template<class ContainerAllocator>
00163 struct DataType< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > {
00164   static const char* value() 
00165   {
00166     return "mtconnect_example_msgs/StateMachineCmdResponse";
00167   }
00168 
00169   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> &) { return value(); } 
00170 };
00171 
00172 template<class ContainerAllocator>
00173 struct Definition< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > {
00174   static const char* value() 
00175   {
00176     return "\n\
00177 bool accepted\n\
00178 \n\
00179 ";
00180   }
00181 
00182   static const char* value(const  ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> &) { return value(); } 
00183 };
00184 
00185 template<class ContainerAllocator> struct IsFixedSize< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > : public TrueType {};
00186 } // namespace message_traits
00187 } // namespace ros
00188 
00189 namespace ros
00190 {
00191 namespace serialization
00192 {
00193 
00194 template<class ContainerAllocator> struct Serializer< ::mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> >
00195 {
00196   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00197   {
00198     stream.next(m.command);
00199   }
00200 
00201   ROS_DECLARE_ALLINONE_SERIALIZER;
00202 }; // struct StateMachineCmdRequest_
00203 } // namespace serialization
00204 } // namespace ros
00205 
00206 
00207 namespace ros
00208 {
00209 namespace serialization
00210 {
00211 
00212 template<class ContainerAllocator> struct Serializer< ::mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> >
00213 {
00214   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00215   {
00216     stream.next(m.accepted);
00217   }
00218 
00219   ROS_DECLARE_ALLINONE_SERIALIZER;
00220 }; // struct StateMachineCmdResponse_
00221 } // namespace serialization
00222 } // namespace ros
00223 
00224 namespace ros
00225 {
00226 namespace service_traits
00227 {
00228 template<>
00229 struct MD5Sum<mtconnect_example_msgs::StateMachineCmd> {
00230   static const char* value() 
00231   {
00232     return "71ab87155d9ffa50f42e7dafb74aeca4";
00233   }
00234 
00235   static const char* value(const mtconnect_example_msgs::StateMachineCmd&) { return value(); } 
00236 };
00237 
00238 template<>
00239 struct DataType<mtconnect_example_msgs::StateMachineCmd> {
00240   static const char* value() 
00241   {
00242     return "mtconnect_example_msgs/StateMachineCmd";
00243   }
00244 
00245   static const char* value(const mtconnect_example_msgs::StateMachineCmd&) { return value(); } 
00246 };
00247 
00248 template<class ContainerAllocator>
00249 struct MD5Sum<mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > {
00250   static const char* value() 
00251   {
00252     return "71ab87155d9ffa50f42e7dafb74aeca4";
00253   }
00254 
00255   static const char* value(const mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> &) { return value(); } 
00256 };
00257 
00258 template<class ContainerAllocator>
00259 struct DataType<mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> > {
00260   static const char* value() 
00261   {
00262     return "mtconnect_example_msgs/StateMachineCmd";
00263   }
00264 
00265   static const char* value(const mtconnect_example_msgs::StateMachineCmdRequest_<ContainerAllocator> &) { return value(); } 
00266 };
00267 
00268 template<class ContainerAllocator>
00269 struct MD5Sum<mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > {
00270   static const char* value() 
00271   {
00272     return "71ab87155d9ffa50f42e7dafb74aeca4";
00273   }
00274 
00275   static const char* value(const mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> &) { return value(); } 
00276 };
00277 
00278 template<class ContainerAllocator>
00279 struct DataType<mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> > {
00280   static const char* value() 
00281   {
00282     return "mtconnect_example_msgs/StateMachineCmd";
00283   }
00284 
00285   static const char* value(const mtconnect_example_msgs::StateMachineCmdResponse_<ContainerAllocator> &) { return value(); } 
00286 };
00287 
00288 } // namespace service_traits
00289 } // namespace ros
00290 
00291 #endif // MTCONNECT_EXAMPLE_MSGS_SERVICE_STATEMACHINECMD_H
00292 


mtconnect_example_msgs
Author(s): Shaun M. Edwards
autogenerated on Mon Jan 6 2014 11:29:52