Go to the documentation of this file.00001
00002 #ifndef MOTLD_MESSAGE_TRACKEDOBJECTS_H
00003 #define MOTLD_MESSAGE_TRACKEDOBJECTS_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/PoseArray.h"
00018
00019 namespace motld
00020 {
00021 template <class ContainerAllocator>
00022 struct TrackedObjects_ {
00023 typedef TrackedObjects_<ContainerAllocator> Type;
00024
00025 TrackedObjects_()
00026 : name()
00027 , status()
00028 , width()
00029 , height()
00030 , pose()
00031 {
00032 }
00033
00034 TrackedObjects_(const ContainerAllocator& _alloc)
00035 : name(_alloc)
00036 , status(_alloc)
00037 , width(_alloc)
00038 , height(_alloc)
00039 , pose(_alloc)
00040 {
00041 }
00042
00043 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _name_type;
00044 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > name;
00045
00046 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _status_type;
00047 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > status;
00048
00049 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _width_type;
00050 std::vector<float, typename ContainerAllocator::template rebind<float>::other > width;
00051
00052 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _height_type;
00053 std::vector<float, typename ContainerAllocator::template rebind<float>::other > height;
00054
00055 typedef ::geometry_msgs::PoseArray_<ContainerAllocator> _pose_type;
00056 ::geometry_msgs::PoseArray_<ContainerAllocator> pose;
00057
00058
00059 typedef boost::shared_ptr< ::motld::TrackedObjects_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::motld::TrackedObjects_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::motld::TrackedObjects_<std::allocator<void> > TrackedObjects;
00064
00065 typedef boost::shared_ptr< ::motld::TrackedObjects> TrackedObjectsPtr;
00066 typedef boost::shared_ptr< ::motld::TrackedObjects const> TrackedObjectsConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::motld::TrackedObjects_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::motld::TrackedObjects_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::motld::TrackedObjects_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::motld::TrackedObjects_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::motld::TrackedObjects_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "9a04c6635894acf6dd033a61bb4bfe64";
00088 }
00089
00090 static const char* value(const ::motld::TrackedObjects_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0x9a04c6635894acf6ULL;
00092 static const uint64_t static_value2 = 0xdd033a61bb4bfe64ULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::motld::TrackedObjects_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "motld/TrackedObjects";
00100 }
00101
00102 static const char* value(const ::motld::TrackedObjects_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::motld::TrackedObjects_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "int32[] name\n\
00110 int32[] status\n\
00111 float32[] width\n\
00112 float32[] height\n\
00113 geometry_msgs/PoseArray pose\n\
00114 ================================================================================\n\
00115 MSG: geometry_msgs/PoseArray\n\
00116 # An array of poses with a header for global reference.\n\
00117 \n\
00118 Header header\n\
00119 \n\
00120 Pose[] poses\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: std_msgs/Header\n\
00124 # Standard metadata for higher-level stamped data types.\n\
00125 # This is generally used to communicate timestamped data \n\
00126 # in a particular coordinate frame.\n\
00127 # \n\
00128 # sequence ID: consecutively increasing ID \n\
00129 uint32 seq\n\
00130 #Two-integer timestamp that is expressed as:\n\
00131 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00132 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00133 # time-handling sugar is provided by the client library\n\
00134 time stamp\n\
00135 #Frame this data is associated with\n\
00136 # 0: no frame\n\
00137 # 1: global frame\n\
00138 string frame_id\n\
00139 \n\
00140 ================================================================================\n\
00141 MSG: geometry_msgs/Pose\n\
00142 # A representation of pose in free space, composed of postion and orientation. \n\
00143 Point position\n\
00144 Quaternion orientation\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: geometry_msgs/Point\n\
00148 # This contains the position of a point in free space\n\
00149 float64 x\n\
00150 float64 y\n\
00151 float64 z\n\
00152 \n\
00153 ================================================================================\n\
00154 MSG: geometry_msgs/Quaternion\n\
00155 # This represents an orientation in free space in quaternion form.\n\
00156 \n\
00157 float64 x\n\
00158 float64 y\n\
00159 float64 z\n\
00160 float64 w\n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::motld::TrackedObjects_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace serialization
00174 {
00175
00176 template<class ContainerAllocator> struct Serializer< ::motld::TrackedObjects_<ContainerAllocator> >
00177 {
00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00179 {
00180 stream.next(m.name);
00181 stream.next(m.status);
00182 stream.next(m.width);
00183 stream.next(m.height);
00184 stream.next(m.pose);
00185 }
00186
00187 ROS_DECLARE_ALLINONE_SERIALIZER;
00188 };
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_operations
00195 {
00196
00197 template<class ContainerAllocator>
00198 struct Printer< ::motld::TrackedObjects_<ContainerAllocator> >
00199 {
00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motld::TrackedObjects_<ContainerAllocator> & v)
00201 {
00202 s << indent << "name[]" << std::endl;
00203 for (size_t i = 0; i < v.name.size(); ++i)
00204 {
00205 s << indent << " name[" << i << "]: ";
00206 Printer<int32_t>::stream(s, indent + " ", v.name[i]);
00207 }
00208 s << indent << "status[]" << std::endl;
00209 for (size_t i = 0; i < v.status.size(); ++i)
00210 {
00211 s << indent << " status[" << i << "]: ";
00212 Printer<int32_t>::stream(s, indent + " ", v.status[i]);
00213 }
00214 s << indent << "width[]" << std::endl;
00215 for (size_t i = 0; i < v.width.size(); ++i)
00216 {
00217 s << indent << " width[" << i << "]: ";
00218 Printer<float>::stream(s, indent + " ", v.width[i]);
00219 }
00220 s << indent << "height[]" << std::endl;
00221 for (size_t i = 0; i < v.height.size(); ++i)
00222 {
00223 s << indent << " height[" << i << "]: ";
00224 Printer<float>::stream(s, indent + " ", v.height[i]);
00225 }
00226 s << indent << "pose: ";
00227 s << std::endl;
00228 Printer< ::geometry_msgs::PoseArray_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00229 }
00230 };
00231
00232
00233 }
00234 }
00235
00236 #endif // MOTLD_MESSAGE_TRACKEDOBJECTS_H
00237