Go to the documentation of this file.00001
00002 #ifndef PR2_CLUTTER_HELPER_SERVICE_GETTFMESSAGE_H
00003 #define PR2_CLUTTER_HELPER_SERVICE_GETTFMESSAGE_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 "tf/tfMessage.h"
00022
00023 namespace pr2_clutter_helper
00024 {
00025 template <class ContainerAllocator>
00026 struct GettfMessageRequest_ {
00027 typedef GettfMessageRequest_<ContainerAllocator> Type;
00028
00029 GettfMessageRequest_()
00030 : topic_name()
00031 , msg_type()
00032 , child_frame_id()
00033 , frame_id()
00034 {
00035 }
00036
00037 GettfMessageRequest_(const ContainerAllocator& _alloc)
00038 : topic_name(_alloc)
00039 , msg_type(_alloc)
00040 , child_frame_id(_alloc)
00041 , frame_id(_alloc)
00042 {
00043 }
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_name_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic_name;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _msg_type_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > msg_type;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _child_frame_id_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > child_frame_id;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id;
00056
00057
00058 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::pr2_clutter_helper::GettfMessageRequest_<std::allocator<void> > GettfMessageRequest;
00063
00064 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageRequest> GettfMessageRequestPtr;
00065 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageRequest const> GettfMessageRequestConstPtr;
00066
00067
00068 template <class ContainerAllocator>
00069 struct GettfMessageResponse_ {
00070 typedef GettfMessageResponse_<ContainerAllocator> Type;
00071
00072 GettfMessageResponse_()
00073 : transform()
00074 {
00075 }
00076
00077 GettfMessageResponse_(const ContainerAllocator& _alloc)
00078 : transform(_alloc)
00079 {
00080 }
00081
00082 typedef ::tf::tfMessage_<ContainerAllocator> _transform_type;
00083 ::tf::tfMessage_<ContainerAllocator> transform;
00084
00085
00086 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> const> ConstPtr;
00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00089 };
00090 typedef ::pr2_clutter_helper::GettfMessageResponse_<std::allocator<void> > GettfMessageResponse;
00091
00092 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageResponse> GettfMessageResponsePtr;
00093 typedef boost::shared_ptr< ::pr2_clutter_helper::GettfMessageResponse const> GettfMessageResponseConstPtr;
00094
00095 struct GettfMessage
00096 {
00097
00098 typedef GettfMessageRequest Request;
00099 typedef GettfMessageResponse Response;
00100 Request request;
00101 Response response;
00102
00103 typedef Request RequestType;
00104 typedef Response ResponseType;
00105 };
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator> struct IsMessage< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > : public TrueType {};
00113 template<class ContainerAllocator> struct IsMessage< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> const> : public TrueType {};
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "1fc3395bd7ef8ea8266cfd8605a3b789";
00119 }
00120
00121 static const char* value(const ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x1fc3395bd7ef8ea8ULL;
00123 static const uint64_t static_value2 = 0x266cfd8605a3b789ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "pr2_clutter_helper/GettfMessageRequest";
00131 }
00132
00133 static const char* value(const ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "\n\
00141 \n\
00142 \n\
00143 string topic_name\n\
00144 string msg_type\n\
00145 string child_frame_id\n\
00146 string frame_id\n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 }
00155 }
00156
00157
00158 namespace ros
00159 {
00160 namespace message_traits
00161 {
00162 template<class ContainerAllocator> struct IsMessage< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > : public TrueType {};
00163 template<class ContainerAllocator> struct IsMessage< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> const> : public TrueType {};
00164 template<class ContainerAllocator>
00165 struct MD5Sum< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "f42aae93f48668afc6805e2a9215f6e1";
00169 }
00170
00171 static const char* value(const ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> &) { return value(); }
00172 static const uint64_t static_value1 = 0xf42aae93f48668afULL;
00173 static const uint64_t static_value2 = 0xc6805e2a9215f6e1ULL;
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct DataType< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "pr2_clutter_helper/GettfMessageResponse";
00181 }
00182
00183 static const char* value(const ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> &) { return value(); }
00184 };
00185
00186 template<class ContainerAllocator>
00187 struct Definition< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "tf/tfMessage transform\n\
00191 \n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: tf/tfMessage\n\
00195 geometry_msgs/TransformStamped[] transforms\n\
00196 \n\
00197 ================================================================================\n\
00198 MSG: geometry_msgs/TransformStamped\n\
00199 # This expresses a transform from coordinate frame header.frame_id\n\
00200 # to the coordinate frame child_frame_id\n\
00201 #\n\
00202 # This message is mostly used by the \n\
00203 # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\
00204 # See it's documentation for more information.\n\
00205 \n\
00206 Header header\n\
00207 string child_frame_id # the frame id of the child frame\n\
00208 Transform transform\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: std_msgs/Header\n\
00212 # Standard metadata for higher-level stamped data types.\n\
00213 # This is generally used to communicate timestamped data \n\
00214 # in a particular coordinate frame.\n\
00215 # \n\
00216 # sequence ID: consecutively increasing ID \n\
00217 uint32 seq\n\
00218 #Two-integer timestamp that is expressed as:\n\
00219 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00220 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00221 # time-handling sugar is provided by the client library\n\
00222 time stamp\n\
00223 #Frame this data is associated with\n\
00224 # 0: no frame\n\
00225 # 1: global frame\n\
00226 string frame_id\n\
00227 \n\
00228 ================================================================================\n\
00229 MSG: geometry_msgs/Transform\n\
00230 # This represents the transform between two coordinate frames in free space.\n\
00231 \n\
00232 Vector3 translation\n\
00233 Quaternion rotation\n\
00234 \n\
00235 ================================================================================\n\
00236 MSG: geometry_msgs/Vector3\n\
00237 # This represents a vector in free space. \n\
00238 \n\
00239 float64 x\n\
00240 float64 y\n\
00241 float64 z\n\
00242 ================================================================================\n\
00243 MSG: geometry_msgs/Quaternion\n\
00244 # This represents an orientation in free space in quaternion form.\n\
00245 \n\
00246 float64 x\n\
00247 float64 y\n\
00248 float64 z\n\
00249 float64 w\n\
00250 \n\
00251 ";
00252 }
00253
00254 static const char* value(const ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> &) { return value(); }
00255 };
00256
00257 }
00258 }
00259
00260 namespace ros
00261 {
00262 namespace serialization
00263 {
00264
00265 template<class ContainerAllocator> struct Serializer< ::pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> >
00266 {
00267 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00268 {
00269 stream.next(m.topic_name);
00270 stream.next(m.msg_type);
00271 stream.next(m.child_frame_id);
00272 stream.next(m.frame_id);
00273 }
00274
00275 ROS_DECLARE_ALLINONE_SERIALIZER;
00276 };
00277 }
00278 }
00279
00280
00281 namespace ros
00282 {
00283 namespace serialization
00284 {
00285
00286 template<class ContainerAllocator> struct Serializer< ::pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> >
00287 {
00288 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00289 {
00290 stream.next(m.transform);
00291 }
00292
00293 ROS_DECLARE_ALLINONE_SERIALIZER;
00294 };
00295 }
00296 }
00297
00298 namespace ros
00299 {
00300 namespace service_traits
00301 {
00302 template<>
00303 struct MD5Sum<pr2_clutter_helper::GettfMessage> {
00304 static const char* value()
00305 {
00306 return "fbad55ff04fc42790d65a78aa6d33310";
00307 }
00308
00309 static const char* value(const pr2_clutter_helper::GettfMessage&) { return value(); }
00310 };
00311
00312 template<>
00313 struct DataType<pr2_clutter_helper::GettfMessage> {
00314 static const char* value()
00315 {
00316 return "pr2_clutter_helper/GettfMessage";
00317 }
00318
00319 static const char* value(const pr2_clutter_helper::GettfMessage&) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct MD5Sum<pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "fbad55ff04fc42790d65a78aa6d33310";
00327 }
00328
00329 static const char* value(const pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct DataType<pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "pr2_clutter_helper/GettfMessage";
00337 }
00338
00339 static const char* value(const pr2_clutter_helper::GettfMessageRequest_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 template<class ContainerAllocator>
00343 struct MD5Sum<pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > {
00344 static const char* value()
00345 {
00346 return "fbad55ff04fc42790d65a78aa6d33310";
00347 }
00348
00349 static const char* value(const pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> &) { return value(); }
00350 };
00351
00352 template<class ContainerAllocator>
00353 struct DataType<pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> > {
00354 static const char* value()
00355 {
00356 return "pr2_clutter_helper/GettfMessage";
00357 }
00358
00359 static const char* value(const pr2_clutter_helper::GettfMessageResponse_<ContainerAllocator> &) { return value(); }
00360 };
00361
00362 }
00363 }
00364
00365 #endif // PR2_CLUTTER_HELPER_SERVICE_GETTFMESSAGE_H
00366