00001
00002 #ifndef TF2_MSGS_MESSAGE_LOOKUPTRANSFORMRESULT_H
00003 #define TF2_MSGS_MESSAGE_LOOKUPTRANSFORMRESULT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "geometry_msgs/TransformStamped.h"
00014 #include "tf2_msgs/TF2Error.h"
00015
00016 namespace tf2_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct LookupTransformResult_ : public ros::Message
00020 {
00021 typedef LookupTransformResult_<ContainerAllocator> Type;
00022
00023 LookupTransformResult_()
00024 : transform()
00025 , error()
00026 {
00027 }
00028
00029 LookupTransformResult_(const ContainerAllocator& _alloc)
00030 : transform(_alloc)
00031 , error(_alloc)
00032 {
00033 }
00034
00035 typedef ::geometry_msgs::TransformStamped_<ContainerAllocator> _transform_type;
00036 ::geometry_msgs::TransformStamped_<ContainerAllocator> transform;
00037
00038 typedef ::tf2_msgs::TF2Error_<ContainerAllocator> _error_type;
00039 ::tf2_msgs::TF2Error_<ContainerAllocator> error;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "tf2_msgs/LookupTransformResult"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "3fe5db6a19ca9cfb675418c5ad875c36"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00058 geometry_msgs/TransformStamped transform\n\
00059 tf2_msgs/TF2Error error\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: geometry_msgs/TransformStamped\n\
00063 # This expresses a transform from coordinate frame header.frame_id\n\
00064 # to the coordinate frame child_frame_id\n\
00065 #\n\
00066 # This message is mostly used by the \n\
00067 # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\
00068 # See it's documentation for more information.\n\
00069 \n\
00070 Header header\n\
00071 string child_frame_id # the frame id of the child frame\n\
00072 Transform transform\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: std_msgs/Header\n\
00076 # Standard metadata for higher-level stamped data types.\n\
00077 # This is generally used to communicate timestamped data \n\
00078 # in a particular coordinate frame.\n\
00079 # \n\
00080 # sequence ID: consecutively increasing ID \n\
00081 uint32 seq\n\
00082 #Two-integer timestamp that is expressed as:\n\
00083 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00084 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00085 # time-handling sugar is provided by the client library\n\
00086 time stamp\n\
00087 #Frame this data is associated with\n\
00088 # 0: no frame\n\
00089 # 1: global frame\n\
00090 string frame_id\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: geometry_msgs/Transform\n\
00094 # This represents the transform between two coordinate frames in free space.\n\
00095 \n\
00096 Vector3 translation\n\
00097 Quaternion rotation\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: geometry_msgs/Vector3\n\
00101 # This represents a vector in free space. \n\
00102 \n\
00103 float64 x\n\
00104 float64 y\n\
00105 float64 z\n\
00106 ================================================================================\n\
00107 MSG: geometry_msgs/Quaternion\n\
00108 # This represents an orientation in free space in quaternion form.\n\
00109 \n\
00110 float64 x\n\
00111 float64 y\n\
00112 float64 z\n\
00113 float64 w\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: tf2_msgs/TF2Error\n\
00117 uint8 NO_ERROR = 0\n\
00118 uint8 LOOKUP_ERROR = 1\n\
00119 uint8 CONNECTIVITY_ERROR = 2\n\
00120 uint8 EXTRAPOLATION_ERROR = 3\n\
00121 uint8 INVALID_ARGUMENT_ERROR = 4\n\
00122 uint8 TIMEOUT_ERROR = 5\n\
00123 uint8 TRANSFORM_ERROR = 6\n\
00124 \n\
00125 uint8 error\n\
00126 string error_string\n\
00127 \n\
00128 "; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00131
00132 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00133
00134 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00135 {
00136 ros::serialization::OStream stream(write_ptr, 1000000000);
00137 ros::serialization::serialize(stream, transform);
00138 ros::serialization::serialize(stream, error);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00143 {
00144 ros::serialization::IStream stream(read_ptr, 1000000000);
00145 ros::serialization::deserialize(stream, transform);
00146 ros::serialization::deserialize(stream, error);
00147 return stream.getData();
00148 }
00149
00150 ROS_DEPRECATED virtual uint32_t serializationLength() const
00151 {
00152 uint32_t size = 0;
00153 size += ros::serialization::serializationLength(transform);
00154 size += ros::serialization::serializationLength(error);
00155 return size;
00156 }
00157
00158 typedef boost::shared_ptr< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> > Ptr;
00159 typedef boost::shared_ptr< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> const> ConstPtr;
00160 };
00161 typedef ::tf2_msgs::LookupTransformResult_<std::allocator<void> > LookupTransformResult;
00162
00163 typedef boost::shared_ptr< ::tf2_msgs::LookupTransformResult> LookupTransformResultPtr;
00164 typedef boost::shared_ptr< ::tf2_msgs::LookupTransformResult const> LookupTransformResultConstPtr;
00165
00166
00167 template<typename ContainerAllocator>
00168 std::ostream& operator<<(std::ostream& s, const ::tf2_msgs::LookupTransformResult_<ContainerAllocator> & v)
00169 {
00170 ros::message_operations::Printer< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> >::stream(s, "", v);
00171 return s;}
00172
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_traits
00178 {
00179 template<class ContainerAllocator>
00180 struct MD5Sum< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> > {
00181 static const char* value()
00182 {
00183 return "3fe5db6a19ca9cfb675418c5ad875c36";
00184 }
00185
00186 static const char* value(const ::tf2_msgs::LookupTransformResult_<ContainerAllocator> &) { return value(); }
00187 static const uint64_t static_value1 = 0x3fe5db6a19ca9cfbULL;
00188 static const uint64_t static_value2 = 0x675418c5ad875c36ULL;
00189 };
00190
00191 template<class ContainerAllocator>
00192 struct DataType< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> > {
00193 static const char* value()
00194 {
00195 return "tf2_msgs/LookupTransformResult";
00196 }
00197
00198 static const char* value(const ::tf2_msgs::LookupTransformResult_<ContainerAllocator> &) { return value(); }
00199 };
00200
00201 template<class ContainerAllocator>
00202 struct Definition< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> > {
00203 static const char* value()
00204 {
00205 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00206 geometry_msgs/TransformStamped transform\n\
00207 tf2_msgs/TF2Error error\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: geometry_msgs/TransformStamped\n\
00211 # This expresses a transform from coordinate frame header.frame_id\n\
00212 # to the coordinate frame child_frame_id\n\
00213 #\n\
00214 # This message is mostly used by the \n\
00215 # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\
00216 # See it's documentation for more information.\n\
00217 \n\
00218 Header header\n\
00219 string child_frame_id # the frame id of the child frame\n\
00220 Transform transform\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: std_msgs/Header\n\
00224 # Standard metadata for higher-level stamped data types.\n\
00225 # This is generally used to communicate timestamped data \n\
00226 # in a particular coordinate frame.\n\
00227 # \n\
00228 # sequence ID: consecutively increasing ID \n\
00229 uint32 seq\n\
00230 #Two-integer timestamp that is expressed as:\n\
00231 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00232 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00233 # time-handling sugar is provided by the client library\n\
00234 time stamp\n\
00235 #Frame this data is associated with\n\
00236 # 0: no frame\n\
00237 # 1: global frame\n\
00238 string frame_id\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: geometry_msgs/Transform\n\
00242 # This represents the transform between two coordinate frames in free space.\n\
00243 \n\
00244 Vector3 translation\n\
00245 Quaternion rotation\n\
00246 \n\
00247 ================================================================================\n\
00248 MSG: geometry_msgs/Vector3\n\
00249 # This represents a vector in free space. \n\
00250 \n\
00251 float64 x\n\
00252 float64 y\n\
00253 float64 z\n\
00254 ================================================================================\n\
00255 MSG: geometry_msgs/Quaternion\n\
00256 # This represents an orientation in free space in quaternion form.\n\
00257 \n\
00258 float64 x\n\
00259 float64 y\n\
00260 float64 z\n\
00261 float64 w\n\
00262 \n\
00263 ================================================================================\n\
00264 MSG: tf2_msgs/TF2Error\n\
00265 uint8 NO_ERROR = 0\n\
00266 uint8 LOOKUP_ERROR = 1\n\
00267 uint8 CONNECTIVITY_ERROR = 2\n\
00268 uint8 EXTRAPOLATION_ERROR = 3\n\
00269 uint8 INVALID_ARGUMENT_ERROR = 4\n\
00270 uint8 TIMEOUT_ERROR = 5\n\
00271 uint8 TRANSFORM_ERROR = 6\n\
00272 \n\
00273 uint8 error\n\
00274 string error_string\n\
00275 \n\
00276 ";
00277 }
00278
00279 static const char* value(const ::tf2_msgs::LookupTransformResult_<ContainerAllocator> &) { return value(); }
00280 };
00281
00282 }
00283 }
00284
00285 namespace ros
00286 {
00287 namespace serialization
00288 {
00289
00290 template<class ContainerAllocator> struct Serializer< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> >
00291 {
00292 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00293 {
00294 stream.next(m.transform);
00295 stream.next(m.error);
00296 }
00297
00298 ROS_DECLARE_ALLINONE_SERIALIZER;
00299 };
00300 }
00301 }
00302
00303 namespace ros
00304 {
00305 namespace message_operations
00306 {
00307
00308 template<class ContainerAllocator>
00309 struct Printer< ::tf2_msgs::LookupTransformResult_<ContainerAllocator> >
00310 {
00311 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tf2_msgs::LookupTransformResult_<ContainerAllocator> & v)
00312 {
00313 s << indent << "transform: ";
00314 s << std::endl;
00315 Printer< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::stream(s, indent + " ", v.transform);
00316 s << indent << "error: ";
00317 s << std::endl;
00318 Printer< ::tf2_msgs::TF2Error_<ContainerAllocator> >::stream(s, indent + " ", v.error);
00319 }
00320 };
00321
00322
00323 }
00324 }
00325
00326 #endif // TF2_MSGS_MESSAGE_LOOKUPTRANSFORMRESULT_H
00327