$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_object_perception/doc_stacks/2013-03-01_14-45-40.878742/cob_object_perception/cob_object_detection_msgs/msg/PoseRT.msg */ 00002 #ifndef COB_OBJECT_DETECTION_MSGS_MESSAGE_POSERT_H 00003 #define COB_OBJECT_DETECTION_MSGS_MESSAGE_POSERT_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 00018 namespace cob_object_detection_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct PoseRT_ { 00022 typedef PoseRT_<ContainerAllocator> Type; 00023 00024 PoseRT_() 00025 : rvec() 00026 , tvec() 00027 { 00028 rvec.assign(0.0); 00029 tvec.assign(0.0); 00030 } 00031 00032 PoseRT_(const ContainerAllocator& _alloc) 00033 : rvec() 00034 , tvec() 00035 { 00036 rvec.assign(0.0); 00037 tvec.assign(0.0); 00038 } 00039 00040 typedef boost::array<double, 3> _rvec_type; 00041 boost::array<double, 3> rvec; 00042 00043 typedef boost::array<double, 3> _tvec_type; 00044 boost::array<double, 3> tvec; 00045 00046 00047 ROS_DEPRECATED uint32_t get_rvec_size() const { return (uint32_t)rvec.size(); } 00048 ROS_DEPRECATED uint32_t get_tvec_size() const { return (uint32_t)tvec.size(); } 00049 private: 00050 static const char* __s_getDataType_() { return "cob_object_detection_msgs/PoseRT"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "d6802a5a6d10cce0b5eea91c5defc39f"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "#3x1 rotation vector, Rodrigues axis angle form,\n\ 00065 #angle = norm(rvec) -- radians\n\ 00066 #axis = rvec/norm(rvec) -- unit length\n\ 00067 float64[3] rvec\n\ 00068 #3x1 translation vector, in meters\n\ 00069 float64[3] tvec\n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, rvec); 00080 ros::serialization::serialize(stream, tvec); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, rvec); 00088 ros::serialization::deserialize(stream, tvec); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(rvec); 00096 size += ros::serialization::serializationLength(tvec); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct PoseRT 00104 typedef ::cob_object_detection_msgs::PoseRT_<std::allocator<void> > PoseRT; 00105 00106 typedef boost::shared_ptr< ::cob_object_detection_msgs::PoseRT> PoseRTPtr; 00107 typedef boost::shared_ptr< ::cob_object_detection_msgs::PoseRT const> PoseRTConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace cob_object_detection_msgs 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "d6802a5a6d10cce0b5eea91c5defc39f"; 00129 } 00130 00131 static const char* value(const ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0xd6802a5a6d10cce0ULL; 00133 static const uint64_t static_value2 = 0xb5eea91c5defc39fULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "cob_object_detection_msgs/PoseRT"; 00141 } 00142 00143 static const char* value(const ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "#3x1 rotation vector, Rodrigues axis angle form,\n\ 00151 #angle = norm(rvec) -- radians\n\ 00152 #axis = rvec/norm(rvec) -- unit length\n\ 00153 float64[3] rvec\n\ 00154 #3x1 translation vector, in meters\n\ 00155 float64[3] tvec\n\ 00156 "; 00157 } 00158 00159 static const char* value(const ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 template<class ContainerAllocator> struct IsFixedSize< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > : public TrueType {}; 00163 } // namespace message_traits 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace serialization 00169 { 00170 00171 template<class ContainerAllocator> struct Serializer< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > 00172 { 00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00174 { 00175 stream.next(m.rvec); 00176 stream.next(m.tvec); 00177 } 00178 00179 ROS_DECLARE_ALLINONE_SERIALIZER; 00180 }; // struct PoseRT_ 00181 } // namespace serialization 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace message_operations 00187 { 00188 00189 template<class ContainerAllocator> 00190 struct Printer< ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> > 00191 { 00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_object_detection_msgs::PoseRT_<ContainerAllocator> & v) 00193 { 00194 s << indent << "rvec[]" << std::endl; 00195 for (size_t i = 0; i < v.rvec.size(); ++i) 00196 { 00197 s << indent << " rvec[" << i << "]: "; 00198 Printer<double>::stream(s, indent + " ", v.rvec[i]); 00199 } 00200 s << indent << "tvec[]" << std::endl; 00201 for (size_t i = 0; i < v.tvec.size(); ++i) 00202 { 00203 s << indent << " tvec[" << i << "]: "; 00204 Printer<double>::stream(s, indent + " ", v.tvec[i]); 00205 } 00206 } 00207 }; 00208 00209 00210 } // namespace message_operations 00211 } // namespace ros 00212 00213 #endif // COB_OBJECT_DETECTION_MSGS_MESSAGE_POSERT_H 00214