Go to the documentation of this file.00001
00002 #ifndef SRS_OBJECT_DATABASE_MSGS_SERVICE_GETURDF_H
00003 #define SRS_OBJECT_DATABASE_MSGS_SERVICE_GETURDF_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 "srs_object_database_msgs/urdf.h"
00022
00023 namespace srs_object_database_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct GetUrdfRequest_ {
00027 typedef GetUrdfRequest_<ContainerAllocator> Type;
00028
00029 GetUrdfRequest_()
00030 : model_ids()
00031 {
00032 }
00033
00034 GetUrdfRequest_(const ContainerAllocator& _alloc)
00035 : model_ids(_alloc)
00036 {
00037 }
00038
00039 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type;
00040 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids;
00041
00042
00043 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::srs_object_database_msgs::GetUrdfRequest_<std::allocator<void> > GetUrdfRequest;
00048
00049 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfRequest> GetUrdfRequestPtr;
00050 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfRequest const> GetUrdfRequestConstPtr;
00051
00052
00053 template <class ContainerAllocator>
00054 struct GetUrdfResponse_ {
00055 typedef GetUrdfResponse_<ContainerAllocator> Type;
00056
00057 GetUrdfResponse_()
00058 : return_response()
00059 , urdf()
00060 {
00061 }
00062
00063 GetUrdfResponse_(const ContainerAllocator& _alloc)
00064 : return_response(_alloc)
00065 , urdf(_alloc)
00066 {
00067 }
00068
00069 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type;
00070 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response;
00071
00072 typedef std::vector< ::srs_object_database_msgs::urdf_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::urdf_<ContainerAllocator> >::other > _urdf_type;
00073 std::vector< ::srs_object_database_msgs::urdf_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::urdf_<ContainerAllocator> >::other > urdf;
00074
00075
00076 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::srs_object_database_msgs::GetUrdfResponse_<std::allocator<void> > GetUrdfResponse;
00081
00082 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfResponse> GetUrdfResponsePtr;
00083 typedef boost::shared_ptr< ::srs_object_database_msgs::GetUrdfResponse const> GetUrdfResponseConstPtr;
00084
00085 struct GetUrdf
00086 {
00087
00088 typedef GetUrdfRequest Request;
00089 typedef GetUrdfResponse 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< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "80afe6caba30c992d2e7ff6ff0e0d51e";
00109 }
00110
00111 static const char* value(const ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x80afe6caba30c992ULL;
00113 static const uint64_t static_value2 = 0xd2e7ff6ff0e0d51eULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "srs_object_database_msgs/GetUrdfRequest";
00121 }
00122
00123 static const char* value(const ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "\n\
00131 \n\
00132 \n\
00133 \n\
00134 int32[] model_ids\n\
00135 \n\
00136 \n\
00137 ";
00138 }
00139
00140 static const char* value(const ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> &) { return value(); }
00141 };
00142
00143 }
00144 }
00145
00146
00147 namespace ros
00148 {
00149 namespace message_traits
00150 {
00151 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > : public TrueType {};
00152 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> const> : public TrueType {};
00153 template<class ContainerAllocator>
00154 struct MD5Sum< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "18629b80ecc1511309bef0685f2134c3";
00158 }
00159
00160 static const char* value(const ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> &) { return value(); }
00161 static const uint64_t static_value1 = 0x18629b80ecc15113ULL;
00162 static const uint64_t static_value2 = 0x09bef0685f2134c3ULL;
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct DataType< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "srs_object_database_msgs/GetUrdfResponse";
00170 }
00171
00172 static const char* value(const ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> &) { return value(); }
00173 };
00174
00175 template<class ContainerAllocator>
00176 struct Definition< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > {
00177 static const char* value()
00178 {
00179 return "\n\
00180 \n\
00181 string return_response\n\
00182 \n\
00183 srs_object_database_msgs/urdf[] urdf\n\
00184 \n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: srs_object_database_msgs/urdf\n\
00188 int32 objectId\n\
00189 visualization_msgs/Marker[] markers\n\
00190 ================================================================================\n\
00191 MSG: visualization_msgs/Marker\n\
00192 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\
00193 \n\
00194 uint8 ARROW=0\n\
00195 uint8 CUBE=1\n\
00196 uint8 SPHERE=2\n\
00197 uint8 CYLINDER=3\n\
00198 uint8 LINE_STRIP=4\n\
00199 uint8 LINE_LIST=5\n\
00200 uint8 CUBE_LIST=6\n\
00201 uint8 SPHERE_LIST=7\n\
00202 uint8 POINTS=8\n\
00203 uint8 TEXT_VIEW_FACING=9\n\
00204 uint8 MESH_RESOURCE=10\n\
00205 uint8 TRIANGLE_LIST=11\n\
00206 \n\
00207 uint8 ADD=0\n\
00208 uint8 MODIFY=0\n\
00209 uint8 DELETE=2\n\
00210 \n\
00211 Header header # header for time/frame information\n\
00212 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
00213 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
00214 int32 type # Type of object\n\
00215 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\
00216 geometry_msgs/Pose pose # Pose of the object\n\
00217 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
00218 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
00219 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
00220 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
00221 \n\
00222 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00223 geometry_msgs/Point[] points\n\
00224 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00225 #number of colors must either be 0 or equal to the number of points\n\
00226 #NOTE: alpha is not yet used\n\
00227 std_msgs/ColorRGBA[] colors\n\
00228 \n\
00229 # NOTE: only used for text markers\n\
00230 string text\n\
00231 \n\
00232 # NOTE: only used for MESH_RESOURCE markers\n\
00233 string mesh_resource\n\
00234 bool mesh_use_embedded_materials\n\
00235 \n\
00236 ================================================================================\n\
00237 MSG: std_msgs/Header\n\
00238 # Standard metadata for higher-level stamped data types.\n\
00239 # This is generally used to communicate timestamped data \n\
00240 # in a particular coordinate frame.\n\
00241 # \n\
00242 # sequence ID: consecutively increasing ID \n\
00243 uint32 seq\n\
00244 #Two-integer timestamp that is expressed as:\n\
00245 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00246 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00247 # time-handling sugar is provided by the client library\n\
00248 time stamp\n\
00249 #Frame this data is associated with\n\
00250 # 0: no frame\n\
00251 # 1: global frame\n\
00252 string frame_id\n\
00253 \n\
00254 ================================================================================\n\
00255 MSG: geometry_msgs/Pose\n\
00256 # A representation of pose in free space, composed of postion and orientation. \n\
00257 Point position\n\
00258 Quaternion orientation\n\
00259 \n\
00260 ================================================================================\n\
00261 MSG: geometry_msgs/Point\n\
00262 # This contains the position of a point in free space\n\
00263 float64 x\n\
00264 float64 y\n\
00265 float64 z\n\
00266 \n\
00267 ================================================================================\n\
00268 MSG: geometry_msgs/Quaternion\n\
00269 # This represents an orientation in free space in quaternion form.\n\
00270 \n\
00271 float64 x\n\
00272 float64 y\n\
00273 float64 z\n\
00274 float64 w\n\
00275 \n\
00276 ================================================================================\n\
00277 MSG: geometry_msgs/Vector3\n\
00278 # This represents a vector in free space. \n\
00279 \n\
00280 float64 x\n\
00281 float64 y\n\
00282 float64 z\n\
00283 ================================================================================\n\
00284 MSG: std_msgs/ColorRGBA\n\
00285 float32 r\n\
00286 float32 g\n\
00287 float32 b\n\
00288 float32 a\n\
00289 \n\
00290 ";
00291 }
00292
00293 static const char* value(const ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 }
00297 }
00298
00299 namespace ros
00300 {
00301 namespace serialization
00302 {
00303
00304 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> >
00305 {
00306 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00307 {
00308 stream.next(m.model_ids);
00309 }
00310
00311 ROS_DECLARE_ALLINONE_SERIALIZER;
00312 };
00313 }
00314 }
00315
00316
00317 namespace ros
00318 {
00319 namespace serialization
00320 {
00321
00322 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> >
00323 {
00324 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00325 {
00326 stream.next(m.return_response);
00327 stream.next(m.urdf);
00328 }
00329
00330 ROS_DECLARE_ALLINONE_SERIALIZER;
00331 };
00332 }
00333 }
00334
00335 namespace ros
00336 {
00337 namespace service_traits
00338 {
00339 template<>
00340 struct MD5Sum<srs_object_database_msgs::GetUrdf> {
00341 static const char* value()
00342 {
00343 return "26b23ebbbc5d4aaeec0ca91a831f050a";
00344 }
00345
00346 static const char* value(const srs_object_database_msgs::GetUrdf&) { return value(); }
00347 };
00348
00349 template<>
00350 struct DataType<srs_object_database_msgs::GetUrdf> {
00351 static const char* value()
00352 {
00353 return "srs_object_database_msgs/GetUrdf";
00354 }
00355
00356 static const char* value(const srs_object_database_msgs::GetUrdf&) { return value(); }
00357 };
00358
00359 template<class ContainerAllocator>
00360 struct MD5Sum<srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > {
00361 static const char* value()
00362 {
00363 return "26b23ebbbc5d4aaeec0ca91a831f050a";
00364 }
00365
00366 static const char* value(const srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> &) { return value(); }
00367 };
00368
00369 template<class ContainerAllocator>
00370 struct DataType<srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> > {
00371 static const char* value()
00372 {
00373 return "srs_object_database_msgs/GetUrdf";
00374 }
00375
00376 static const char* value(const srs_object_database_msgs::GetUrdfRequest_<ContainerAllocator> &) { return value(); }
00377 };
00378
00379 template<class ContainerAllocator>
00380 struct MD5Sum<srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > {
00381 static const char* value()
00382 {
00383 return "26b23ebbbc5d4aaeec0ca91a831f050a";
00384 }
00385
00386 static const char* value(const srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> &) { return value(); }
00387 };
00388
00389 template<class ContainerAllocator>
00390 struct DataType<srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> > {
00391 static const char* value()
00392 {
00393 return "srs_object_database_msgs/GetUrdf";
00394 }
00395
00396 static const char* value(const srs_object_database_msgs::GetUrdfResponse_<ContainerAllocator> &) { return value(); }
00397 };
00398
00399 }
00400 }
00401
00402 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETURDF_H
00403