VelodyneScan.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-velodyne/doc_stacks/2014-10-06_08-33-36.400356/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   typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct VelodyneScan
00049 typedef  ::velodyne_msgs::VelodyneScan_<std::allocator<void> > VelodyneScan;
00050 
00051 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan> VelodyneScanPtr;
00052 typedef boost::shared_ptr< ::velodyne_msgs::VelodyneScan const> VelodyneScanConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::velodyne_msgs::VelodyneScan_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace velodyne_msgs
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodyneScan_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "50804fc9533a0e579e6322c04ae70566";
00074   }
00075 
00076   static const char* value(const  ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0x50804fc9533a0e57ULL;
00078   static const uint64_t static_value2 = 0x9e6322c04ae70566ULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "velodyne_msgs/VelodyneScan";
00086   }
00087 
00088   static const char* value(const  ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "# Velodyne LIDAR scan packets.\n\
00096 \n\
00097 Header           header         # standard ROS message header\n\
00098 VelodynePacket[] packets        # vector of raw packets\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: std_msgs/Header\n\
00102 # Standard metadata for higher-level stamped data types.\n\
00103 # This is generally used to communicate timestamped data \n\
00104 # in a particular coordinate frame.\n\
00105 # \n\
00106 # sequence ID: consecutively increasing ID \n\
00107 uint32 seq\n\
00108 #Two-integer timestamp that is expressed as:\n\
00109 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00110 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00111 # time-handling sugar is provided by the client library\n\
00112 time stamp\n\
00113 #Frame this data is associated with\n\
00114 # 0: no frame\n\
00115 # 1: global frame\n\
00116 string frame_id\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: velodyne_msgs/VelodynePacket\n\
00120 # Raw Velodyne LIDAR packet.\n\
00121 \n\
00122 time stamp              # packet timestamp\n\
00123 uint8[1206] data        # packet contents\n\
00124 \n\
00125 \n\
00126 ";
00127   }
00128 
00129   static const char* value(const  ::velodyne_msgs::VelodyneScan_<ContainerAllocator> &) { return value(); } 
00130 };
00131 
00132 template<class ContainerAllocator> struct HasHeader< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {};
00133 template<class ContainerAllocator> struct HasHeader< const ::velodyne_msgs::VelodyneScan_<ContainerAllocator> > : public TrueType {};
00134 } // namespace message_traits
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141 
00142 template<class ContainerAllocator> struct Serializer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> >
00143 {
00144   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145   {
00146     stream.next(m.header);
00147     stream.next(m.packets);
00148   }
00149 
00150   ROS_DECLARE_ALLINONE_SERIALIZER;
00151 }; // struct VelodyneScan_
00152 } // namespace serialization
00153 } // namespace ros
00154 
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159 
00160 template<class ContainerAllocator>
00161 struct Printer< ::velodyne_msgs::VelodyneScan_<ContainerAllocator> >
00162 {
00163   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::velodyne_msgs::VelodyneScan_<ContainerAllocator> & v) 
00164   {
00165     s << indent << "header: ";
00166 s << std::endl;
00167     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00168     s << indent << "packets[]" << std::endl;
00169     for (size_t i = 0; i < v.packets.size(); ++i)
00170     {
00171       s << indent << "  packets[" << i << "]: ";
00172       s << std::endl;
00173       s << indent;
00174       Printer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >::stream(s, indent + "    ", v.packets[i]);
00175     }
00176   }
00177 };
00178 
00179 
00180 } // namespace message_operations
00181 } // namespace ros
00182 
00183 #endif // VELODYNE_MSGS_MESSAGE_VELODYNESCAN_H
00184 


velodyne_msgs
Author(s): Jack O'Quin
autogenerated on Mon Oct 6 2014 08:36:06