Go to the documentation of this file.00001
00002 #ifndef OPENRAVE_MSGS_SERVICE_QUERY_H
00003 #define OPENRAVE_MSGS_SERVICE_QUERY_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 openrave_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct QueryRequest_ {
00026 typedef QueryRequest_<ContainerAllocator> Type;
00027
00028 QueryRequest_()
00029 : commandid(0)
00030 {
00031 }
00032
00033 QueryRequest_(const ContainerAllocator& _alloc)
00034 : commandid(0)
00035 {
00036 }
00037
00038 typedef uint32_t _commandid_type;
00039 uint32_t commandid;
00040
00041
00042 typedef boost::shared_ptr< ::openrave_msgs::QueryRequest_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::openrave_msgs::QueryRequest_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::openrave_msgs::QueryRequest_<std::allocator<void> > QueryRequest;
00047
00048 typedef boost::shared_ptr< ::openrave_msgs::QueryRequest> QueryRequestPtr;
00049 typedef boost::shared_ptr< ::openrave_msgs::QueryRequest const> QueryRequestConstPtr;
00050
00051
00052 template <class ContainerAllocator>
00053 struct QueryResponse_ {
00054 typedef QueryResponse_<ContainerAllocator> Type;
00055
00056 QueryResponse_()
00057 : state(0)
00058 , braked(0)
00059 , commanddone(0)
00060 , commandid(0)
00061 , commandtime(0.0)
00062 , jointnames()
00063 , jointpositions()
00064 {
00065 }
00066
00067 QueryResponse_(const ContainerAllocator& _alloc)
00068 : state(0)
00069 , braked(0)
00070 , commanddone(0)
00071 , commandid(0)
00072 , commandtime(0.0)
00073 , jointnames(_alloc)
00074 , jointpositions(_alloc)
00075 {
00076 }
00077
00078 typedef uint8_t _state_type;
00079 uint8_t state;
00080
00081 typedef uint8_t _braked_type;
00082 uint8_t braked;
00083
00084 typedef uint8_t _commanddone_type;
00085 uint8_t commanddone;
00086
00087 typedef uint32_t _commandid_type;
00088 uint32_t commandid;
00089
00090 typedef float _commandtime_type;
00091 float commandtime;
00092
00093 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 > _jointnames_type;
00094 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 > jointnames;
00095
00096 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _jointpositions_type;
00097 std::vector<float, typename ContainerAllocator::template rebind<float>::other > jointpositions;
00098
00099 enum { State_Idle = 0 };
00100 enum { State_Moving = 1 };
00101 enum { State_Ready = 2 };
00102 enum { State_Stalled = 3 };
00103
00104 typedef boost::shared_ptr< ::openrave_msgs::QueryResponse_<ContainerAllocator> > Ptr;
00105 typedef boost::shared_ptr< ::openrave_msgs::QueryResponse_<ContainerAllocator> const> ConstPtr;
00106 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00107 };
00108 typedef ::openrave_msgs::QueryResponse_<std::allocator<void> > QueryResponse;
00109
00110 typedef boost::shared_ptr< ::openrave_msgs::QueryResponse> QueryResponsePtr;
00111 typedef boost::shared_ptr< ::openrave_msgs::QueryResponse const> QueryResponseConstPtr;
00112
00113 struct Query
00114 {
00115
00116 typedef QueryRequest Request;
00117 typedef QueryResponse Response;
00118 Request request;
00119 Response response;
00120
00121 typedef Request RequestType;
00122 typedef Response ResponseType;
00123 };
00124 }
00125
00126 namespace ros
00127 {
00128 namespace message_traits
00129 {
00130 template<class ContainerAllocator> struct IsMessage< ::openrave_msgs::QueryRequest_<ContainerAllocator> > : public TrueType {};
00131 template<class ContainerAllocator> struct IsMessage< ::openrave_msgs::QueryRequest_<ContainerAllocator> const> : public TrueType {};
00132 template<class ContainerAllocator>
00133 struct MD5Sum< ::openrave_msgs::QueryRequest_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "e6d4c0cc3625aea85c1cb452f5a8c8cd";
00137 }
00138
00139 static const char* value(const ::openrave_msgs::QueryRequest_<ContainerAllocator> &) { return value(); }
00140 static const uint64_t static_value1 = 0xe6d4c0cc3625aea8ULL;
00141 static const uint64_t static_value2 = 0x5c1cb452f5a8c8cdULL;
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct DataType< ::openrave_msgs::QueryRequest_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "openrave_msgs/QueryRequest";
00149 }
00150
00151 static const char* value(const ::openrave_msgs::QueryRequest_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct Definition< ::openrave_msgs::QueryRequest_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "\n\
00159 \n\
00160 \n\
00161 \n\
00162 uint32 commandid\n\
00163 \n\
00164 ";
00165 }
00166
00167 static const char* value(const ::openrave_msgs::QueryRequest_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator> struct IsFixedSize< ::openrave_msgs::QueryRequest_<ContainerAllocator> > : public TrueType {};
00171 }
00172 }
00173
00174
00175 namespace ros
00176 {
00177 namespace message_traits
00178 {
00179 template<class ContainerAllocator> struct IsMessage< ::openrave_msgs::QueryResponse_<ContainerAllocator> > : public TrueType {};
00180 template<class ContainerAllocator> struct IsMessage< ::openrave_msgs::QueryResponse_<ContainerAllocator> const> : public TrueType {};
00181 template<class ContainerAllocator>
00182 struct MD5Sum< ::openrave_msgs::QueryResponse_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "4b8b5a48d71fbd34b803e8738c77800a";
00186 }
00187
00188 static const char* value(const ::openrave_msgs::QueryResponse_<ContainerAllocator> &) { return value(); }
00189 static const uint64_t static_value1 = 0x4b8b5a48d71fbd34ULL;
00190 static const uint64_t static_value2 = 0xb803e8738c77800aULL;
00191 };
00192
00193 template<class ContainerAllocator>
00194 struct DataType< ::openrave_msgs::QueryResponse_<ContainerAllocator> > {
00195 static const char* value()
00196 {
00197 return "openrave_msgs/QueryResponse";
00198 }
00199
00200 static const char* value(const ::openrave_msgs::QueryResponse_<ContainerAllocator> &) { return value(); }
00201 };
00202
00203 template<class ContainerAllocator>
00204 struct Definition< ::openrave_msgs::QueryResponse_<ContainerAllocator> > {
00205 static const char* value()
00206 {
00207 return "uint8 State_Idle=0\n\
00208 uint8 State_Moving=1\n\
00209 uint8 State_Ready=2\n\
00210 uint8 State_Stalled=3\n\
00211 \n\
00212 uint8 state\n\
00213 uint8 braked\n\
00214 \n\
00215 uint8 commanddone\n\
00216 uint32 commandid\n\
00217 float32 commandtime\n\
00218 \n\
00219 string[] jointnames\n\
00220 float32[] jointpositions\n\
00221 \n\
00222 \n\
00223 ";
00224 }
00225
00226 static const char* value(const ::openrave_msgs::QueryResponse_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236
00237 template<class ContainerAllocator> struct Serializer< ::openrave_msgs::QueryRequest_<ContainerAllocator> >
00238 {
00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240 {
00241 stream.next(m.commandid);
00242 }
00243
00244 ROS_DECLARE_ALLINONE_SERIALIZER;
00245 };
00246 }
00247 }
00248
00249
00250 namespace ros
00251 {
00252 namespace serialization
00253 {
00254
00255 template<class ContainerAllocator> struct Serializer< ::openrave_msgs::QueryResponse_<ContainerAllocator> >
00256 {
00257 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00258 {
00259 stream.next(m.state);
00260 stream.next(m.braked);
00261 stream.next(m.commanddone);
00262 stream.next(m.commandid);
00263 stream.next(m.commandtime);
00264 stream.next(m.jointnames);
00265 stream.next(m.jointpositions);
00266 }
00267
00268 ROS_DECLARE_ALLINONE_SERIALIZER;
00269 };
00270 }
00271 }
00272
00273 namespace ros
00274 {
00275 namespace service_traits
00276 {
00277 template<>
00278 struct MD5Sum<openrave_msgs::Query> {
00279 static const char* value()
00280 {
00281 return "fc989c5a1033d9288c8431d50cea6ffb";
00282 }
00283
00284 static const char* value(const openrave_msgs::Query&) { return value(); }
00285 };
00286
00287 template<>
00288 struct DataType<openrave_msgs::Query> {
00289 static const char* value()
00290 {
00291 return "openrave_msgs/Query";
00292 }
00293
00294 static const char* value(const openrave_msgs::Query&) { return value(); }
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct MD5Sum<openrave_msgs::QueryRequest_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "fc989c5a1033d9288c8431d50cea6ffb";
00302 }
00303
00304 static const char* value(const openrave_msgs::QueryRequest_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct DataType<openrave_msgs::QueryRequest_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "openrave_msgs/Query";
00312 }
00313
00314 static const char* value(const openrave_msgs::QueryRequest_<ContainerAllocator> &) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct MD5Sum<openrave_msgs::QueryResponse_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "fc989c5a1033d9288c8431d50cea6ffb";
00322 }
00323
00324 static const char* value(const openrave_msgs::QueryResponse_<ContainerAllocator> &) { return value(); }
00325 };
00326
00327 template<class ContainerAllocator>
00328 struct DataType<openrave_msgs::QueryResponse_<ContainerAllocator> > {
00329 static const char* value()
00330 {
00331 return "openrave_msgs/Query";
00332 }
00333
00334 static const char* value(const openrave_msgs::QueryResponse_<ContainerAllocator> &) { return value(); }
00335 };
00336
00337 }
00338 }
00339
00340 #endif // OPENRAVE_MSGS_SERVICE_QUERY_H
00341