scoutos / scout / power / srv_gen / cpp / include / power / query_power.h @ dd4eb68c
History | View | Annotate | Download (12 KB)
1 |
/* Auto-generated by genmsg_cpp for file /home/jeff/code/scoutos/scout/power/srv/query_power.srv */
|
---|---|
2 |
#ifndef POWER_SERVICE_QUERY_POWER_H
|
3 |
#define POWER_SERVICE_QUERY_POWER_H
|
4 |
#include <string> |
5 |
#include <vector> |
6 |
#include <ostream> |
7 |
#include "ros/serialization.h" |
8 |
#include "ros/builtin_message_traits.h" |
9 |
#include "ros/message_operations.h" |
10 |
#include "ros/message.h" |
11 |
#include "ros/time.h" |
12 |
|
13 |
#include "ros/service_traits.h" |
14 |
|
15 |
|
16 |
|
17 |
|
18 |
namespace power |
19 |
{ |
20 |
template <class ContainerAllocator> |
21 |
struct query_powerRequest_ : public ros::Message
|
22 |
{ |
23 |
typedef query_powerRequest_<ContainerAllocator> Type;
|
24 |
|
25 |
query_powerRequest_() |
26 |
{ |
27 |
} |
28 |
|
29 |
query_powerRequest_(const ContainerAllocator& _alloc)
|
30 |
{ |
31 |
} |
32 |
|
33 |
|
34 |
private:
|
35 |
static const char* __s_getDataType_() { return "power/query_powerRequest"; } |
36 |
public:
|
37 |
ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } |
38 |
|
39 |
ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } |
40 |
|
41 |
private:
|
42 |
static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } |
43 |
public:
|
44 |
ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } |
45 |
|
46 |
ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } |
47 |
|
48 |
private:
|
49 |
static const char* __s_getServerMD5Sum_() { return "7f7505c0b2499fcf6c85ecc5dee6164e"; } |
50 |
public:
|
51 |
ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } |
52 |
|
53 |
ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } |
54 |
|
55 |
private:
|
56 |
static const char* __s_getMessageDefinition_() { return "\n\ |
57 |
"; }
|
58 |
public:
|
59 |
ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } |
60 |
|
61 |
ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } |
62 |
|
63 |
ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
|
64 |
{ |
65 |
ros::serialization::OStream stream(write_ptr, 1000000000);
|
66 |
return stream.getData();
|
67 |
} |
68 |
|
69 |
ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) |
70 |
{ |
71 |
ros::serialization::IStream stream(read_ptr, 1000000000);
|
72 |
return stream.getData();
|
73 |
} |
74 |
|
75 |
ROS_DEPRECATED virtual uint32_t serializationLength() const
|
76 |
{ |
77 |
uint32_t size = 0;
|
78 |
return size;
|
79 |
} |
80 |
|
81 |
typedef boost::shared_ptr< ::power::query_powerRequest_<ContainerAllocator> > Ptr;
|
82 |
typedef boost::shared_ptr< ::power::query_powerRequest_<ContainerAllocator> const> ConstPtr; |
83 |
}; // struct query_powerRequest
|
84 |
typedef ::power::query_powerRequest_<std::allocator<void> > query_powerRequest; |
85 |
|
86 |
typedef boost::shared_ptr< ::power::query_powerRequest> query_powerRequestPtr;
|
87 |
typedef boost::shared_ptr< ::power::query_powerRequest const> query_powerRequestConstPtr; |
88 |
|
89 |
|
90 |
template <class ContainerAllocator> |
91 |
struct query_powerResponse_ : public ros::Message
|
92 |
{ |
93 |
typedef query_powerResponse_<ContainerAllocator> Type;
|
94 |
|
95 |
query_powerResponse_() |
96 |
: voltage(0)
|
97 |
, percentage(0)
|
98 |
, draw(0)
|
99 |
, externalpower(false)
|
100 |
, warning(false)
|
101 |
, critical(false)
|
102 |
{ |
103 |
} |
104 |
|
105 |
query_powerResponse_(const ContainerAllocator& _alloc)
|
106 |
: voltage(0)
|
107 |
, percentage(0)
|
108 |
, draw(0)
|
109 |
, externalpower(false)
|
110 |
, warning(false)
|
111 |
, critical(false)
|
112 |
{ |
113 |
} |
114 |
|
115 |
typedef uint32_t _voltage_type;
|
116 |
uint32_t voltage; |
117 |
|
118 |
typedef uint32_t _percentage_type;
|
119 |
uint32_t percentage; |
120 |
|
121 |
typedef uint32_t _draw_type;
|
122 |
uint32_t draw; |
123 |
|
124 |
typedef uint8_t _externalpower_type;
|
125 |
uint8_t externalpower; |
126 |
|
127 |
typedef uint8_t _warning_type;
|
128 |
uint8_t warning; |
129 |
|
130 |
typedef uint8_t _critical_type;
|
131 |
uint8_t critical; |
132 |
|
133 |
|
134 |
private:
|
135 |
static const char* __s_getDataType_() { return "power/query_powerResponse"; } |
136 |
public:
|
137 |
ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } |
138 |
|
139 |
ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } |
140 |
|
141 |
private:
|
142 |
static const char* __s_getMD5Sum_() { return "7f7505c0b2499fcf6c85ecc5dee6164e"; } |
143 |
public:
|
144 |
ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } |
145 |
|
146 |
ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } |
147 |
|
148 |
private:
|
149 |
static const char* __s_getServerMD5Sum_() { return "7f7505c0b2499fcf6c85ecc5dee6164e"; } |
150 |
public:
|
151 |
ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } |
152 |
|
153 |
ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } |
154 |
|
155 |
private:
|
156 |
static const char* __s_getMessageDefinition_() { return "\n\ |
157 |
uint32 voltage\n\
|
158 |
\n\
|
159 |
uint32 percentage\n\
|
160 |
\n\
|
161 |
uint32 draw\n\
|
162 |
\n\
|
163 |
bool externalpower\n\
|
164 |
\n\
|
165 |
bool warning\n\
|
166 |
\n\
|
167 |
bool critical\n\
|
168 |
\n\
|
169 |
\n\
|
170 |
"; }
|
171 |
public:
|
172 |
ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } |
173 |
|
174 |
ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } |
175 |
|
176 |
ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
|
177 |
{ |
178 |
ros::serialization::OStream stream(write_ptr, 1000000000);
|
179 |
ros::serialization::serialize(stream, voltage); |
180 |
ros::serialization::serialize(stream, percentage); |
181 |
ros::serialization::serialize(stream, draw); |
182 |
ros::serialization::serialize(stream, externalpower); |
183 |
ros::serialization::serialize(stream, warning); |
184 |
ros::serialization::serialize(stream, critical); |
185 |
return stream.getData();
|
186 |
} |
187 |
|
188 |
ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) |
189 |
{ |
190 |
ros::serialization::IStream stream(read_ptr, 1000000000);
|
191 |
ros::serialization::deserialize(stream, voltage); |
192 |
ros::serialization::deserialize(stream, percentage); |
193 |
ros::serialization::deserialize(stream, draw); |
194 |
ros::serialization::deserialize(stream, externalpower); |
195 |
ros::serialization::deserialize(stream, warning); |
196 |
ros::serialization::deserialize(stream, critical); |
197 |
return stream.getData();
|
198 |
} |
199 |
|
200 |
ROS_DEPRECATED virtual uint32_t serializationLength() const
|
201 |
{ |
202 |
uint32_t size = 0;
|
203 |
size += ros::serialization::serializationLength(voltage); |
204 |
size += ros::serialization::serializationLength(percentage); |
205 |
size += ros::serialization::serializationLength(draw); |
206 |
size += ros::serialization::serializationLength(externalpower); |
207 |
size += ros::serialization::serializationLength(warning); |
208 |
size += ros::serialization::serializationLength(critical); |
209 |
return size;
|
210 |
} |
211 |
|
212 |
typedef boost::shared_ptr< ::power::query_powerResponse_<ContainerAllocator> > Ptr;
|
213 |
typedef boost::shared_ptr< ::power::query_powerResponse_<ContainerAllocator> const> ConstPtr; |
214 |
}; // struct query_powerResponse
|
215 |
typedef ::power::query_powerResponse_<std::allocator<void> > query_powerResponse; |
216 |
|
217 |
typedef boost::shared_ptr< ::power::query_powerResponse> query_powerResponsePtr;
|
218 |
typedef boost::shared_ptr< ::power::query_powerResponse const> query_powerResponseConstPtr; |
219 |
|
220 |
struct query_power
|
221 |
{ |
222 |
|
223 |
typedef query_powerRequest Request;
|
224 |
typedef query_powerResponse Response;
|
225 |
Request request; |
226 |
Response response; |
227 |
|
228 |
typedef Request RequestType;
|
229 |
typedef Response ResponseType;
|
230 |
}; // struct query_power
|
231 |
} // namespace power
|
232 |
|
233 |
namespace ros |
234 |
{ |
235 |
namespace message_traits |
236 |
{ |
237 |
template<class ContainerAllocator> |
238 |
struct MD5Sum< ::power::query_powerRequest_<ContainerAllocator> > {
|
239 |
static const char* value() |
240 |
{ |
241 |
return "d41d8cd98f00b204e9800998ecf8427e"; |
242 |
} |
243 |
|
244 |
static const char* value(const ::power::query_powerRequest_<ContainerAllocator> &) { return value(); } |
245 |
static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; |
246 |
static const uint64_t static_value2 = 0xe9800998ecf8427eULL; |
247 |
}; |
248 |
|
249 |
template<class ContainerAllocator> |
250 |
struct DataType< ::power::query_powerRequest_<ContainerAllocator> > {
|
251 |
static const char* value() |
252 |
{ |
253 |
return "power/query_powerRequest"; |
254 |
} |
255 |
|
256 |
static const char* value(const ::power::query_powerRequest_<ContainerAllocator> &) { return value(); } |
257 |
}; |
258 |
|
259 |
template<class ContainerAllocator> |
260 |
struct Definition< ::power::query_powerRequest_<ContainerAllocator> > {
|
261 |
static const char* value() |
262 |
{ |
263 |
return "\n\ |
264 |
";
|
265 |
} |
266 |
|
267 |
static const char* value(const ::power::query_powerRequest_<ContainerAllocator> &) { return value(); } |
268 |
}; |
269 |
|
270 |
template<class ContainerAllocator> struct IsFixedSize< ::power::query_powerRequest_<ContainerAllocator> > : public TrueType {};
|
271 |
} // namespace message_traits
|
272 |
} // namespace ros
|
273 |
|
274 |
|
275 |
namespace ros |
276 |
{ |
277 |
namespace message_traits |
278 |
{ |
279 |
template<class ContainerAllocator> |
280 |
struct MD5Sum< ::power::query_powerResponse_<ContainerAllocator> > {
|
281 |
static const char* value() |
282 |
{ |
283 |
return "7f7505c0b2499fcf6c85ecc5dee6164e"; |
284 |
} |
285 |
|
286 |
static const char* value(const ::power::query_powerResponse_<ContainerAllocator> &) { return value(); } |
287 |
static const uint64_t static_value1 = 0x7f7505c0b2499fcfULL; |
288 |
static const uint64_t static_value2 = 0x6c85ecc5dee6164eULL; |
289 |
}; |
290 |
|
291 |
template<class ContainerAllocator> |
292 |
struct DataType< ::power::query_powerResponse_<ContainerAllocator> > {
|
293 |
static const char* value() |
294 |
{ |
295 |
return "power/query_powerResponse"; |
296 |
} |
297 |
|
298 |
static const char* value(const ::power::query_powerResponse_<ContainerAllocator> &) { return value(); } |
299 |
}; |
300 |
|
301 |
template<class ContainerAllocator> |
302 |
struct Definition< ::power::query_powerResponse_<ContainerAllocator> > {
|
303 |
static const char* value() |
304 |
{ |
305 |
return "\n\ |
306 |
uint32 voltage\n\
|
307 |
\n\
|
308 |
uint32 percentage\n\
|
309 |
\n\
|
310 |
uint32 draw\n\
|
311 |
\n\
|
312 |
bool externalpower\n\
|
313 |
\n\
|
314 |
bool warning\n\
|
315 |
\n\
|
316 |
bool critical\n\
|
317 |
\n\
|
318 |
\n\
|
319 |
";
|
320 |
} |
321 |
|
322 |
static const char* value(const ::power::query_powerResponse_<ContainerAllocator> &) { return value(); } |
323 |
}; |
324 |
|
325 |
template<class ContainerAllocator> struct IsFixedSize< ::power::query_powerResponse_<ContainerAllocator> > : public TrueType {};
|
326 |
} // namespace message_traits
|
327 |
} // namespace ros
|
328 |
|
329 |
namespace ros |
330 |
{ |
331 |
namespace serialization |
332 |
{ |
333 |
|
334 |
template<class ContainerAllocator> struct Serializer< ::power::query_powerRequest_<ContainerAllocator> >
|
335 |
{ |
336 |
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) |
337 |
{ |
338 |
} |
339 |
|
340 |
ROS_DECLARE_ALLINONE_SERIALIZER; |
341 |
}; // struct query_powerRequest_
|
342 |
} // namespace serialization
|
343 |
} // namespace ros
|
344 |
|
345 |
|
346 |
namespace ros |
347 |
{ |
348 |
namespace serialization |
349 |
{ |
350 |
|
351 |
template<class ContainerAllocator> struct Serializer< ::power::query_powerResponse_<ContainerAllocator> >
|
352 |
{ |
353 |
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) |
354 |
{ |
355 |
stream.next(m.voltage); |
356 |
stream.next(m.percentage); |
357 |
stream.next(m.draw); |
358 |
stream.next(m.externalpower); |
359 |
stream.next(m.warning); |
360 |
stream.next(m.critical); |
361 |
} |
362 |
|
363 |
ROS_DECLARE_ALLINONE_SERIALIZER; |
364 |
}; // struct query_powerResponse_
|
365 |
} // namespace serialization
|
366 |
} // namespace ros
|
367 |
|
368 |
namespace ros |
369 |
{ |
370 |
namespace service_traits |
371 |
{ |
372 |
template<> |
373 |
struct MD5Sum<power::query_power> {
|
374 |
static const char* value() |
375 |
{ |
376 |
return "7f7505c0b2499fcf6c85ecc5dee6164e"; |
377 |
} |
378 |
|
379 |
static const char* value(const power::query_power&) { return value(); } |
380 |
}; |
381 |
|
382 |
template<> |
383 |
struct DataType<power::query_power> {
|
384 |
static const char* value() |
385 |
{ |
386 |
return "power/query_power"; |
387 |
} |
388 |
|
389 |
static const char* value(const power::query_power&) { return value(); } |
390 |
}; |
391 |
|
392 |
template<class ContainerAllocator> |
393 |
struct MD5Sum<power::query_powerRequest_<ContainerAllocator> > {
|
394 |
static const char* value() |
395 |
{ |
396 |
return "7f7505c0b2499fcf6c85ecc5dee6164e"; |
397 |
} |
398 |
|
399 |
static const char* value(const power::query_powerRequest_<ContainerAllocator> &) { return value(); } |
400 |
}; |
401 |
|
402 |
template<class ContainerAllocator> |
403 |
struct DataType<power::query_powerRequest_<ContainerAllocator> > {
|
404 |
static const char* value() |
405 |
{ |
406 |
return "power/query_power"; |
407 |
} |
408 |
|
409 |
static const char* value(const power::query_powerRequest_<ContainerAllocator> &) { return value(); } |
410 |
}; |
411 |
|
412 |
template<class ContainerAllocator> |
413 |
struct MD5Sum<power::query_powerResponse_<ContainerAllocator> > {
|
414 |
static const char* value() |
415 |
{ |
416 |
return "7f7505c0b2499fcf6c85ecc5dee6164e"; |
417 |
} |
418 |
|
419 |
static const char* value(const power::query_powerResponse_<ContainerAllocator> &) { return value(); } |
420 |
}; |
421 |
|
422 |
template<class ContainerAllocator> |
423 |
struct DataType<power::query_powerResponse_<ContainerAllocator> > {
|
424 |
static const char* value() |
425 |
{ |
426 |
return "power/query_power"; |
427 |
} |
428 |
|
429 |
static const char* value(const power::query_powerResponse_<ContainerAllocator> &) { return value(); } |
430 |
}; |
431 |
|
432 |
} // namespace service_traits
|
433 |
} // namespace ros
|
434 |
|
435 |
#endif // POWER_SERVICE_QUERY_POWER_H |
436 |
|