VelodynePacket.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/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   typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct VelodynePacket
00049 typedef  ::velodyne_msgs::VelodynePacket_<std::allocator<void> > VelodynePacket;
00050 
00051 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket> VelodynePacketPtr;
00052 typedef boost::shared_ptr< ::velodyne_msgs::VelodynePacket const> VelodynePacketConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::velodyne_msgs::VelodynePacket_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::velodyne_msgs::VelodynePacket_<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::VelodynePacket_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::velodyne_msgs::VelodynePacket_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "ae4f90a23256f44e82baa08dd45c3456";
00074   }
00075 
00076   static const char* value(const  ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0xae4f90a23256f44eULL;
00078   static const uint64_t static_value2 = 0x82baa08dd45c3456ULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "velodyne_msgs/VelodynePacket";
00086   }
00087 
00088   static const char* value(const  ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "# Raw Velodyne LIDAR packet.\n\
00096 \n\
00097 time stamp              # packet timestamp\n\
00098 uint8[1206] data        # packet contents\n\
00099 \n\
00100 \n\
00101 ";
00102   }
00103 
00104   static const char* value(const  ::velodyne_msgs::VelodynePacket_<ContainerAllocator> &) { return value(); } 
00105 };
00106 
00107 template<class ContainerAllocator> struct IsFixedSize< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> > : public TrueType {};
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.stamp);
00121     stream.next(m.data);
00122   }
00123 
00124   ROS_DECLARE_ALLINONE_SERIALIZER;
00125 }; // struct VelodynePacket_
00126 } // namespace serialization
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133 
00134 template<class ContainerAllocator>
00135 struct Printer< ::velodyne_msgs::VelodynePacket_<ContainerAllocator> >
00136 {
00137   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::velodyne_msgs::VelodynePacket_<ContainerAllocator> & v) 
00138   {
00139     s << indent << "stamp: ";
00140     Printer<ros::Time>::stream(s, indent + "  ", v.stamp);
00141     s << indent << "data[]" << std::endl;
00142     for (size_t i = 0; i < v.data.size(); ++i)
00143     {
00144       s << indent << "  data[" << i << "]: ";
00145       Printer<uint8_t>::stream(s, indent + "  ", v.data[i]);
00146     }
00147   }
00148 };
00149 
00150 
00151 } // namespace message_operations
00152 } // namespace ros
00153 
00154 #endif // VELODYNE_MSGS_MESSAGE_VELODYNEPACKET_H
00155 


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