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