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