$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/PoseStamped.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H 00003 #define GEOMETRY_MSGS_MESSAGE_POSESTAMPED_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 "std_msgs/Header.h" 00018 #include "geometry_msgs/Pose.h" 00019 00020 namespace geometry_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PoseStamped_ { 00024 typedef PoseStamped_<ContainerAllocator> Type; 00025 00026 PoseStamped_() 00027 : header() 00028 , pose() 00029 { 00030 } 00031 00032 PoseStamped_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , pose(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00042 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "geometry_msgs/PoseStamped"; } 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 "d3812c3cbc69362b77dc0b19b345f8f5"; } 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 "# A Pose with reference coordinate frame and timestamp\n\ 00061 Header header\n\ 00062 Pose pose\n\ 00063 \n\ 00064 ================================================================================\n\ 00065 MSG: std_msgs/Header\n\ 00066 # Standard metadata for higher-level stamped data types.\n\ 00067 # This is generally used to communicate timestamped data \n\ 00068 # in a particular coordinate frame.\n\ 00069 # \n\ 00070 # sequence ID: consecutively increasing ID \n\ 00071 uint32 seq\n\ 00072 #Two-integer timestamp that is expressed as:\n\ 00073 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00074 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00075 # time-handling sugar is provided by the client library\n\ 00076 time stamp\n\ 00077 #Frame this data is associated with\n\ 00078 # 0: no frame\n\ 00079 # 1: global frame\n\ 00080 string frame_id\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: geometry_msgs/Pose\n\ 00084 # A representation of pose in free space, composed of postion and orientation. \n\ 00085 Point position\n\ 00086 Quaternion orientation\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: geometry_msgs/Point\n\ 00090 # This contains the position of a point in free space\n\ 00091 float64 x\n\ 00092 float64 y\n\ 00093 float64 z\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: geometry_msgs/Quaternion\n\ 00097 # This represents an orientation in free space in quaternion form.\n\ 00098 \n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 float64 w\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, header); 00114 ros::serialization::serialize(stream, pose); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00119 { 00120 ros::serialization::IStream stream(read_ptr, 1000000000); 00121 ros::serialization::deserialize(stream, header); 00122 ros::serialization::deserialize(stream, pose); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(header); 00130 size += ros::serialization::serializationLength(pose); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct PoseStamped 00138 typedef ::geometry_msgs::PoseStamped_<std::allocator<void> > PoseStamped; 00139 00140 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped> PoseStampedPtr; 00141 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped const> PoseStampedConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::PoseStamped_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace geometry_msgs 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::PoseStamped_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::PoseStamped_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::geometry_msgs::PoseStamped_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "d3812c3cbc69362b77dc0b19b345f8f5"; 00163 } 00164 00165 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0xd3812c3cbc69362bULL; 00167 static const uint64_t static_value2 = 0x77dc0b19b345f8f5ULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::geometry_msgs::PoseStamped_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "geometry_msgs/PoseStamped"; 00175 } 00176 00177 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::geometry_msgs::PoseStamped_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "# A Pose with reference coordinate frame and timestamp\n\ 00185 Header header\n\ 00186 Pose pose\n\ 00187 \n\ 00188 ================================================================================\n\ 00189 MSG: std_msgs/Header\n\ 00190 # Standard metadata for higher-level stamped data types.\n\ 00191 # This is generally used to communicate timestamped data \n\ 00192 # in a particular coordinate frame.\n\ 00193 # \n\ 00194 # sequence ID: consecutively increasing ID \n\ 00195 uint32 seq\n\ 00196 #Two-integer timestamp that is expressed as:\n\ 00197 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00198 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00199 # time-handling sugar is provided by the client library\n\ 00200 time stamp\n\ 00201 #Frame this data is associated with\n\ 00202 # 0: no frame\n\ 00203 # 1: global frame\n\ 00204 string frame_id\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: geometry_msgs/Pose\n\ 00208 # A representation of pose in free space, composed of postion and orientation. \n\ 00209 Point position\n\ 00210 Quaternion orientation\n\ 00211 \n\ 00212 ================================================================================\n\ 00213 MSG: geometry_msgs/Point\n\ 00214 # This contains the position of a point in free space\n\ 00215 float64 x\n\ 00216 float64 y\n\ 00217 float64 z\n\ 00218 \n\ 00219 ================================================================================\n\ 00220 MSG: geometry_msgs/Quaternion\n\ 00221 # This represents an orientation in free space in quaternion form.\n\ 00222 \n\ 00223 float64 x\n\ 00224 float64 y\n\ 00225 float64 z\n\ 00226 float64 w\n\ 00227 \n\ 00228 "; 00229 } 00230 00231 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::PoseStamped_<ContainerAllocator> > : public TrueType {}; 00235 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::PoseStamped_<ContainerAllocator> > : public TrueType {}; 00236 } // namespace message_traits 00237 } // namespace ros 00238 00239 namespace ros 00240 { 00241 namespace serialization 00242 { 00243 00244 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::PoseStamped_<ContainerAllocator> > 00245 { 00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00247 { 00248 stream.next(m.header); 00249 stream.next(m.pose); 00250 } 00251 00252 ROS_DECLARE_ALLINONE_SERIALIZER; 00253 }; // struct PoseStamped_ 00254 } // namespace serialization 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace message_operations 00260 { 00261 00262 template<class ContainerAllocator> 00263 struct Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> > 00264 { 00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::PoseStamped_<ContainerAllocator> & v) 00266 { 00267 s << indent << "header: "; 00268 s << std::endl; 00269 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00270 s << indent << "pose: "; 00271 s << std::endl; 00272 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00273 } 00274 }; 00275 00276 00277 } // namespace message_operations 00278 } // namespace ros 00279 00280 #endif // GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H 00281