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