00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_TRANSFORM_H
00003 #define GEOMETRY_MSGS_MESSAGE_TRANSFORM_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/Vector3.h"
00014 #include "geometry_msgs/Quaternion.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct Transform_ : public ros::Message
00020 {
00021 typedef Transform_<ContainerAllocator> Type;
00022
00023 Transform_()
00024 : translation()
00025 , rotation()
00026 {
00027 }
00028
00029 Transform_(const ContainerAllocator& _alloc)
00030 : translation(_alloc)
00031 , rotation(_alloc)
00032 {
00033 }
00034
00035 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _translation_type;
00036 ::geometry_msgs::Vector3_<ContainerAllocator> translation;
00037
00038 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _rotation_type;
00039 ::geometry_msgs::Quaternion_<ContainerAllocator> rotation;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/Transform"; }
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 "ac9eff44abf714214112b05d54a3cf9b"; }
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 "# This represents the transform between two coordinate frames in free space.\n\
00058 \n\
00059 Vector3 translation\n\
00060 Quaternion rotation\n\
00061 \n\
00062 ================================================================================\n\
00063 MSG: geometry_msgs/Vector3\n\
00064 # This represents a vector in free space. \n\
00065 \n\
00066 float64 x\n\
00067 float64 y\n\
00068 float64 z\n\
00069 ================================================================================\n\
00070 MSG: geometry_msgs/Quaternion\n\
00071 # This represents an orientation in free space in quaternion form.\n\
00072 \n\
00073 float64 x\n\
00074 float64 y\n\
00075 float64 z\n\
00076 float64 w\n\
00077 \n\
00078 "; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00081
00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00083
00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00085 {
00086 ros::serialization::OStream stream(write_ptr, 1000000000);
00087 ros::serialization::serialize(stream, translation);
00088 ros::serialization::serialize(stream, rotation);
00089 return stream.getData();
00090 }
00091
00092 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00093 {
00094 ros::serialization::IStream stream(read_ptr, 1000000000);
00095 ros::serialization::deserialize(stream, translation);
00096 ros::serialization::deserialize(stream, rotation);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint32_t serializationLength() const
00101 {
00102 uint32_t size = 0;
00103 size += ros::serialization::serializationLength(translation);
00104 size += ros::serialization::serializationLength(rotation);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::geometry_msgs::Transform_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::geometry_msgs::Transform_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::geometry_msgs::Transform_<std::allocator<void> > Transform;
00112
00113 typedef boost::shared_ptr< ::geometry_msgs::Transform> TransformPtr;
00114 typedef boost::shared_ptr< ::geometry_msgs::Transform const> TransformConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Transform_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::geometry_msgs::Transform_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::geometry_msgs::Transform_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "ac9eff44abf714214112b05d54a3cf9b";
00134 }
00135
00136 static const char* value(const ::geometry_msgs::Transform_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xac9eff44abf71421ULL;
00138 static const uint64_t static_value2 = 0x4112b05d54a3cf9bULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::geometry_msgs::Transform_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "geometry_msgs/Transform";
00146 }
00147
00148 static const char* value(const ::geometry_msgs::Transform_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::geometry_msgs::Transform_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# This represents the transform between two coordinate frames in free space.\n\
00156 \n\
00157 Vector3 translation\n\
00158 Quaternion rotation\n\
00159 \n\
00160 ================================================================================\n\
00161 MSG: geometry_msgs/Vector3\n\
00162 # This represents a vector in free space. \n\
00163 \n\
00164 float64 x\n\
00165 float64 y\n\
00166 float64 z\n\
00167 ================================================================================\n\
00168 MSG: geometry_msgs/Quaternion\n\
00169 # This represents an orientation in free space in quaternion form.\n\
00170 \n\
00171 float64 x\n\
00172 float64 y\n\
00173 float64 z\n\
00174 float64 w\n\
00175 \n\
00176 ";
00177 }
00178
00179 static const char* value(const ::geometry_msgs::Transform_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Transform_<ContainerAllocator> > : public TrueType {};
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace serialization
00189 {
00190
00191 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Transform_<ContainerAllocator> >
00192 {
00193 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00194 {
00195 stream.next(m.translation);
00196 stream.next(m.rotation);
00197 }
00198
00199 ROS_DECLARE_ALLINONE_SERIALIZER;
00200 };
00201 }
00202 }
00203
00204 namespace ros
00205 {
00206 namespace message_operations
00207 {
00208
00209 template<class ContainerAllocator>
00210 struct Printer< ::geometry_msgs::Transform_<ContainerAllocator> >
00211 {
00212 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Transform_<ContainerAllocator> & v)
00213 {
00214 s << indent << "translation: ";
00215 s << std::endl;
00216 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.translation);
00217 s << indent << "rotation: ";
00218 s << std::endl;
00219 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.rotation);
00220 }
00221 };
00222
00223
00224 }
00225 }
00226
00227 #endif // GEOMETRY_MSGS_MESSAGE_TRANSFORM_H
00228