$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/VelodynePacket.msg */ 00002 #ifndef VELODYNE_MSGS_MESSAGE_VELODYNEPACKET_H 00003 #define VELODYNE_MSGS_MESSAGE_VELODYNEPACKET_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 velodyne_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct VelodynePacket_ { 00022 typedef VelodynePacket_<ContainerAllocator> Type; 00023 00024 VelodynePacket_() 00025 : stamp() 00026 , data() 00027 { 00028 data.assign(0); 00029 } 00030 00031 VelodynePacket_(const ContainerAllocator& _alloc) 00032 : stamp() 00033 , data() 00034 { 00035 data.assign(0); 00036 } 00037 00038 typedef ros::Time _stamp_type; 00039 ros::Time stamp; 00040 00041 typedef boost::array<uint8_t, 1206> _data_type; 00042 boost::array<uint8_t, 1206> data; 00043 00044 00045 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00046 private: 00047 static const char* __s_getDataType_() { return "velodyne_msgs/VelodynePacket"; } 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 "ae4f90a23256f44e82baa08dd45c3456"; } 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 "# Raw Velodyne LIDAR packet.\n\ 00062 \n\ 00063 time stamp # packet timestamp\n\ 00064 uint8[1206] data # packet contents\n\ 00065 \n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, stamp); 00077 ros::serialization::serialize(stream, data); 00078 return stream.getData(); 00079 } 00080 00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00082 { 00083 ros::serialization::IStream stream(read_ptr, 1000000000); 00084 ros::serialization::deserialize(stream, stamp); 00085 ros::serialization::deserialize(stream, data); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint32_t serializationLength() const 00090 { 00091 uint32_t size = 0; 00092 size += ros::serialization::serializationLength(stamp); 00093 size += ros::serialization::serializationLength(data); 00094 return size; 00095 } 00096 00097 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > Ptr; 00098 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> const> ConstPtr; 00099 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00100 }; // struct VelodynePacket 00101 typedef ::velodyne_msgs::VelodynePacket_<std::allocator<void> > VelodynePacket; 00102 00103 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket> VelodynePacketPtr; 00104 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket const> VelodynePacketConstPtr; 00105 00106 00107 template<typename ContainerAllocator> 00108 std::ostream& operator<<(std::ostream& s, const ::velodyne_msgs::VelodynePacket_<ContainerAllocator> & v) 00109 { 00110 ros::message_operations::Printer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::stream(s, "", v); 00111 return s;} 00112 00113 } // namespace velodyne_msgs 00114 00115 namespace ros 00116 { 00117 namespace message_traits 00118 { 00119 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > : public TrueType {}; 00120 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> const> : public TrueType {}; 00121 template<class ContainerAllocator> 00122 struct MD5Sum< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > { 00123 static const char* value() 00124 { 00125 return "ae4f90a23256f44e82baa08dd45c3456"; 00126 } 00127 00128 static const char* value(const ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 00129 static const uint64_t static_value1 = 0xae4f90a23256f44eULL; 00130 static const uint64_t static_value2 = 0x82baa08dd45c3456ULL; 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct DataType< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "velodyne_msgs/VelodynePacket"; 00138 } 00139 00140 static const char* value(const ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct Definition< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "# Raw Velodyne LIDAR packet.\n\ 00148 \n\ 00149 time stamp # packet timestamp\n\ 00150 uint8[1206] data # packet contents\n\ 00151 \n\ 00152 \n\ 00153 "; 00154 } 00155 00156 static const char* value(const ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> struct IsFixedSize< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > : public TrueType {}; 00160 } // namespace message_traits 00161 } // namespace ros 00162 00163 namespace ros 00164 { 00165 namespace serialization 00166 { 00167 00168 template<class ContainerAllocator> struct Serializer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > 00169 { 00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00171 { 00172 stream.next(m.stamp); 00173 stream.next(m.data); 00174 } 00175 00176 ROS_DECLARE_ALLINONE_SERIALIZER; 00177 }; // struct VelodynePacket_ 00178 } // namespace serialization 00179 } // namespace ros 00180 00181 namespace ros 00182 { 00183 namespace message_operations 00184 { 00185 00186 template<class ContainerAllocator> 00187 struct Printer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > 00188 { 00189 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::velodyne_msgs::VelodynePacket_<ContainerAllocator> & v) 00190 { 00191 s << indent << "stamp: "; 00192 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00193 s << indent << "data[]" << std::endl; 00194 for (size_t i = 0; i < v.data.size(); ++i) 00195 { 00196 s << indent << " data[" << i << "]: "; 00197 Printer<uint8_t>::stream(s, indent + " ", v.data[i]); 00198 } 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // VELODYNE_MSGS_MESSAGE_VELODYNEPACKET_H 00207