Go to the documentation of this file.00001
00002 #ifndef OPENRAVEROS_SERVICE_ENV_GETBODIES_H
00003 #define OPENRAVEROS_SERVICE_ENV_GETBODIES_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 "openraveros/BodyInfo.h"
00022
00023 namespace openraveros
00024 {
00025 template <class ContainerAllocator>
00026 struct env_getbodiesRequest_ {
00027 typedef env_getbodiesRequest_<ContainerAllocator> Type;
00028
00029 env_getbodiesRequest_()
00030 : bodyid(0)
00031 , options(0)
00032 {
00033 }
00034
00035 env_getbodiesRequest_(const ContainerAllocator& _alloc)
00036 : bodyid(0)
00037 , options(0)
00038 {
00039 }
00040
00041 typedef int32_t _bodyid_type;
00042 int32_t bodyid;
00043
00044 typedef uint16_t _options_type;
00045 uint16_t options;
00046
00047
00048 typedef boost::shared_ptr< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::openraveros::env_getbodiesRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::openraveros::env_getbodiesRequest_<std::allocator<void> > env_getbodiesRequest;
00053
00054 typedef boost::shared_ptr< ::openraveros::env_getbodiesRequest> env_getbodiesRequestPtr;
00055 typedef boost::shared_ptr< ::openraveros::env_getbodiesRequest const> env_getbodiesRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct env_getbodiesResponse_ {
00060 typedef env_getbodiesResponse_<ContainerAllocator> Type;
00061
00062 env_getbodiesResponse_()
00063 : bodies()
00064 {
00065 }
00066
00067 env_getbodiesResponse_(const ContainerAllocator& _alloc)
00068 : bodies(_alloc)
00069 {
00070 }
00071
00072 typedef std::vector< ::openraveros::BodyInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::openraveros::BodyInfo_<ContainerAllocator> >::other > _bodies_type;
00073 std::vector< ::openraveros::BodyInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::openraveros::BodyInfo_<ContainerAllocator> >::other > bodies;
00074
00075
00076 typedef boost::shared_ptr< ::openraveros::env_getbodiesResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::openraveros::env_getbodiesResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::openraveros::env_getbodiesResponse_<std::allocator<void> > env_getbodiesResponse;
00081
00082 typedef boost::shared_ptr< ::openraveros::env_getbodiesResponse> env_getbodiesResponsePtr;
00083 typedef boost::shared_ptr< ::openraveros::env_getbodiesResponse const> env_getbodiesResponseConstPtr;
00084
00085 struct env_getbodies
00086 {
00087
00088 typedef env_getbodiesRequest Request;
00089 typedef env_getbodiesResponse Response;
00090 Request request;
00091 Response response;
00092
00093 typedef Request RequestType;
00094 typedef Response ResponseType;
00095 };
00096 }
00097
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::openraveros::env_getbodiesRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "9996321108452a956d6ad7dd8fe30cad";
00109 }
00110
00111 static const char* value(const ::openraveros::env_getbodiesRequest_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x9996321108452a95ULL;
00113 static const uint64_t static_value2 = 0x6d6ad7dd8fe30cadULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "openraveros/env_getbodiesRequest";
00121 }
00122
00123 static const char* value(const ::openraveros::env_getbodiesRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "\n\
00131 \n\
00132 \n\
00133 int32 bodyid\n\
00134 \n\
00135 \n\
00136 uint16 options\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::openraveros::env_getbodiesRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator> struct IsFixedSize< ::openraveros::env_getbodiesRequest_<ContainerAllocator> > : public TrueType {};
00145 }
00146 }
00147
00148
00149 namespace ros
00150 {
00151 namespace message_traits
00152 {
00153 template<class ContainerAllocator> struct IsMessage< ::openraveros::env_getbodiesResponse_<ContainerAllocator> > : public TrueType {};
00154 template<class ContainerAllocator> struct IsMessage< ::openraveros::env_getbodiesResponse_<ContainerAllocator> const> : public TrueType {};
00155 template<class ContainerAllocator>
00156 struct MD5Sum< ::openraveros::env_getbodiesResponse_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "f70d26169f977465766c815382f0ddc3";
00160 }
00161
00162 static const char* value(const ::openraveros::env_getbodiesResponse_<ContainerAllocator> &) { return value(); }
00163 static const uint64_t static_value1 = 0xf70d26169f977465ULL;
00164 static const uint64_t static_value2 = 0x766c815382f0ddc3ULL;
00165 };
00166
00167 template<class ContainerAllocator>
00168 struct DataType< ::openraveros::env_getbodiesResponse_<ContainerAllocator> > {
00169 static const char* value()
00170 {
00171 return "openraveros/env_getbodiesResponse";
00172 }
00173
00174 static const char* value(const ::openraveros::env_getbodiesResponse_<ContainerAllocator> &) { return value(); }
00175 };
00176
00177 template<class ContainerAllocator>
00178 struct Definition< ::openraveros::env_getbodiesResponse_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "BodyInfo[] bodies\n\
00182 \n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: openraveros/BodyInfo\n\
00186 # information about a body\n\
00187 int32 bodyid\n\
00188 \n\
00189 # current transformation\n\
00190 AffineTransformMatrix transform\n\
00191 \n\
00192 # degrees of freedom (number of joints)\n\
00193 uint8 dof\n\
00194 \n\
00195 # enabled status\n\
00196 uint8 enabled\n\
00197 \n\
00198 \n\
00199 # filename used to create body geometry\n\
00200 string filename\n\
00201 \n\
00202 # name of the body\n\
00203 string name\n\
00204 \n\
00205 # type of body\n\
00206 string type\n\
00207 \n\
00208 float32[] jointvalues\n\
00209 AffineTransformMatrix[] links\n\
00210 string[] linknames\n\
00211 string[] jointnames\n\
00212 \n\
00213 # joint limits\n\
00214 float32[] lowerlimit\n\
00215 float32[] upperlimit\n\
00216 \n\
00217 # request information bitmasks, also holds robot specific request information (lower 8 bits)\n\
00218 uint16 Req_JointValues=1\n\
00219 uint16 Req_Links=2\n\
00220 uint16 Req_LinkNames=4 # fills the linknames\n\
00221 uint16 Req_JointLimits=8\n\
00222 uint16 Req_Names=16 # if set, fills filename, name, and type\n\
00223 uint16 Req_JointNames=32 # fills the jointnames\n\
00224 ================================================================================\n\
00225 MSG: openraveros/AffineTransformMatrix\n\
00226 # column ordered 3x4 affine transformation, ie: the arrangement in memory is:\n\
00227 # where the upper 3x3 matrix is orthonormal\n\
00228 # [0] [3] [6] [9]\n\
00229 # [1] [4] [7] [10]\n\
00230 # [2] [5] [8] [11]\n\
00231 float32[12] m\n\
00232 \n\
00233 ";
00234 }
00235
00236 static const char* value(const ::openraveros::env_getbodiesResponse_<ContainerAllocator> &) { return value(); }
00237 };
00238
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace serialization
00245 {
00246
00247 template<class ContainerAllocator> struct Serializer< ::openraveros::env_getbodiesRequest_<ContainerAllocator> >
00248 {
00249 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00250 {
00251 stream.next(m.bodyid);
00252 stream.next(m.options);
00253 }
00254
00255 ROS_DECLARE_ALLINONE_SERIALIZER;
00256 };
00257 }
00258 }
00259
00260
00261 namespace ros
00262 {
00263 namespace serialization
00264 {
00265
00266 template<class ContainerAllocator> struct Serializer< ::openraveros::env_getbodiesResponse_<ContainerAllocator> >
00267 {
00268 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00269 {
00270 stream.next(m.bodies);
00271 }
00272
00273 ROS_DECLARE_ALLINONE_SERIALIZER;
00274 };
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace service_traits
00281 {
00282 template<>
00283 struct MD5Sum<openraveros::env_getbodies> {
00284 static const char* value()
00285 {
00286 return "caddd98e3a44d0d059c9941276339e55";
00287 }
00288
00289 static const char* value(const openraveros::env_getbodies&) { return value(); }
00290 };
00291
00292 template<>
00293 struct DataType<openraveros::env_getbodies> {
00294 static const char* value()
00295 {
00296 return "openraveros/env_getbodies";
00297 }
00298
00299 static const char* value(const openraveros::env_getbodies&) { return value(); }
00300 };
00301
00302 template<class ContainerAllocator>
00303 struct MD5Sum<openraveros::env_getbodiesRequest_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "caddd98e3a44d0d059c9941276339e55";
00307 }
00308
00309 static const char* value(const openraveros::env_getbodiesRequest_<ContainerAllocator> &) { return value(); }
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct DataType<openraveros::env_getbodiesRequest_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "openraveros/env_getbodies";
00317 }
00318
00319 static const char* value(const openraveros::env_getbodiesRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct MD5Sum<openraveros::env_getbodiesResponse_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "caddd98e3a44d0d059c9941276339e55";
00327 }
00328
00329 static const char* value(const openraveros::env_getbodiesResponse_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct DataType<openraveros::env_getbodiesResponse_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "openraveros/env_getbodies";
00337 }
00338
00339 static const char* value(const openraveros::env_getbodiesResponse_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 }
00343 }
00344
00345 #endif // OPENRAVEROS_SERVICE_ENV_GETBODIES_H
00346