00001
00002 #ifndef GRAPH_MAPPING_MSGS_MESSAGE_POSEWITHPRECISION_H
00003 #define GRAPH_MAPPING_MSGS_MESSAGE_POSEWITHPRECISION_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 graph_mapping_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PoseWithPrecision_ : public ros::Message
00019 {
00020 typedef PoseWithPrecision_<ContainerAllocator> Type;
00021
00022 PoseWithPrecision_()
00023 : pose()
00024 , precision()
00025 {
00026 precision.assign(0.0);
00027 }
00028
00029 PoseWithPrecision_(const ContainerAllocator& _alloc)
00030 : pose(_alloc)
00031 , precision()
00032 {
00033 precision.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> _precision_type;
00040 boost::array<double, 36> precision;
00041
00042
00043 ROS_DEPRECATED uint32_t get_precision_size() const { return (uint32_t)precision.size(); }
00044 private:
00045 static const char* __s_getDataType_() { return "graph_mapping_msgs/PoseWithPrecision"; }
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 "9b1119d91c2e24bb52bff672469f18d5"; }
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 "geometry_msgs/Pose pose\n\
00060 float64[36] precision\n\
00061 ================================================================================\n\
00062 MSG: geometry_msgs/Pose\n\
00063 # A representation of pose in free space, composed of postion and orientation. \n\
00064 Point position\n\
00065 Quaternion orientation\n\
00066 \n\
00067 ================================================================================\n\
00068 MSG: geometry_msgs/Point\n\
00069 # This contains the position of a point in free space\n\
00070 float64 x\n\
00071 float64 y\n\
00072 float64 z\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: geometry_msgs/Quaternion\n\
00076 # This represents an orientation in free space in quaternion form.\n\
00077 \n\
00078 float64 x\n\
00079 float64 y\n\
00080 float64 z\n\
00081 float64 w\n\
00082 \n\
00083 "; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00090 {
00091 ros::serialization::OStream stream(write_ptr, 1000000000);
00092 ros::serialization::serialize(stream, pose);
00093 ros::serialization::serialize(stream, precision);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00098 {
00099 ros::serialization::IStream stream(read_ptr, 1000000000);
00100 ros::serialization::deserialize(stream, pose);
00101 ros::serialization::deserialize(stream, precision);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint32_t serializationLength() const
00106 {
00107 uint32_t size = 0;
00108 size += ros::serialization::serializationLength(pose);
00109 size += ros::serialization::serializationLength(precision);
00110 return size;
00111 }
00112
00113 typedef boost::shared_ptr< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> > Ptr;
00114 typedef boost::shared_ptr< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> const> ConstPtr;
00115 };
00116 typedef ::graph_mapping_msgs::PoseWithPrecision_<std::allocator<void> > PoseWithPrecision;
00117
00118 typedef boost::shared_ptr< ::graph_mapping_msgs::PoseWithPrecision> PoseWithPrecisionPtr;
00119 typedef boost::shared_ptr< ::graph_mapping_msgs::PoseWithPrecision const> PoseWithPrecisionConstPtr;
00120
00121
00122 template<typename ContainerAllocator>
00123 std::ostream& operator<<(std::ostream& s, const ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> & v)
00124 {
00125 ros::message_operations::Printer< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> >::stream(s, "", v);
00126 return s;}
00127
00128 }
00129
00130 namespace ros
00131 {
00132 namespace message_traits
00133 {
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "9b1119d91c2e24bb52bff672469f18d5";
00139 }
00140
00141 static const char* value(const ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0x9b1119d91c2e24bbULL;
00143 static const uint64_t static_value2 = 0x52bff672469f18d5ULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "graph_mapping_msgs/PoseWithPrecision";
00151 }
00152
00153 static const char* value(const ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "geometry_msgs/Pose pose\n\
00161 float64[36] precision\n\
00162 ================================================================================\n\
00163 MSG: geometry_msgs/Pose\n\
00164 # A representation of pose in free space, composed of postion and orientation. \n\
00165 Point position\n\
00166 Quaternion orientation\n\
00167 \n\
00168 ================================================================================\n\
00169 MSG: geometry_msgs/Point\n\
00170 # This contains the position of a point in free space\n\
00171 float64 x\n\
00172 float64 y\n\
00173 float64 z\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: geometry_msgs/Quaternion\n\
00177 # This represents an orientation in free space in quaternion form.\n\
00178 \n\
00179 float64 x\n\
00180 float64 y\n\
00181 float64 z\n\
00182 float64 w\n\
00183 \n\
00184 ";
00185 }
00186
00187 static const char* value(const ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 template<class ContainerAllocator> struct IsFixedSize< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> > : public TrueType {};
00191 }
00192 }
00193
00194 namespace ros
00195 {
00196 namespace serialization
00197 {
00198
00199 template<class ContainerAllocator> struct Serializer< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> >
00200 {
00201 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00202 {
00203 stream.next(m.pose);
00204 stream.next(m.precision);
00205 }
00206
00207 ROS_DECLARE_ALLINONE_SERIALIZER;
00208 };
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_operations
00215 {
00216
00217 template<class ContainerAllocator>
00218 struct Printer< ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> >
00219 {
00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::graph_mapping_msgs::PoseWithPrecision_<ContainerAllocator> & v)
00221 {
00222 s << indent << "pose: ";
00223 s << std::endl;
00224 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00225 s << indent << "precision[]" << std::endl;
00226 for (size_t i = 0; i < v.precision.size(); ++i)
00227 {
00228 s << indent << " precision[" << i << "]: ";
00229 Printer<double>::stream(s, indent + " ", v.precision[i]);
00230 }
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // GRAPH_MAPPING_MSGS_MESSAGE_POSEWITHPRECISION_H
00239