Go to the documentation of this file.00001
00002 #ifndef KOBUKI_COMMS_MESSAGE_VERSIONINFO_H
00003 #define KOBUKI_COMMS_MESSAGE_VERSIONINFO_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 kobuki_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct VersionInfo_ {
00022 typedef VersionInfo_<ContainerAllocator> Type;
00023
00024 VersionInfo_()
00025 : firmware(0)
00026 , hardware(0)
00027 , software(0)
00028 {
00029 }
00030
00031 VersionInfo_(const ContainerAllocator& _alloc)
00032 : firmware(0)
00033 , hardware(0)
00034 , software(0)
00035 {
00036 }
00037
00038 typedef uint16_t _firmware_type;
00039 uint16_t firmware;
00040
00041 typedef uint16_t _hardware_type;
00042 uint16_t hardware;
00043
00044 typedef uint32_t _software_type;
00045 uint32_t software;
00046
00047
00048 typedef boost::shared_ptr< ::kobuki_comms::VersionInfo_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::kobuki_comms::VersionInfo_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::kobuki_comms::VersionInfo_<std::allocator<void> > VersionInfo;
00053
00054 typedef boost::shared_ptr< ::kobuki_comms::VersionInfo> VersionInfoPtr;
00055 typedef boost::shared_ptr< ::kobuki_comms::VersionInfo const> VersionInfoConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::kobuki_comms::VersionInfo_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::kobuki_comms::VersionInfo_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::VersionInfo_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::VersionInfo_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::kobuki_comms::VersionInfo_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "955612700aaca893c27bb0fcacde39a4";
00077 }
00078
00079 static const char* value(const ::kobuki_comms::VersionInfo_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0x955612700aaca893ULL;
00081 static const uint64_t static_value2 = 0xc27bb0fcacde39a4ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::kobuki_comms::VersionInfo_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "kobuki_comms/VersionInfo";
00089 }
00090
00091 static const char* value(const ::kobuki_comms::VersionInfo_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::kobuki_comms::VersionInfo_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# Contains version info for the kobuki platform.\n\
00099 # Useful for introspection\n\
00100 \n\
00101 uint16 firmware\n\
00102 uint16 hardware\n\
00103 uint32 software\n\
00104 \n\
00105 \n\
00106 ";
00107 }
00108
00109 static const char* value(const ::kobuki_comms::VersionInfo_<ContainerAllocator> &) { return value(); }
00110 };
00111
00112 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::VersionInfo_<ContainerAllocator> > : public TrueType {};
00113 }
00114 }
00115
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120
00121 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::VersionInfo_<ContainerAllocator> >
00122 {
00123 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124 {
00125 stream.next(m.firmware);
00126 stream.next(m.hardware);
00127 stream.next(m.software);
00128 }
00129
00130 ROS_DECLARE_ALLINONE_SERIALIZER;
00131 };
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace message_operations
00138 {
00139
00140 template<class ContainerAllocator>
00141 struct Printer< ::kobuki_comms::VersionInfo_<ContainerAllocator> >
00142 {
00143 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kobuki_comms::VersionInfo_<ContainerAllocator> & v)
00144 {
00145 s << indent << "firmware: ";
00146 Printer<uint16_t>::stream(s, indent + " ", v.firmware);
00147 s << indent << "hardware: ";
00148 Printer<uint16_t>::stream(s, indent + " ", v.hardware);
00149 s << indent << "software: ";
00150 Printer<uint32_t>::stream(s, indent + " ", v.software);
00151 }
00152 };
00153
00154
00155 }
00156 }
00157
00158 #endif // KOBUKI_COMMS_MESSAGE_VERSIONINFO_H
00159