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