00001
00002 #ifndef PEOPLE_MSGS_MESSAGE_POSITIONMEASUREMENT_H
00003 #define PEOPLE_MSGS_MESSAGE_POSITIONMEASUREMENT_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/Point.h"
00015
00016 namespace people_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct PositionMeasurement_ : public ros::Message
00020 {
00021 typedef PositionMeasurement_<ContainerAllocator> Type;
00022
00023 PositionMeasurement_()
00024 : header()
00025 , name()
00026 , object_id()
00027 , pos()
00028 , reliability(0.0)
00029 , covariance()
00030 , initialization(0)
00031 {
00032 covariance.assign(0.0);
00033 }
00034
00035 PositionMeasurement_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , name(_alloc)
00038 , object_id(_alloc)
00039 , pos(_alloc)
00040 , reliability(0.0)
00041 , covariance()
00042 , initialization(0)
00043 {
00044 covariance.assign(0.0);
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id;
00055
00056 typedef ::geometry_msgs::Point_<ContainerAllocator> _pos_type;
00057 ::geometry_msgs::Point_<ContainerAllocator> pos;
00058
00059 typedef double _reliability_type;
00060 double reliability;
00061
00062 typedef boost::array<double, 9> _covariance_type;
00063 boost::array<double, 9> covariance;
00064
00065 typedef int8_t _initialization_type;
00066 int8_t initialization;
00067
00068
00069 ROS_DEPRECATED uint32_t get_covariance_size() const { return (uint32_t)covariance.size(); }
00070 private:
00071 static const char* __s_getDataType_() { return "people_msgs/PositionMeasurement"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00074
00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00076
00077 private:
00078 static const char* __s_getMD5Sum_() { return "54fa938b4ec28728e01575b79eb0ec7c"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00081
00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00083
00084 private:
00085 static const char* __s_getMessageDefinition_() { return "Header header\n\
00086 string name\n\
00087 string object_id\n\
00088 geometry_msgs/Point pos\n\
00089 float64 reliability\n\
00090 float64[9] covariance\n\
00091 byte initialization\n\
00092 ================================================================================\n\
00093 MSG: std_msgs/Header\n\
00094 # Standard metadata for higher-level stamped data types.\n\
00095 # This is generally used to communicate timestamped data \n\
00096 # in a particular coordinate frame.\n\
00097 # \n\
00098 # sequence ID: consecutively increasing ID \n\
00099 uint32 seq\n\
00100 #Two-integer timestamp that is expressed as:\n\
00101 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00102 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00103 # time-handling sugar is provided by the client library\n\
00104 time stamp\n\
00105 #Frame this data is associated with\n\
00106 # 0: no frame\n\
00107 # 1: global frame\n\
00108 string frame_id\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geometry_msgs/Point\n\
00112 # This contains the position of a point in free space\n\
00113 float64 x\n\
00114 float64 y\n\
00115 float64 z\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, name);
00128 ros::serialization::serialize(stream, object_id);
00129 ros::serialization::serialize(stream, pos);
00130 ros::serialization::serialize(stream, reliability);
00131 ros::serialization::serialize(stream, covariance);
00132 ros::serialization::serialize(stream, initialization);
00133 return stream.getData();
00134 }
00135
00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00137 {
00138 ros::serialization::IStream stream(read_ptr, 1000000000);
00139 ros::serialization::deserialize(stream, header);
00140 ros::serialization::deserialize(stream, name);
00141 ros::serialization::deserialize(stream, object_id);
00142 ros::serialization::deserialize(stream, pos);
00143 ros::serialization::deserialize(stream, reliability);
00144 ros::serialization::deserialize(stream, covariance);
00145 ros::serialization::deserialize(stream, initialization);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint32_t serializationLength() const
00150 {
00151 uint32_t size = 0;
00152 size += ros::serialization::serializationLength(header);
00153 size += ros::serialization::serializationLength(name);
00154 size += ros::serialization::serializationLength(object_id);
00155 size += ros::serialization::serializationLength(pos);
00156 size += ros::serialization::serializationLength(reliability);
00157 size += ros::serialization::serializationLength(covariance);
00158 size += ros::serialization::serializationLength(initialization);
00159 return size;
00160 }
00161
00162 typedef boost::shared_ptr< ::people_msgs::PositionMeasurement_<ContainerAllocator> > Ptr;
00163 typedef boost::shared_ptr< ::people_msgs::PositionMeasurement_<ContainerAllocator> const> ConstPtr;
00164 };
00165 typedef ::people_msgs::PositionMeasurement_<std::allocator<void> > PositionMeasurement;
00166
00167 typedef boost::shared_ptr< ::people_msgs::PositionMeasurement> PositionMeasurementPtr;
00168 typedef boost::shared_ptr< ::people_msgs::PositionMeasurement const> PositionMeasurementConstPtr;
00169
00170
00171 template<typename ContainerAllocator>
00172 std::ostream& operator<<(std::ostream& s, const ::people_msgs::PositionMeasurement_<ContainerAllocator> & v)
00173 {
00174 ros::message_operations::Printer< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::stream(s, "", v);
00175 return s;}
00176
00177 }
00178
00179 namespace ros
00180 {
00181 namespace message_traits
00182 {
00183 template<class ContainerAllocator>
00184 struct MD5Sum< ::people_msgs::PositionMeasurement_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "54fa938b4ec28728e01575b79eb0ec7c";
00188 }
00189
00190 static const char* value(const ::people_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); }
00191 static const uint64_t static_value1 = 0x54fa938b4ec28728ULL;
00192 static const uint64_t static_value2 = 0xe01575b79eb0ec7cULL;
00193 };
00194
00195 template<class ContainerAllocator>
00196 struct DataType< ::people_msgs::PositionMeasurement_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "people_msgs/PositionMeasurement";
00200 }
00201
00202 static const char* value(const ::people_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); }
00203 };
00204
00205 template<class ContainerAllocator>
00206 struct Definition< ::people_msgs::PositionMeasurement_<ContainerAllocator> > {
00207 static const char* value()
00208 {
00209 return "Header header\n\
00210 string name\n\
00211 string object_id\n\
00212 geometry_msgs/Point pos\n\
00213 float64 reliability\n\
00214 float64[9] covariance\n\
00215 byte initialization\n\
00216 ================================================================================\n\
00217 MSG: std_msgs/Header\n\
00218 # Standard metadata for higher-level stamped data types.\n\
00219 # This is generally used to communicate timestamped data \n\
00220 # in a particular coordinate frame.\n\
00221 # \n\
00222 # sequence ID: consecutively increasing ID \n\
00223 uint32 seq\n\
00224 #Two-integer timestamp that is expressed as:\n\
00225 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00226 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00227 # time-handling sugar is provided by the client library\n\
00228 time stamp\n\
00229 #Frame this data is associated with\n\
00230 # 0: no frame\n\
00231 # 1: global frame\n\
00232 string frame_id\n\
00233 \n\
00234 ================================================================================\n\
00235 MSG: geometry_msgs/Point\n\
00236 # This contains the position of a point in free space\n\
00237 float64 x\n\
00238 float64 y\n\
00239 float64 z\n\
00240 \n\
00241 ";
00242 }
00243
00244 static const char* value(const ::people_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); }
00245 };
00246
00247 template<class ContainerAllocator> struct HasHeader< ::people_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {};
00248 template<class ContainerAllocator> struct HasHeader< const ::people_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {};
00249 }
00250 }
00251
00252 namespace ros
00253 {
00254 namespace serialization
00255 {
00256
00257 template<class ContainerAllocator> struct Serializer< ::people_msgs::PositionMeasurement_<ContainerAllocator> >
00258 {
00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00260 {
00261 stream.next(m.header);
00262 stream.next(m.name);
00263 stream.next(m.object_id);
00264 stream.next(m.pos);
00265 stream.next(m.reliability);
00266 stream.next(m.covariance);
00267 stream.next(m.initialization);
00268 }
00269
00270 ROS_DECLARE_ALLINONE_SERIALIZER;
00271 };
00272 }
00273 }
00274
00275 namespace ros
00276 {
00277 namespace message_operations
00278 {
00279
00280 template<class ContainerAllocator>
00281 struct Printer< ::people_msgs::PositionMeasurement_<ContainerAllocator> >
00282 {
00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::people_msgs::PositionMeasurement_<ContainerAllocator> & v)
00284 {
00285 s << indent << "header: ";
00286 s << std::endl;
00287 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00288 s << indent << "name: ";
00289 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00290 s << indent << "object_id: ";
00291 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_id);
00292 s << indent << "pos: ";
00293 s << std::endl;
00294 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.pos);
00295 s << indent << "reliability: ";
00296 Printer<double>::stream(s, indent + " ", v.reliability);
00297 s << indent << "covariance[]" << std::endl;
00298 for (size_t i = 0; i < v.covariance.size(); ++i)
00299 {
00300 s << indent << " covariance[" << i << "]: ";
00301 Printer<double>::stream(s, indent + " ", v.covariance[i]);
00302 }
00303 s << indent << "initialization: ";
00304 Printer<int8_t>::stream(s, indent + " ", v.initialization);
00305 }
00306 };
00307
00308
00309 }
00310 }
00311
00312 #endif // PEOPLE_MSGS_MESSAGE_POSITIONMEASUREMENT_H
00313