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