00001
00002 #ifndef CHECKERBOARD_DETECTOR2_MESSAGE_OBJECT6DPOSE_H
00003 #define CHECKERBOARD_DETECTOR2_MESSAGE_OBJECT6DPOSE_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 "geometry_msgs/Pose.h"
00014
00015 namespace checkerboard_detector2
00016 {
00017 template <class ContainerAllocator>
00018 struct Object6DPose_ : public ros::Message
00019 {
00020 typedef Object6DPose_<ContainerAllocator> Type;
00021
00022 Object6DPose_()
00023 : pose()
00024 , type()
00025 , id(0)
00026 {
00027 }
00028
00029 Object6DPose_(const ContainerAllocator& _alloc)
00030 : pose(_alloc)
00031 , type(_alloc)
00032 , id(0)
00033 {
00034 }
00035
00036 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
00037 ::geometry_msgs::Pose_<ContainerAllocator> pose;
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00041
00042 typedef uint32_t _id_type;
00043 uint32_t id;
00044
00045
00046 private:
00047 static const char* __s_getDataType_() { return "checkerboard_detector2/Object6DPose"; }
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 "65607b2d0a73b752af8aa84bc03b757c"; }
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 "# 6D pose of object\n\
00062 geometry_msgs/Pose pose\n\
00063 \n\
00064 # type of object, usually contains the filename of the object that allows the receiving side to visualize it\n\
00065 # can also be used as a unique type id\n\
00066 string type \n\
00067 uint32 id\n\
00068 ================================================================================\n\
00069 MSG: geometry_msgs/Pose\n\
00070 # A representation of pose in free space, composed of postion and orientation. \n\
00071 Point position\n\
00072 Quaternion orientation\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: geometry_msgs/Point\n\
00076 # This contains the position of a point in free space\n\
00077 float64 x\n\
00078 float64 y\n\
00079 float64 z\n\
00080 \n\
00081 ================================================================================\n\
00082 MSG: geometry_msgs/Quaternion\n\
00083 # This represents an orientation in free space in quaternion form.\n\
00084 \n\
00085 float64 x\n\
00086 float64 y\n\
00087 float64 z\n\
00088 float64 w\n\
00089 \n\
00090 "; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00097 {
00098 ros::serialization::OStream stream(write_ptr, 1000000000);
00099 ros::serialization::serialize(stream, pose);
00100 ros::serialization::serialize(stream, type);
00101 ros::serialization::serialize(stream, id);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00106 {
00107 ros::serialization::IStream stream(read_ptr, 1000000000);
00108 ros::serialization::deserialize(stream, pose);
00109 ros::serialization::deserialize(stream, type);
00110 ros::serialization::deserialize(stream, id);
00111 return stream.getData();
00112 }
00113
00114 ROS_DEPRECATED virtual uint32_t serializationLength() const
00115 {
00116 uint32_t size = 0;
00117 size += ros::serialization::serializationLength(pose);
00118 size += ros::serialization::serializationLength(type);
00119 size += ros::serialization::serializationLength(id);
00120 return size;
00121 }
00122
00123 typedef boost::shared_ptr< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> > Ptr;
00124 typedef boost::shared_ptr< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> const> ConstPtr;
00125 };
00126 typedef ::checkerboard_detector2::Object6DPose_<std::allocator<void> > Object6DPose;
00127
00128 typedef boost::shared_ptr< ::checkerboard_detector2::Object6DPose> Object6DPosePtr;
00129 typedef boost::shared_ptr< ::checkerboard_detector2::Object6DPose const> Object6DPoseConstPtr;
00130
00131
00132 template<typename ContainerAllocator>
00133 std::ostream& operator<<(std::ostream& s, const ::checkerboard_detector2::Object6DPose_<ContainerAllocator> & v)
00134 {
00135 ros::message_operations::Printer< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> >::stream(s, "", v);
00136 return s;}
00137
00138 }
00139
00140 namespace ros
00141 {
00142 namespace message_traits
00143 {
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "65607b2d0a73b752af8aa84bc03b757c";
00149 }
00150
00151 static const char* value(const ::checkerboard_detector2::Object6DPose_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0x65607b2d0a73b752ULL;
00153 static const uint64_t static_value2 = 0xaf8aa84bc03b757cULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "checkerboard_detector2/Object6DPose";
00161 }
00162
00163 static const char* value(const ::checkerboard_detector2::Object6DPose_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "# 6D pose of object\n\
00171 geometry_msgs/Pose pose\n\
00172 \n\
00173 # type of object, usually contains the filename of the object that allows the receiving side to visualize it\n\
00174 # can also be used as a unique type id\n\
00175 string type \n\
00176 uint32 id\n\
00177 ================================================================================\n\
00178 MSG: geometry_msgs/Pose\n\
00179 # A representation of pose in free space, composed of postion and orientation. \n\
00180 Point position\n\
00181 Quaternion orientation\n\
00182 \n\
00183 ================================================================================\n\
00184 MSG: geometry_msgs/Point\n\
00185 # This contains the position of a point in free space\n\
00186 float64 x\n\
00187 float64 y\n\
00188 float64 z\n\
00189 \n\
00190 ================================================================================\n\
00191 MSG: geometry_msgs/Quaternion\n\
00192 # This represents an orientation in free space in quaternion form.\n\
00193 \n\
00194 float64 x\n\
00195 float64 y\n\
00196 float64 z\n\
00197 float64 w\n\
00198 \n\
00199 ";
00200 }
00201
00202 static const char* value(const ::checkerboard_detector2::Object6DPose_<ContainerAllocator> &) { return value(); }
00203 };
00204
00205 }
00206 }
00207
00208 namespace ros
00209 {
00210 namespace serialization
00211 {
00212
00213 template<class ContainerAllocator> struct Serializer< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> >
00214 {
00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00216 {
00217 stream.next(m.pose);
00218 stream.next(m.type);
00219 stream.next(m.id);
00220 }
00221
00222 ROS_DECLARE_ALLINONE_SERIALIZER;
00223 };
00224 }
00225 }
00226
00227 namespace ros
00228 {
00229 namespace message_operations
00230 {
00231
00232 template<class ContainerAllocator>
00233 struct Printer< ::checkerboard_detector2::Object6DPose_<ContainerAllocator> >
00234 {
00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::checkerboard_detector2::Object6DPose_<ContainerAllocator> & v)
00236 {
00237 s << indent << "pose: ";
00238 s << std::endl;
00239 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00240 s << indent << "type: ";
00241 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00242 s << indent << "id: ";
00243 Printer<uint32_t>::stream(s, indent + " ", v.id);
00244 }
00245 };
00246
00247
00248 }
00249 }
00250
00251 #endif // CHECKERBOARD_DETECTOR2_MESSAGE_OBJECT6DPOSE_H
00252