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