$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/vision_msgs/msg/partial_lo.msg */ 00002 #ifndef VISION_MSGS_MESSAGE_PARTIAL_LO_H 00003 #define VISION_MSGS_MESSAGE_PARTIAL_LO_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 vision_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct partial_lo_ { 00022 typedef partial_lo_<ContainerAllocator> Type; 00023 00024 partial_lo_() 00025 : id(0) 00026 , name() 00027 , parent_id(0) 00028 , pose() 00029 , cov() 00030 , type(0) 00031 { 00032 pose.assign(0.0); 00033 cov.assign(0.0); 00034 } 00035 00036 partial_lo_(const ContainerAllocator& _alloc) 00037 : id(0) 00038 , name(_alloc) 00039 , parent_id(0) 00040 , pose() 00041 , cov() 00042 , type(0) 00043 { 00044 pose.assign(0.0); 00045 cov.assign(0.0); 00046 } 00047 00048 typedef uint64_t _id_type; 00049 uint64_t id; 00050 00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00053 00054 typedef uint64_t _parent_id_type; 00055 uint64_t parent_id; 00056 00057 typedef boost::array<double, 16> _pose_type; 00058 boost::array<double, 16> pose; 00059 00060 typedef boost::array<double, 36> _cov_type; 00061 boost::array<double, 36> cov; 00062 00063 typedef uint16_t _type_type; 00064 uint16_t type; 00065 00066 00067 ROS_DEPRECATED uint32_t get_pose_size() const { return (uint32_t)pose.size(); } 00068 ROS_DEPRECATED uint32_t get_cov_size() const { return (uint32_t)cov.size(); } 00069 private: 00070 static const char* __s_getDataType_() { return "vision_msgs/partial_lo"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00073 00074 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00075 00076 private: 00077 static const char* __s_getMD5Sum_() { return "9a220ff1483742865ee698cfec57218c"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00080 00081 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00082 00083 private: 00084 static const char* __s_getMessageDefinition_() { return "# Message to quiey the lo-service, U. Klank klank@in.tum.de\n\ 00085 uint64 id #id of a frame, there should be unique mapping from a tf-name-string to such an id\n\ 00086 string name #optional parameter name representing a tf and knowledgebase correspondence\n\ 00087 uint64 parent_id #id of parent frame\n\ 00088 float64[16] pose #pose matrix, fully projective 4x4 matrix\n\ 00089 float64[36] cov #covariance for 6 dof (xyz, rpy)\n\ 00090 uint16 type #fixed connection with the parent (1) or free in space (0 = default)\n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, id); 00102 ros::serialization::serialize(stream, name); 00103 ros::serialization::serialize(stream, parent_id); 00104 ros::serialization::serialize(stream, pose); 00105 ros::serialization::serialize(stream, cov); 00106 ros::serialization::serialize(stream, type); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00111 { 00112 ros::serialization::IStream stream(read_ptr, 1000000000); 00113 ros::serialization::deserialize(stream, id); 00114 ros::serialization::deserialize(stream, name); 00115 ros::serialization::deserialize(stream, parent_id); 00116 ros::serialization::deserialize(stream, pose); 00117 ros::serialization::deserialize(stream, cov); 00118 ros::serialization::deserialize(stream, type); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint32_t serializationLength() const 00123 { 00124 uint32_t size = 0; 00125 size += ros::serialization::serializationLength(id); 00126 size += ros::serialization::serializationLength(name); 00127 size += ros::serialization::serializationLength(parent_id); 00128 size += ros::serialization::serializationLength(pose); 00129 size += ros::serialization::serializationLength(cov); 00130 size += ros::serialization::serializationLength(type); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::vision_msgs::partial_lo_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::vision_msgs::partial_lo_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct partial_lo 00138 typedef ::vision_msgs::partial_lo_<std::allocator<void> > partial_lo; 00139 00140 typedef boost::shared_ptr< ::vision_msgs::partial_lo> partial_loPtr; 00141 typedef boost::shared_ptr< ::vision_msgs::partial_lo const> partial_loConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::partial_lo_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::vision_msgs::partial_lo_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace vision_msgs 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::partial_lo_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::partial_lo_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::vision_msgs::partial_lo_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "9a220ff1483742865ee698cfec57218c"; 00163 } 00164 00165 static const char* value(const ::vision_msgs::partial_lo_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0x9a220ff148374286ULL; 00167 static const uint64_t static_value2 = 0x5ee698cfec57218cULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::vision_msgs::partial_lo_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "vision_msgs/partial_lo"; 00175 } 00176 00177 static const char* value(const ::vision_msgs::partial_lo_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::vision_msgs::partial_lo_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "# Message to quiey the lo-service, U. Klank klank@in.tum.de\n\ 00185 uint64 id #id of a frame, there should be unique mapping from a tf-name-string to such an id\n\ 00186 string name #optional parameter name representing a tf and knowledgebase correspondence\n\ 00187 uint64 parent_id #id of parent frame\n\ 00188 float64[16] pose #pose matrix, fully projective 4x4 matrix\n\ 00189 float64[36] cov #covariance for 6 dof (xyz, rpy)\n\ 00190 uint16 type #fixed connection with the parent (1) or free in space (0 = default)\n\ 00191 \n\ 00192 "; 00193 } 00194 00195 static const char* value(const ::vision_msgs::partial_lo_<ContainerAllocator> &) { return value(); } 00196 }; 00197 00198 } // namespace message_traits 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace serialization 00204 { 00205 00206 template<class ContainerAllocator> struct Serializer< ::vision_msgs::partial_lo_<ContainerAllocator> > 00207 { 00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00209 { 00210 stream.next(m.id); 00211 stream.next(m.name); 00212 stream.next(m.parent_id); 00213 stream.next(m.pose); 00214 stream.next(m.cov); 00215 stream.next(m.type); 00216 } 00217 00218 ROS_DECLARE_ALLINONE_SERIALIZER; 00219 }; // struct partial_lo_ 00220 } // namespace serialization 00221 } // namespace ros 00222 00223 namespace ros 00224 { 00225 namespace message_operations 00226 { 00227 00228 template<class ContainerAllocator> 00229 struct Printer< ::vision_msgs::partial_lo_<ContainerAllocator> > 00230 { 00231 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::partial_lo_<ContainerAllocator> & v) 00232 { 00233 s << indent << "id: "; 00234 Printer<uint64_t>::stream(s, indent + " ", v.id); 00235 s << indent << "name: "; 00236 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00237 s << indent << "parent_id: "; 00238 Printer<uint64_t>::stream(s, indent + " ", v.parent_id); 00239 s << indent << "pose[]" << std::endl; 00240 for (size_t i = 0; i < v.pose.size(); ++i) 00241 { 00242 s << indent << " pose[" << i << "]: "; 00243 Printer<double>::stream(s, indent + " ", v.pose[i]); 00244 } 00245 s << indent << "cov[]" << std::endl; 00246 for (size_t i = 0; i < v.cov.size(); ++i) 00247 { 00248 s << indent << " cov[" << i << "]: "; 00249 Printer<double>::stream(s, indent + " ", v.cov[i]); 00250 } 00251 s << indent << "type: "; 00252 Printer<uint16_t>::stream(s, indent + " ", v.type); 00253 } 00254 }; 00255 00256 00257 } // namespace message_operations 00258 } // namespace ros 00259 00260 #endif // VISION_MSGS_MESSAGE_PARTIAL_LO_H 00261