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