SwitchController.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_mechanism/doc_stacks/2012-11-17_19-51-59.699761/pr2_mechanism/pr2_mechanism_msgs/srv/SwitchController.srv */
00002 #ifndef PR2_MECHANISM_MSGS_SERVICE_SWITCHCONTROLLER_H
00003 #define PR2_MECHANISM_MSGS_SERVICE_SWITCHCONTROLLER_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 pr2_mechanism_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct SwitchControllerRequest_ {
00026   typedef SwitchControllerRequest_<ContainerAllocator> Type;
00027 
00028   SwitchControllerRequest_()
00029   : start_controllers()
00030   , stop_controllers()
00031   , strictness(0)
00032   {
00033   }
00034 
00035   SwitchControllerRequest_(const ContainerAllocator& _alloc)
00036   : start_controllers(_alloc)
00037   , stop_controllers(_alloc)
00038   , strictness(0)
00039   {
00040   }
00041 
00042   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _start_controllers_type;
00043   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  start_controllers;
00044 
00045   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _stop_controllers_type;
00046   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  stop_controllers;
00047 
00048   typedef int32_t _strictness_type;
00049   int32_t strictness;
00050 
00051   enum { BEST_EFFORT = 1 };
00052   enum { STRICT = 2 };
00053 
00054   typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > Ptr;
00055   typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator>  const> ConstPtr;
00056   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 }; // struct SwitchControllerRequest
00058 typedef  ::pr2_mechanism_msgs::SwitchControllerRequest_<std::allocator<void> > SwitchControllerRequest;
00059 
00060 typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerRequest> SwitchControllerRequestPtr;
00061 typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerRequest const> SwitchControllerRequestConstPtr;
00062 
00063 
00064 template <class ContainerAllocator>
00065 struct SwitchControllerResponse_ {
00066   typedef SwitchControllerResponse_<ContainerAllocator> Type;
00067 
00068   SwitchControllerResponse_()
00069   : ok(false)
00070   {
00071   }
00072 
00073   SwitchControllerResponse_(const ContainerAllocator& _alloc)
00074   : ok(false)
00075   {
00076   }
00077 
00078   typedef uint8_t _ok_type;
00079   uint8_t ok;
00080 
00081 
00082   typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > Ptr;
00083   typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator>  const> ConstPtr;
00084   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00085 }; // struct SwitchControllerResponse
00086 typedef  ::pr2_mechanism_msgs::SwitchControllerResponse_<std::allocator<void> > SwitchControllerResponse;
00087 
00088 typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerResponse> SwitchControllerResponsePtr;
00089 typedef boost::shared_ptr< ::pr2_mechanism_msgs::SwitchControllerResponse const> SwitchControllerResponseConstPtr;
00090 
00091 struct SwitchController
00092 {
00093 
00094 typedef SwitchControllerRequest Request;
00095 typedef SwitchControllerResponse Response;
00096 Request request;
00097 Response response;
00098 
00099 typedef Request RequestType;
00100 typedef Response ResponseType;
00101 }; // struct SwitchController
00102 } // namespace pr2_mechanism_msgs
00103 
00104 namespace ros
00105 {
00106 namespace message_traits
00107 {
00108 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > : public TrueType {};
00109 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator>  const> : public TrueType {};
00110 template<class ContainerAllocator>
00111 struct MD5Sum< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "434da54adc434a5af5743ed711fd6ba1";
00115   }
00116 
00117   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> &) { return value(); } 
00118   static const uint64_t static_value1 = 0x434da54adc434a5aULL;
00119   static const uint64_t static_value2 = 0xf5743ed711fd6ba1ULL;
00120 };
00121 
00122 template<class ContainerAllocator>
00123 struct DataType< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > {
00124   static const char* value() 
00125   {
00126     return "pr2_mechanism_msgs/SwitchControllerRequest";
00127   }
00128 
00129   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> &) { return value(); } 
00130 };
00131 
00132 template<class ContainerAllocator>
00133 struct Definition< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > {
00134   static const char* value() 
00135   {
00136     return "\n\
00137 \n\
00138 \n\
00139 \n\
00140 \n\
00141 \n\
00142 \n\
00143 \n\
00144 \n\
00145 \n\
00146 \n\
00147 \n\
00148 \n\
00149 \n\
00150 \n\
00151 \n\
00152 \n\
00153 \n\
00154 string[] start_controllers\n\
00155 string[] stop_controllers\n\
00156 int32 strictness\n\
00157 int32 BEST_EFFORT=1\n\
00158 int32 STRICT=2\n\
00159 \n\
00160 ";
00161   }
00162 
00163   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> &) { return value(); } 
00164 };
00165 
00166 } // namespace message_traits
00167 } // namespace ros
00168 
00169 
00170 namespace ros
00171 {
00172 namespace message_traits
00173 {
00174 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > : public TrueType {};
00175 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator>  const> : public TrueType {};
00176 template<class ContainerAllocator>
00177 struct MD5Sum< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > {
00178   static const char* value() 
00179   {
00180     return "6f6da3883749771fac40d6deb24a8c02";
00181   }
00182 
00183   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> &) { return value(); } 
00184   static const uint64_t static_value1 = 0x6f6da3883749771fULL;
00185   static const uint64_t static_value2 = 0xac40d6deb24a8c02ULL;
00186 };
00187 
00188 template<class ContainerAllocator>
00189 struct DataType< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > {
00190   static const char* value() 
00191   {
00192     return "pr2_mechanism_msgs/SwitchControllerResponse";
00193   }
00194 
00195   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> &) { return value(); } 
00196 };
00197 
00198 template<class ContainerAllocator>
00199 struct Definition< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > {
00200   static const char* value() 
00201   {
00202     return "bool ok\n\
00203 \n\
00204 \n\
00205 \n\
00206 \n\
00207 \n\
00208 ";
00209   }
00210 
00211   static const char* value(const  ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> &) { return value(); } 
00212 };
00213 
00214 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > : public TrueType {};
00215 } // namespace message_traits
00216 } // namespace ros
00217 
00218 namespace ros
00219 {
00220 namespace serialization
00221 {
00222 
00223 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> >
00224 {
00225   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00226   {
00227     stream.next(m.start_controllers);
00228     stream.next(m.stop_controllers);
00229     stream.next(m.strictness);
00230   }
00231 
00232   ROS_DECLARE_ALLINONE_SERIALIZER;
00233 }; // struct SwitchControllerRequest_
00234 } // namespace serialization
00235 } // namespace ros
00236 
00237 
00238 namespace ros
00239 {
00240 namespace serialization
00241 {
00242 
00243 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> >
00244 {
00245   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00246   {
00247     stream.next(m.ok);
00248   }
00249 
00250   ROS_DECLARE_ALLINONE_SERIALIZER;
00251 }; // struct SwitchControllerResponse_
00252 } // namespace serialization
00253 } // namespace ros
00254 
00255 namespace ros
00256 {
00257 namespace service_traits
00258 {
00259 template<>
00260 struct MD5Sum<pr2_mechanism_msgs::SwitchController> {
00261   static const char* value() 
00262   {
00263     return "5e857dedf71d6f337975e15a1e7cfdd8";
00264   }
00265 
00266   static const char* value(const pr2_mechanism_msgs::SwitchController&) { return value(); } 
00267 };
00268 
00269 template<>
00270 struct DataType<pr2_mechanism_msgs::SwitchController> {
00271   static const char* value() 
00272   {
00273     return "pr2_mechanism_msgs/SwitchController";
00274   }
00275 
00276   static const char* value(const pr2_mechanism_msgs::SwitchController&) { return value(); } 
00277 };
00278 
00279 template<class ContainerAllocator>
00280 struct MD5Sum<pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > {
00281   static const char* value() 
00282   {
00283     return "5e857dedf71d6f337975e15a1e7cfdd8";
00284   }
00285 
00286   static const char* value(const pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> &) { return value(); } 
00287 };
00288 
00289 template<class ContainerAllocator>
00290 struct DataType<pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> > {
00291   static const char* value() 
00292   {
00293     return "pr2_mechanism_msgs/SwitchController";
00294   }
00295 
00296   static const char* value(const pr2_mechanism_msgs::SwitchControllerRequest_<ContainerAllocator> &) { return value(); } 
00297 };
00298 
00299 template<class ContainerAllocator>
00300 struct MD5Sum<pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > {
00301   static const char* value() 
00302   {
00303     return "5e857dedf71d6f337975e15a1e7cfdd8";
00304   }
00305 
00306   static const char* value(const pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> &) { return value(); } 
00307 };
00308 
00309 template<class ContainerAllocator>
00310 struct DataType<pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> > {
00311   static const char* value() 
00312   {
00313     return "pr2_mechanism_msgs/SwitchController";
00314   }
00315 
00316   static const char* value(const pr2_mechanism_msgs::SwitchControllerResponse_<ContainerAllocator> &) { return value(); } 
00317 };
00318 
00319 } // namespace service_traits
00320 } // namespace ros
00321 
00322 #endif // PR2_MECHANISM_MSGS_SERVICE_SWITCHCONTROLLER_H
00323 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


pr2_mechanism_msgs
Author(s): Stuart Glaser sglaser@willowgarage.com, Wim Meeussen
autogenerated on Sat Nov 17 2012 19:53:40