Go to the documentation of this file.00001
00002 #ifndef INDUSTRIAL_MSGS_SERVICE_GETROBOTINFO_H
00003 #define INDUSTRIAL_MSGS_SERVICE_GETROBOTINFO_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 #include "industrial_msgs/DeviceInfo.h"
00022 #include "industrial_msgs/DeviceInfo.h"
00023 #include "industrial_msgs/ServiceReturnCode.h"
00024
00025 namespace industrial_msgs
00026 {
00027 template <class ContainerAllocator>
00028 struct GetRobotInfoRequest_ {
00029 typedef GetRobotInfoRequest_<ContainerAllocator> Type;
00030
00031 GetRobotInfoRequest_()
00032 {
00033 }
00034
00035 GetRobotInfoRequest_(const ContainerAllocator& _alloc)
00036 {
00037 }
00038
00039
00040 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > Ptr;
00041 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> const> ConstPtr;
00042 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 };
00044 typedef ::industrial_msgs::GetRobotInfoRequest_<std::allocator<void> > GetRobotInfoRequest;
00045
00046 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoRequest> GetRobotInfoRequestPtr;
00047 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoRequest const> GetRobotInfoRequestConstPtr;
00048
00049
00050
00051 template <class ContainerAllocator>
00052 struct GetRobotInfoResponse_ {
00053 typedef GetRobotInfoResponse_<ContainerAllocator> Type;
00054
00055 GetRobotInfoResponse_()
00056 : controller()
00057 , robots()
00058 , code()
00059 {
00060 }
00061
00062 GetRobotInfoResponse_(const ContainerAllocator& _alloc)
00063 : controller(_alloc)
00064 , robots(_alloc)
00065 , code(_alloc)
00066 {
00067 }
00068
00069 typedef ::industrial_msgs::DeviceInfo_<ContainerAllocator> _controller_type;
00070 ::industrial_msgs::DeviceInfo_<ContainerAllocator> controller;
00071
00072 typedef std::vector< ::industrial_msgs::DeviceInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::industrial_msgs::DeviceInfo_<ContainerAllocator> >::other > _robots_type;
00073 std::vector< ::industrial_msgs::DeviceInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::industrial_msgs::DeviceInfo_<ContainerAllocator> >::other > robots;
00074
00075 typedef ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> _code_type;
00076 ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> code;
00077
00078
00079 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > Ptr;
00080 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> const> ConstPtr;
00081 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 };
00083 typedef ::industrial_msgs::GetRobotInfoResponse_<std::allocator<void> > GetRobotInfoResponse;
00084
00085 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoResponse> GetRobotInfoResponsePtr;
00086 typedef boost::shared_ptr< ::industrial_msgs::GetRobotInfoResponse const> GetRobotInfoResponseConstPtr;
00087
00088
00089 struct GetRobotInfo
00090 {
00091
00092 typedef GetRobotInfoRequest Request;
00093 typedef GetRobotInfoResponse Response;
00094 Request request;
00095 Response response;
00096
00097 typedef Request RequestType;
00098 typedef Response ResponseType;
00099 };
00100 }
00101
00102 namespace ros
00103 {
00104 namespace message_traits
00105 {
00106 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > : public TrueType {};
00107 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> const> : public TrueType {};
00108 template<class ContainerAllocator>
00109 struct MD5Sum< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "d41d8cd98f00b204e9800998ecf8427e";
00113 }
00114
00115 static const char* value(const ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> &) { return value(); }
00116 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00117 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct DataType< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "industrial_msgs/GetRobotInfoRequest";
00125 }
00126
00127 static const char* value(const ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct Definition< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "\n\
00135 \n\
00136 \n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > : public TrueType {};
00145 }
00146 }
00147
00148
00149 namespace ros
00150 {
00151 namespace message_traits
00152 {
00153 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > : public TrueType {};
00154 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> const> : public TrueType {};
00155 template<class ContainerAllocator>
00156 struct MD5Sum< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "5db3230b3e61c85a320b999ffd7f3b3f";
00160 }
00161
00162 static const char* value(const ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> &) { return value(); }
00163 static const uint64_t static_value1 = 0x5db3230b3e61c85aULL;
00164 static const uint64_t static_value2 = 0x320b999ffd7f3b3fULL;
00165 };
00166
00167 template<class ContainerAllocator>
00168 struct DataType< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > {
00169 static const char* value()
00170 {
00171 return "industrial_msgs/GetRobotInfoResponse";
00172 }
00173
00174 static const char* value(const ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> &) { return value(); }
00175 };
00176
00177 template<class ContainerAllocator>
00178 struct Definition< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "industrial_msgs/DeviceInfo controller\n\
00182 industrial_msgs/DeviceInfo[] robots\n\
00183 industrial_msgs/ServiceReturnCode code\n\
00184 \n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: industrial_msgs/DeviceInfo\n\
00188 # Device info captures device agnostic information about a piece of hardware.\n\
00189 # This message is meant as a generic as possible. Items that don't apply should\n\
00190 # be left blank. This message is not meant to replace diagnostic messages, but\n\
00191 # rather provide a standard service message that can be used to populate standard\n\
00192 # components (like a GUI for example)\n\
00193 \n\
00194 string model\n\
00195 string serial_number\n\
00196 string hw_version\n\
00197 string sw_version\n\
00198 string address\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: industrial_msgs/ServiceReturnCode\n\
00202 # Service return codes for simple requests. All ROS-Industrial service\n\
00203 # replies are required to have a return code indicating success or failure\n\
00204 # Specific return codes for different failure should be negative.\n\
00205 int8 val\n\
00206 \n\
00207 int8 SUCCESS = 1\n\
00208 int8 FAILURE = -1\n\
00209 \n\
00210 \n\
00211 ";
00212 }
00213
00214 static const char* value(const ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 }
00230
00231 ROS_DECLARE_ALLINONE_SERIALIZER;
00232 };
00233 }
00234 }
00235
00236
00237 namespace ros
00238 {
00239 namespace serialization
00240 {
00241
00242 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> >
00243 {
00244 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00245 {
00246 stream.next(m.controller);
00247 stream.next(m.robots);
00248 stream.next(m.code);
00249 }
00250
00251 ROS_DECLARE_ALLINONE_SERIALIZER;
00252 };
00253 }
00254 }
00255
00256 namespace ros
00257 {
00258 namespace service_traits
00259 {
00260 template<>
00261 struct MD5Sum<industrial_msgs::GetRobotInfo> {
00262 static const char* value()
00263 {
00264 return "5db3230b3e61c85a320b999ffd7f3b3f";
00265 }
00266
00267 static const char* value(const industrial_msgs::GetRobotInfo&) { return value(); }
00268 };
00269
00270 template<>
00271 struct DataType<industrial_msgs::GetRobotInfo> {
00272 static const char* value()
00273 {
00274 return "industrial_msgs/GetRobotInfo";
00275 }
00276
00277 static const char* value(const industrial_msgs::GetRobotInfo&) { return value(); }
00278 };
00279
00280 template<class ContainerAllocator>
00281 struct MD5Sum<industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > {
00282 static const char* value()
00283 {
00284 return "5db3230b3e61c85a320b999ffd7f3b3f";
00285 }
00286
00287 static const char* value(const industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> &) { return value(); }
00288 };
00289
00290 template<class ContainerAllocator>
00291 struct DataType<industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> > {
00292 static const char* value()
00293 {
00294 return "industrial_msgs/GetRobotInfo";
00295 }
00296
00297 static const char* value(const industrial_msgs::GetRobotInfoRequest_<ContainerAllocator> &) { return value(); }
00298 };
00299
00300 template<class ContainerAllocator>
00301 struct MD5Sum<industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > {
00302 static const char* value()
00303 {
00304 return "5db3230b3e61c85a320b999ffd7f3b3f";
00305 }
00306
00307 static const char* value(const industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> &) { return value(); }
00308 };
00309
00310 template<class ContainerAllocator>
00311 struct DataType<industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> > {
00312 static const char* value()
00313 {
00314 return "industrial_msgs/GetRobotInfo";
00315 }
00316
00317 static const char* value(const industrial_msgs::GetRobotInfoResponse_<ContainerAllocator> &) { return value(); }
00318 };
00319
00320 }
00321 }
00322
00323 #endif // INDUSTRIAL_MSGS_SERVICE_GETROBOTINFO_H
00324