$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-geometry/doc_stacks/2013-03-05_11-55-52.748755/geometry/tf/msg/tfMessage.msg */ 00002 #ifndef TF_MESSAGE_TFMESSAGE_H 00003 #define TF_MESSAGE_TFMESSAGE_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/TransformStamped.h" 00018 00019 namespace tf 00020 { 00021 template <class ContainerAllocator> 00022 struct tfMessage_ { 00023 typedef tfMessage_<ContainerAllocator> Type; 00024 00025 tfMessage_() 00026 : transforms() 00027 { 00028 } 00029 00030 tfMessage_(const ContainerAllocator& _alloc) 00031 : transforms(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > _transforms_type; 00036 std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > transforms; 00037 00038 00039 ROS_DEPRECATED uint32_t get_transforms_size() const { return (uint32_t)transforms.size(); } 00040 ROS_DEPRECATED void set_transforms_size(uint32_t size) { transforms.resize((size_t)size); } 00041 ROS_DEPRECATED void get_transforms_vec(std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > & vec) const { vec = this->transforms; } 00042 ROS_DEPRECATED void set_transforms_vec(const std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > & vec) { this->transforms = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "tf/tfMessage"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "94810edda583a504dfda3829e70d7eec"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "geometry_msgs/TransformStamped[] transforms\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: geometry_msgs/TransformStamped\n\ 00062 # 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, transforms); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00128 { 00129 ros::serialization::IStream stream(read_ptr, 1000000000); 00130 ros::serialization::deserialize(stream, transforms); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(transforms); 00138 return size; 00139 } 00140 00141 typedef boost::shared_ptr< ::tf::tfMessage_<ContainerAllocator> > Ptr; 00142 typedef boost::shared_ptr< ::tf::tfMessage_<ContainerAllocator> const> ConstPtr; 00143 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00144 }; // struct tfMessage 00145 typedef ::tf::tfMessage_<std::allocator<void> > tfMessage; 00146 00147 typedef boost::shared_ptr< ::tf::tfMessage> tfMessagePtr; 00148 typedef boost::shared_ptr< ::tf::tfMessage const> tfMessageConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::tf::tfMessage_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::tf::tfMessage_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace tf 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> struct IsMessage< ::tf::tfMessage_<ContainerAllocator> > : public TrueType {}; 00164 template<class ContainerAllocator> struct IsMessage< ::tf::tfMessage_<ContainerAllocator> const> : public TrueType {}; 00165 template<class ContainerAllocator> 00166 struct MD5Sum< ::tf::tfMessage_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "94810edda583a504dfda3829e70d7eec"; 00170 } 00171 00172 static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } 00173 static const uint64_t static_value1 = 0x94810edda583a504ULL; 00174 static const uint64_t static_value2 = 0xdfda3829e70d7eecULL; 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct DataType< ::tf::tfMessage_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "tf/tfMessage"; 00182 } 00183 00184 static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct Definition< ::tf::tfMessage_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "geometry_msgs/TransformStamped[] transforms\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: geometry_msgs/TransformStamped\n\ 00195 # This expresses a transform from coordinate frame header.frame_id\n\ 00196 # to the coordinate frame child_frame_id\n\ 00197 #\n\ 00198 # This message is mostly used by the \n\ 00199 # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\ 00200 # See it's documentation for more information.\n\ 00201 \n\ 00202 Header header\n\ 00203 string child_frame_id # the frame id of the child frame\n\ 00204 Transform transform\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: std_msgs/Header\n\ 00208 # Standard metadata for higher-level stamped data types.\n\ 00209 # This is generally used to communicate timestamped data \n\ 00210 # in a particular coordinate frame.\n\ 00211 # \n\ 00212 # sequence ID: consecutively increasing ID \n\ 00213 uint32 seq\n\ 00214 #Two-integer timestamp that is expressed as:\n\ 00215 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00216 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00217 # time-handling sugar is provided by the client library\n\ 00218 time stamp\n\ 00219 #Frame this data is associated with\n\ 00220 # 0: no frame\n\ 00221 # 1: global frame\n\ 00222 string frame_id\n\ 00223 \n\ 00224 ================================================================================\n\ 00225 MSG: geometry_msgs/Transform\n\ 00226 # This represents the transform between two coordinate frames in free space.\n\ 00227 \n\ 00228 Vector3 translation\n\ 00229 Quaternion rotation\n\ 00230 \n\ 00231 ================================================================================\n\ 00232 MSG: geometry_msgs/Vector3\n\ 00233 # This represents a vector in free space. \n\ 00234 \n\ 00235 float64 x\n\ 00236 float64 y\n\ 00237 float64 z\n\ 00238 ================================================================================\n\ 00239 MSG: geometry_msgs/Quaternion\n\ 00240 # This represents an orientation in free space in quaternion form.\n\ 00241 \n\ 00242 float64 x\n\ 00243 float64 y\n\ 00244 float64 z\n\ 00245 float64 w\n\ 00246 \n\ 00247 "; 00248 } 00249 00250 static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } 00251 }; 00252 00253 } // namespace message_traits 00254 } // namespace ros 00255 00256 namespace ros 00257 { 00258 namespace serialization 00259 { 00260 00261 template<class ContainerAllocator> struct Serializer< ::tf::tfMessage_<ContainerAllocator> > 00262 { 00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00264 { 00265 stream.next(m.transforms); 00266 } 00267 00268 ROS_DECLARE_ALLINONE_SERIALIZER; 00269 }; // struct tfMessage_ 00270 } // namespace serialization 00271 } // namespace ros 00272 00273 namespace ros 00274 { 00275 namespace message_operations 00276 { 00277 00278 template<class ContainerAllocator> 00279 struct Printer< ::tf::tfMessage_<ContainerAllocator> > 00280 { 00281 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tf::tfMessage_<ContainerAllocator> & v) 00282 { 00283 s << indent << "transforms[]" << std::endl; 00284 for (size_t i = 0; i < v.transforms.size(); ++i) 00285 { 00286 s << indent << " transforms[" << i << "]: "; 00287 s << std::endl; 00288 s << indent; 00289 Printer< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::stream(s, indent + " ", v.transforms[i]); 00290 } 00291 } 00292 }; 00293 00294 00295 } // namespace message_operations 00296 } // namespace ros 00297 00298 #endif // TF_MESSAGE_TFMESSAGE_H 00299