00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_POSEWITHCOVARIANCE_H
00003 #define GEOMETRY_MSGS_MESSAGE_POSEWITHCOVARIANCE_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 "geometry_msgs/Pose.h"
00014
00015 namespace geometry_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PoseWithCovariance_ : public ros::Message
00019 {
00020 typedef PoseWithCovariance_<ContainerAllocator> Type;
00021
00022 PoseWithCovariance_()
00023 : pose()
00024 , covariance()
00025 {
00026 covariance.assign(0.0);
00027 }
00028
00029 PoseWithCovariance_(const ContainerAllocator& _alloc)
00030 : pose(_alloc)
00031 , covariance()
00032 {
00033 covariance.assign(0.0);
00034 }
00035
00036 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
00037 ::geometry_msgs::Pose_<ContainerAllocator> pose;
00038
00039 typedef boost::array<double, 36> _covariance_type;
00040 boost::array<double, 36> covariance;
00041
00042
00043 ROS_DEPRECATED uint32_t get_covariance_size() const { return (uint32_t)covariance.size(); }
00044 private:
00045 static const char* __s_getDataType_() { return "geometry_msgs/PoseWithCovariance"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "c23e848cf1b7533a8d7c259073a97e6f"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getMessageDefinition_() { return "# This represents a pose in free space with uncertainty.\n\
00060 \n\
00061 Pose pose\n\
00062 \n\
00063 # Row-major representation of the 6x6 covariance matrix\n\
00064 # The orientation parameters use a fixed-axis representation.\n\
00065 # In order, the parameters are:\n\
00066 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00067 float64[36] covariance\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: geometry_msgs/Pose\n\
00071 # A representation of pose in free space, composed of postion and orientation. \n\
00072 Point position\n\
00073 Quaternion orientation\n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: geometry_msgs/Point\n\
00077 # This contains the position of a point in free space\n\
00078 float64 x\n\
00079 float64 y\n\
00080 float64 z\n\
00081 \n\
00082 ================================================================================\n\
00083 MSG: geometry_msgs/Quaternion\n\
00084 # This represents an orientation in free space in quaternion form.\n\
00085 \n\
00086 float64 x\n\
00087 float64 y\n\
00088 float64 z\n\
00089 float64 w\n\
00090 \n\
00091 "; }
00092 public:
00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00094
00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00096
00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00098 {
00099 ros::serialization::OStream stream(write_ptr, 1000000000);
00100 ros::serialization::serialize(stream, pose);
00101 ros::serialization::serialize(stream, covariance);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00106 {
00107 ros::serialization::IStream stream(read_ptr, 1000000000);
00108 ros::serialization::deserialize(stream, pose);
00109 ros::serialization::deserialize(stream, covariance);
00110 return stream.getData();
00111 }
00112
00113 ROS_DEPRECATED virtual uint32_t serializationLength() const
00114 {
00115 uint32_t size = 0;
00116 size += ros::serialization::serializationLength(pose);
00117 size += ros::serialization::serializationLength(covariance);
00118 return size;
00119 }
00120
00121 typedef boost::shared_ptr< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> > Ptr;
00122 typedef boost::shared_ptr< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> const> ConstPtr;
00123 };
00124 typedef ::geometry_msgs::PoseWithCovariance_<std::allocator<void> > PoseWithCovariance;
00125
00126 typedef boost::shared_ptr< ::geometry_msgs::PoseWithCovariance> PoseWithCovariancePtr;
00127 typedef boost::shared_ptr< ::geometry_msgs::PoseWithCovariance const> PoseWithCovarianceConstPtr;
00128
00129
00130 template<typename ContainerAllocator>
00131 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> & v)
00132 {
00133 ros::message_operations::Printer< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> >::stream(s, "", v);
00134 return s;}
00135
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator>
00143 struct MD5Sum< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "c23e848cf1b7533a8d7c259073a97e6f";
00147 }
00148
00149 static const char* value(const ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> &) { return value(); }
00150 static const uint64_t static_value1 = 0xc23e848cf1b7533aULL;
00151 static const uint64_t static_value2 = 0x8d7c259073a97e6fULL;
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct DataType< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "geometry_msgs/PoseWithCovariance";
00159 }
00160
00161 static const char* value(const ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> &) { return value(); }
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct Definition< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "# This represents a pose in free space with uncertainty.\n\
00169 \n\
00170 Pose pose\n\
00171 \n\
00172 # Row-major representation of the 6x6 covariance matrix\n\
00173 # The orientation parameters use a fixed-axis representation.\n\
00174 # In order, the parameters are:\n\
00175 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00176 float64[36] covariance\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: geometry_msgs/Pose\n\
00180 # A representation of pose in free space, composed of postion and orientation. \n\
00181 Point position\n\
00182 Quaternion orientation\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: geometry_msgs/Point\n\
00186 # This contains the position of a point in free space\n\
00187 float64 x\n\
00188 float64 y\n\
00189 float64 z\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: geometry_msgs/Quaternion\n\
00193 # This represents an orientation in free space in quaternion form.\n\
00194 \n\
00195 float64 x\n\
00196 float64 y\n\
00197 float64 z\n\
00198 float64 w\n\
00199 \n\
00200 ";
00201 }
00202
00203 static const char* value(const ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> &) { return value(); }
00204 };
00205
00206 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> > : public TrueType {};
00207 }
00208 }
00209
00210 namespace ros
00211 {
00212 namespace serialization
00213 {
00214
00215 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> >
00216 {
00217 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00218 {
00219 stream.next(m.pose);
00220 stream.next(m.covariance);
00221 }
00222
00223 ROS_DECLARE_ALLINONE_SERIALIZER;
00224 };
00225 }
00226 }
00227
00228 namespace ros
00229 {
00230 namespace message_operations
00231 {
00232
00233 template<class ContainerAllocator>
00234 struct Printer< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> >
00235 {
00236 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> & v)
00237 {
00238 s << indent << "pose: ";
00239 s << std::endl;
00240 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00241 s << indent << "covariance[]" << std::endl;
00242 for (size_t i = 0; i < v.covariance.size(); ++i)
00243 {
00244 s << indent << " covariance[" << i << "]: ";
00245 Printer<double>::stream(s, indent + " ", v.covariance[i]);
00246 }
00247 }
00248 };
00249
00250
00251 }
00252 }
00253
00254 #endif // GEOMETRY_MSGS_MESSAGE_POSEWITHCOVARIANCE_H
00255