Go to the documentation of this file.00001
00002 #ifndef IRI_PERCEPTION_MSGS_MESSAGE_DETECTION_H
00003 #define IRI_PERCEPTION_MSGS_MESSAGE_DETECTION_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "geometry_msgs/Point.h"
00018 #include "geometry_msgs/Point.h"
00019
00020 namespace iri_perception_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct detection_ {
00024 typedef detection_<ContainerAllocator> Type;
00025
00026 detection_()
00027 : position()
00028 , velocity()
00029 , covariances()
00030 , id(0)
00031 , probability(0.0)
00032 {
00033 covariances.assign(0.0);
00034 }
00035
00036 detection_(const ContainerAllocator& _alloc)
00037 : position(_alloc)
00038 , velocity(_alloc)
00039 , covariances()
00040 , id(0)
00041 , probability(0.0)
00042 {
00043 covariances.assign(0.0);
00044 }
00045
00046 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type;
00047 ::geometry_msgs::Point_<ContainerAllocator> position;
00048
00049 typedef ::geometry_msgs::Point_<ContainerAllocator> _velocity_type;
00050 ::geometry_msgs::Point_<ContainerAllocator> velocity;
00051
00052 typedef boost::array<float, 36> _covariances_type;
00053 boost::array<float, 36> covariances;
00054
00055 typedef int32_t _id_type;
00056 int32_t id;
00057
00058 typedef float _probability_type;
00059 float probability;
00060
00061
00062 typedef boost::shared_ptr< ::iri_perception_msgs::detection_<ContainerAllocator> > Ptr;
00063 typedef boost::shared_ptr< ::iri_perception_msgs::detection_<ContainerAllocator> const> ConstPtr;
00064 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00065 };
00066 typedef ::iri_perception_msgs::detection_<std::allocator<void> > detection;
00067
00068 typedef boost::shared_ptr< ::iri_perception_msgs::detection> detectionPtr;
00069 typedef boost::shared_ptr< ::iri_perception_msgs::detection const> detectionConstPtr;
00070
00071
00072 template<typename ContainerAllocator>
00073 std::ostream& operator<<(std::ostream& s, const ::iri_perception_msgs::detection_<ContainerAllocator> & v)
00074 {
00075 ros::message_operations::Printer< ::iri_perception_msgs::detection_<ContainerAllocator> >::stream(s, "", v);
00076 return s;}
00077
00078 }
00079
00080 namespace ros
00081 {
00082 namespace message_traits
00083 {
00084 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::detection_<ContainerAllocator> > : public TrueType {};
00085 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::detection_<ContainerAllocator> const> : public TrueType {};
00086 template<class ContainerAllocator>
00087 struct MD5Sum< ::iri_perception_msgs::detection_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "4c99ac73fd86f80cae8aed3c8660456c";
00091 }
00092
00093 static const char* value(const ::iri_perception_msgs::detection_<ContainerAllocator> &) { return value(); }
00094 static const uint64_t static_value1 = 0x4c99ac73fd86f80cULL;
00095 static const uint64_t static_value2 = 0xae8aed3c8660456cULL;
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct DataType< ::iri_perception_msgs::detection_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "iri_perception_msgs/detection";
00103 }
00104
00105 static const char* value(const ::iri_perception_msgs::detection_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator>
00109 struct Definition< ::iri_perception_msgs::detection_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "geometry_msgs/Point position\n\
00113 geometry_msgs/Point velocity\n\
00114 float32[36] covariances\n\
00115 int32 id\n\
00116 float32 probability\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: geometry_msgs/Point\n\
00120 # This contains the position of a point in free space\n\
00121 float64 x\n\
00122 float64 y\n\
00123 float64 z\n\
00124 \n\
00125 ";
00126 }
00127
00128 static const char* value(const ::iri_perception_msgs::detection_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator> struct IsFixedSize< ::iri_perception_msgs::detection_<ContainerAllocator> > : public TrueType {};
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace serialization
00138 {
00139
00140 template<class ContainerAllocator> struct Serializer< ::iri_perception_msgs::detection_<ContainerAllocator> >
00141 {
00142 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00143 {
00144 stream.next(m.position);
00145 stream.next(m.velocity);
00146 stream.next(m.covariances);
00147 stream.next(m.id);
00148 stream.next(m.probability);
00149 }
00150
00151 ROS_DECLARE_ALLINONE_SERIALIZER;
00152 };
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160
00161 template<class ContainerAllocator>
00162 struct Printer< ::iri_perception_msgs::detection_<ContainerAllocator> >
00163 {
00164 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::iri_perception_msgs::detection_<ContainerAllocator> & v)
00165 {
00166 s << indent << "position: ";
00167 s << std::endl;
00168 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00169 s << indent << "velocity: ";
00170 s << std::endl;
00171 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.velocity);
00172 s << indent << "covariances[]" << std::endl;
00173 for (size_t i = 0; i < v.covariances.size(); ++i)
00174 {
00175 s << indent << " covariances[" << i << "]: ";
00176 Printer<float>::stream(s, indent + " ", v.covariances[i]);
00177 }
00178 s << indent << "id: ";
00179 Printer<int32_t>::stream(s, indent + " ", v.id);
00180 s << indent << "probability: ";
00181 Printer<float>::stream(s, indent + " ", v.probability);
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // IRI_PERCEPTION_MSGS_MESSAGE_DETECTION_H
00190