Song.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-isr-uc-ros-pkg/doc_stacks/2014-01-06_11-21-59.047934/roomba_robot/roomba_500_series/msg/Song.msg */
00002 #ifndef ROOMBA_500_SERIES_MESSAGE_SONG_H
00003 #define ROOMBA_500_SERIES_MESSAGE_SONG_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 "roomba_500_series/Note.h"
00019 
00020 namespace roomba_500_series
00021 {
00022 template <class ContainerAllocator>
00023 struct Song_ {
00024   typedef Song_<ContainerAllocator> Type;
00025 
00026   Song_()
00027   : header()
00028   , song_number(0)
00029   , notes()
00030   {
00031   }
00032 
00033   Song_(const ContainerAllocator& _alloc)
00034   : header(_alloc)
00035   , song_number(0)
00036   , notes(_alloc)
00037   {
00038   }
00039 
00040   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00041    ::std_msgs::Header_<ContainerAllocator>  header;
00042 
00043   typedef uint8_t _song_number_type;
00044   uint8_t song_number;
00045 
00046   typedef std::vector< ::roomba_500_series::Note_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::roomba_500_series::Note_<ContainerAllocator> >::other >  _notes_type;
00047   std::vector< ::roomba_500_series::Note_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::roomba_500_series::Note_<ContainerAllocator> >::other >  notes;
00048 
00049 
00050   typedef boost::shared_ptr< ::roomba_500_series::Song_<ContainerAllocator> > Ptr;
00051   typedef boost::shared_ptr< ::roomba_500_series::Song_<ContainerAllocator>  const> ConstPtr;
00052   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 }; // struct Song
00054 typedef  ::roomba_500_series::Song_<std::allocator<void> > Song;
00055 
00056 typedef boost::shared_ptr< ::roomba_500_series::Song> SongPtr;
00057 typedef boost::shared_ptr< ::roomba_500_series::Song const> SongConstPtr;
00058 
00059 
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const  ::roomba_500_series::Song_<ContainerAllocator> & v)
00062 {
00063   ros::message_operations::Printer< ::roomba_500_series::Song_<ContainerAllocator> >::stream(s, "", v);
00064   return s;}
00065 
00066 } // namespace roomba_500_series
00067 
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Song_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Song_<ContainerAllocator>  const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::roomba_500_series::Song_<ContainerAllocator> > {
00076   static const char* value() 
00077   {
00078     return "2a8e64bdbdd926225694c88b701e505f";
00079   }
00080 
00081   static const char* value(const  ::roomba_500_series::Song_<ContainerAllocator> &) { return value(); } 
00082   static const uint64_t static_value1 = 0x2a8e64bdbdd92622ULL;
00083   static const uint64_t static_value2 = 0x5694c88b701e505fULL;
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct DataType< ::roomba_500_series::Song_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "roomba_500_series/Song";
00091   }
00092 
00093   static const char* value(const  ::roomba_500_series::Song_<ContainerAllocator> &) { return value(); } 
00094 };
00095 
00096 template<class ContainerAllocator>
00097 struct Definition< ::roomba_500_series::Song_<ContainerAllocator> > {
00098   static const char* value() 
00099   {
00100     return "Header header\n\
00101 uint8 song_number\n\
00102 Note[] notes\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Header\n\
00106 # Standard metadata for higher-level stamped data types.\n\
00107 # This is generally used to communicate timestamped data \n\
00108 # in a particular coordinate frame.\n\
00109 # \n\
00110 # sequence ID: consecutively increasing ID \n\
00111 uint32 seq\n\
00112 #Two-integer timestamp that is expressed as:\n\
00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00115 # time-handling sugar is provided by the client library\n\
00116 time stamp\n\
00117 #Frame this data is associated with\n\
00118 # 0: no frame\n\
00119 # 1: global frame\n\
00120 string frame_id\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: roomba_500_series/Note\n\
00124 uint8 note\n\
00125 uint8 length\n\
00126 \n\
00127 ";
00128   }
00129 
00130   static const char* value(const  ::roomba_500_series::Song_<ContainerAllocator> &) { return value(); } 
00131 };
00132 
00133 template<class ContainerAllocator> struct HasHeader< ::roomba_500_series::Song_<ContainerAllocator> > : public TrueType {};
00134 template<class ContainerAllocator> struct HasHeader< const ::roomba_500_series::Song_<ContainerAllocator> > : public TrueType {};
00135 } // namespace message_traits
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142 
00143 template<class ContainerAllocator> struct Serializer< ::roomba_500_series::Song_<ContainerAllocator> >
00144 {
00145   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146   {
00147     stream.next(m.header);
00148     stream.next(m.song_number);
00149     stream.next(m.notes);
00150   }
00151 
00152   ROS_DECLARE_ALLINONE_SERIALIZER;
00153 }; // struct Song_
00154 } // namespace serialization
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161 
00162 template<class ContainerAllocator>
00163 struct Printer< ::roomba_500_series::Song_<ContainerAllocator> >
00164 {
00165   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::roomba_500_series::Song_<ContainerAllocator> & v) 
00166   {
00167     s << indent << "header: ";
00168 s << std::endl;
00169     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00170     s << indent << "song_number: ";
00171     Printer<uint8_t>::stream(s, indent + "  ", v.song_number);
00172     s << indent << "notes[]" << std::endl;
00173     for (size_t i = 0; i < v.notes.size(); ++i)
00174     {
00175       s << indent << "  notes[" << i << "]: ";
00176       s << std::endl;
00177       s << indent;
00178       Printer< ::roomba_500_series::Note_<ContainerAllocator> >::stream(s, indent + "    ", v.notes[i]);
00179     }
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // ROOMBA_500_SERIES_MESSAGE_SONG_H
00188 


roomba_500_series
Author(s): Gonçalo Cabrita
autogenerated on Mon Jan 6 2014 11:26:40