$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-velodyne/doc_stacks/2013-03-02_14-09-19.030821/velodyne/velodyne_msgs/msg/VelodyneScan.msg */ 00002 #ifndef VELODYNE_MSGS_MESSAGE_VELODYNESCAN_H 00003 #define VELODYNE_MSGS_MESSAGE_VELODYNESCAN_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 #include "velodyne_msgs/VelodynePacket.h" 00019 00020 namespace velodyne_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct VelodyneScan_ { 00024 typedef VelodyneScan_<ContainerAllocator> Type; 00025 00026 VelodyneScan_() 00027 : header() 00028 , packets() 00029 { 00030 } 00031 00032 VelodyneScan_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , packets(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::other > _packets_type; 00042 std::vector< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::other > packets; 00043 00044 00045 ROS_DEPRECATED uint32_t get_packets_size() const { return (uint32_t)packets.size(); } 00046 ROS_DEPRECATED void set_packets_size(uint32_t size) { packets.resize((size_t)size); } 00047 ROS_DEPRECATED void get_packets_vec(std::vector< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::other > & vec) const { vec = this->packets; } 00048 ROS_DEPRECATED void set_packets_vec(const std::vector< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::other > & vec) { this->packets = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "velodyne_msgs/VelodyneScan"; } 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 "50804fc9533a0e579e6322c04ae70566"; } 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 "# Velodyne LIDAR scan packets.\n\ 00065 \n\ 00066 Header header # standard ROS message header\n\ 00067 VelodynePacket[] packets # vector of raw packets\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: std_msgs/Header\n\ 00071 # Standard metadata for higher-level stamped data types.\n\ 00072 # This is generally used to communicate timestamped data \n\ 00073 # in a particular coordinate frame.\n\ 00074 # \n\ 00075 # sequence ID: consecutively increasing ID \n\ 00076 uint32 seq\n\ 00077 #Two-integer timestamp that is expressed as:\n\ 00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00080 # time-handling sugar is provided by the client library\n\ 00081 time stamp\n\ 00082 #Frame this data is associated with\n\ 00083 # 0: no frame\n\ 00084 # 1: global frame\n\ 00085 string frame_id\n\ 00086 \n\ 00087 ================================================================================\n\ 00088 MSG: velodyne_msgs/VelodynePacket\n\ 00089 # Raw Velodyne LIDAR packet.\n\ 00090 \n\ 00091 time stamp # packet timestamp\n\ 00092 uint8[1206] data # packet contents\n\ 00093 \n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, header); 00105 ros::serialization::serialize(stream, packets); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, header); 00113 ros::serialization::deserialize(stream, packets); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(header); 00121 size += ros::serialization::serializationLength(packets); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct VelodyneScan 00129 typedef ::velodyne_msgs::VelodyneScan_<std::allocator<void> > VelodyneScan; 00130 00131 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan> VelodyneScanPtr; 00132 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan const> VelodyneScanConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace velodyne_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "50804fc9533a0e579e6322c04ae70566"; 00154 } 00155 00156 static const char* value(const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x50804fc9533a0e57ULL; 00158 static const uint64_t static_value2 = 0x9e6322c04ae70566ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "velodyne_msgs/VelodyneScan"; 00166 } 00167 00168 static const char* value(const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "# Velodyne LIDAR scan packets.\n\ 00176 \n\ 00177 Header header # standard ROS message header\n\ 00178 VelodynePacket[] packets # vector of raw packets\n\ 00179 \n\ 00180 ================================================================================\n\ 00181 MSG: std_msgs/Header\n\ 00182 # Standard metadata for higher-level stamped data types.\n\ 00183 # This is generally used to communicate timestamped data \n\ 00184 # in a particular coordinate frame.\n\ 00185 # \n\ 00186 # sequence ID: consecutively increasing ID \n\ 00187 uint32 seq\n\ 00188 #Two-integer timestamp that is expressed as:\n\ 00189 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00190 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00191 # time-handling sugar is provided by the client library\n\ 00192 time stamp\n\ 00193 #Frame this data is associated with\n\ 00194 # 0: no frame\n\ 00195 # 1: global frame\n\ 00196 string frame_id\n\ 00197 \n\ 00198 ================================================================================\n\ 00199 MSG: velodyne_msgs/VelodynePacket\n\ 00200 # Raw Velodyne LIDAR packet.\n\ 00201 \n\ 00202 time stamp # packet timestamp\n\ 00203 uint8[1206] data # packet contents\n\ 00204 \n\ 00205 \n\ 00206 "; 00207 } 00208 00209 static const char* value(const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 00210 }; 00211 00212 template<class ContainerAllocator> struct HasHeader< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {}; 00213 template<class ContainerAllocator> struct HasHeader< const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {}; 00214 } // namespace message_traits 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace serialization 00220 { 00221 00222 template<class ContainerAllocator> struct Serializer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > 00223 { 00224 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00225 { 00226 stream.next(m.header); 00227 stream.next(m.packets); 00228 } 00229 00230 ROS_DECLARE_ALLINONE_SERIALIZER; 00231 }; // struct VelodyneScan_ 00232 } // namespace serialization 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace message_operations 00238 { 00239 00240 template<class ContainerAllocator> 00241 struct Printer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > 00242 { 00243 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> & v) 00244 { 00245 s << indent << "header: "; 00246 s << std::endl; 00247 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00248 s << indent << "packets[]" << std::endl; 00249 for (size_t i = 0; i < v.packets.size(); ++i) 00250 { 00251 s << indent << " packets[" << i << "]: "; 00252 s << std::endl; 00253 s << indent; 00254 Printer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::stream(s, indent + " ", v.packets[i]); 00255 } 00256 } 00257 }; 00258 00259 00260 } // namespace message_operations 00261 } // namespace ros 00262 00263 #endif // VELODYNE_MSGS_MESSAGE_VELODYNESCAN_H 00264