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