$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-octomap_mapping/doc_stacks/2013-03-05_12-03-36.446252/octomap_mapping/octomap_ros/msg/OctomapBinary.msg */ 00002 #ifndef OCTOMAP_ROS_MESSAGE_OCTOMAPBINARY_H 00003 #define OCTOMAP_ROS_MESSAGE_OCTOMAPBINARY_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 #include "std_msgs/Header.h" 00018 00019 namespace octomap_ros 00020 { 00021 template <class ContainerAllocator> 00022 struct OctomapBinary_ { 00023 typedef OctomapBinary_<ContainerAllocator> Type; 00024 00025 OctomapBinary_() 00026 : header() 00027 , data() 00028 { 00029 } 00030 00031 OctomapBinary_(const ContainerAllocator& _alloc) 00032 : header(_alloc) 00033 , data(_alloc) 00034 { 00035 } 00036 00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00038 ::std_msgs::Header_<ContainerAllocator> header; 00039 00040 typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > _data_type; 00041 std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > data; 00042 00043 00044 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00045 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00046 ROS_DEPRECATED void get_data_vec(std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) const { vec = this->data; } 00047 ROS_DEPRECATED void set_data_vec(const std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) { this->data = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "octomap_ros/OctomapBinary"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "76e8caca558be0db7a08d3479289f362"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# A 3D map in binary format, as Octree\n\ 00064 Header header\n\ 00065 int8[] data\n\ 00066 ================================================================================\n\ 00067 MSG: std_msgs/Header\n\ 00068 # Standard metadata for higher-level stamped data types.\n\ 00069 # This is generally used to communicate timestamped data \n\ 00070 # in a particular coordinate frame.\n\ 00071 # \n\ 00072 # sequence ID: consecutively increasing ID \n\ 00073 uint32 seq\n\ 00074 #Two-integer timestamp that is expressed as:\n\ 00075 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00076 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00077 # time-handling sugar is provided by the client library\n\ 00078 time stamp\n\ 00079 #Frame this data is associated with\n\ 00080 # 0: no frame\n\ 00081 # 1: global frame\n\ 00082 string frame_id\n\ 00083 \n\ 00084 "; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00091 { 00092 ros::serialization::OStream stream(write_ptr, 1000000000); 00093 ros::serialization::serialize(stream, header); 00094 ros::serialization::serialize(stream, data); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, header); 00102 ros::serialization::deserialize(stream, data); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint32_t serializationLength() const 00107 { 00108 uint32_t size = 0; 00109 size += ros::serialization::serializationLength(header); 00110 size += ros::serialization::serializationLength(data); 00111 return size; 00112 } 00113 00114 typedef boost::shared_ptr< ::octomap_ros::OctomapBinary_<ContainerAllocator> > Ptr; 00115 typedef boost::shared_ptr< ::octomap_ros::OctomapBinary_<ContainerAllocator> const> ConstPtr; 00116 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00117 }; // struct OctomapBinary 00118 typedef ::octomap_ros::OctomapBinary_<std::allocator<void> > OctomapBinary; 00119 00120 typedef boost::shared_ptr< ::octomap_ros::OctomapBinary> OctomapBinaryPtr; 00121 typedef boost::shared_ptr< ::octomap_ros::OctomapBinary const> OctomapBinaryConstPtr; 00122 00123 00124 template<typename ContainerAllocator> 00125 std::ostream& operator<<(std::ostream& s, const ::octomap_ros::OctomapBinary_<ContainerAllocator> & v) 00126 { 00127 ros::message_operations::Printer< ::octomap_ros::OctomapBinary_<ContainerAllocator> >::stream(s, "", v); 00128 return s;} 00129 00130 } // namespace octomap_ros 00131 00132 namespace ros 00133 { 00134 namespace message_traits 00135 { 00136 template<class ContainerAllocator> struct IsMessage< ::octomap_ros::OctomapBinary_<ContainerAllocator> > : public TrueType {}; 00137 template<class ContainerAllocator> struct IsMessage< ::octomap_ros::OctomapBinary_<ContainerAllocator> const> : public TrueType {}; 00138 template<class ContainerAllocator> 00139 struct MD5Sum< ::octomap_ros::OctomapBinary_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "76e8caca558be0db7a08d3479289f362"; 00143 } 00144 00145 static const char* value(const ::octomap_ros::OctomapBinary_<ContainerAllocator> &) { return value(); } 00146 static const uint64_t static_value1 = 0x76e8caca558be0dbULL; 00147 static const uint64_t static_value2 = 0x7a08d3479289f362ULL; 00148 }; 00149 00150 template<class ContainerAllocator> 00151 struct DataType< ::octomap_ros::OctomapBinary_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "octomap_ros/OctomapBinary"; 00155 } 00156 00157 static const char* value(const ::octomap_ros::OctomapBinary_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct Definition< ::octomap_ros::OctomapBinary_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "# A 3D map in binary format, as Octree\n\ 00165 Header header\n\ 00166 int8[] data\n\ 00167 ================================================================================\n\ 00168 MSG: std_msgs/Header\n\ 00169 # Standard metadata for higher-level stamped data types.\n\ 00170 # This is generally used to communicate timestamped data \n\ 00171 # in a particular coordinate frame.\n\ 00172 # \n\ 00173 # sequence ID: consecutively increasing ID \n\ 00174 uint32 seq\n\ 00175 #Two-integer timestamp that is expressed as:\n\ 00176 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00177 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00178 # time-handling sugar is provided by the client library\n\ 00179 time stamp\n\ 00180 #Frame this data is associated with\n\ 00181 # 0: no frame\n\ 00182 # 1: global frame\n\ 00183 string frame_id\n\ 00184 \n\ 00185 "; 00186 } 00187 00188 static const char* value(const ::octomap_ros::OctomapBinary_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 template<class ContainerAllocator> struct HasHeader< ::octomap_ros::OctomapBinary_<ContainerAllocator> > : public TrueType {}; 00192 template<class ContainerAllocator> struct HasHeader< const ::octomap_ros::OctomapBinary_<ContainerAllocator> > : public TrueType {}; 00193 } // namespace message_traits 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace serialization 00199 { 00200 00201 template<class ContainerAllocator> struct Serializer< ::octomap_ros::OctomapBinary_<ContainerAllocator> > 00202 { 00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00204 { 00205 stream.next(m.header); 00206 stream.next(m.data); 00207 } 00208 00209 ROS_DECLARE_ALLINONE_SERIALIZER; 00210 }; // struct OctomapBinary_ 00211 } // namespace serialization 00212 } // namespace ros 00213 00214 namespace ros 00215 { 00216 namespace message_operations 00217 { 00218 00219 template<class ContainerAllocator> 00220 struct Printer< ::octomap_ros::OctomapBinary_<ContainerAllocator> > 00221 { 00222 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::octomap_ros::OctomapBinary_<ContainerAllocator> & v) 00223 { 00224 s << indent << "header: "; 00225 s << std::endl; 00226 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00227 s << indent << "data[]" << std::endl; 00228 for (size_t i = 0; i < v.data.size(); ++i) 00229 { 00230 s << indent << " data[" << i << "]: "; 00231 Printer<int8_t>::stream(s, indent + " ", v.data[i]); 00232 } 00233 } 00234 }; 00235 00236 00237 } // namespace message_operations 00238 } // namespace ros 00239 00240 #endif // OCTOMAP_ROS_MESSAGE_OCTOMAPBINARY_H 00241