Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_RAWDMI_H
00003 #define APPLANIX_MSGS_MESSAGE_RAWDMI_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 "applanix_msgs/TimeDistance.h"
00018
00019 namespace applanix_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct RawDMI_ {
00023 typedef RawDMI_<ContainerAllocator> Type;
00024
00025 RawDMI_()
00026 : td()
00027 , up_down_pulse_count(0)
00028 , rectified_pulse_count(0)
00029 , event_count(0)
00030 , reserved_count(0)
00031 {
00032 }
00033
00034 RawDMI_(const ContainerAllocator& _alloc)
00035 : td(_alloc)
00036 , up_down_pulse_count(0)
00037 , rectified_pulse_count(0)
00038 , event_count(0)
00039 , reserved_count(0)
00040 {
00041 }
00042
00043 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type;
00044 ::applanix_msgs::TimeDistance_<ContainerAllocator> td;
00045
00046 typedef int32_t _up_down_pulse_count_type;
00047 int32_t up_down_pulse_count;
00048
00049 typedef uint32_t _rectified_pulse_count_type;
00050 uint32_t rectified_pulse_count;
00051
00052 typedef int32_t _event_count_type;
00053 int32_t event_count;
00054
00055 typedef uint32_t _reserved_count_type;
00056 uint32_t reserved_count;
00057
00058
00059 typedef boost::shared_ptr< ::applanix_msgs::RawDMI_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::applanix_msgs::RawDMI_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::applanix_msgs::RawDMI_<std::allocator<void> > RawDMI;
00064
00065 typedef boost::shared_ptr< ::applanix_msgs::RawDMI> RawDMIPtr;
00066 typedef boost::shared_ptr< ::applanix_msgs::RawDMI const> RawDMIConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::RawDMI_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::applanix_msgs::RawDMI_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawDMI_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawDMI_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::applanix_msgs::RawDMI_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "c9153f5608caf84f2c1186b6fdb37300";
00088 }
00089
00090 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0xc9153f5608caf84fULL;
00092 static const uint64_t static_value2 = 0x2c1186b6fdb37300ULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::applanix_msgs::RawDMI_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "applanix_msgs/RawDMI";
00100 }
00101
00102 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::applanix_msgs::RawDMI_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "# Group 10006 \n\
00110 TimeDistance td\n\
00111 \n\
00112 int32 up_down_pulse_count\n\
00113 uint32 rectified_pulse_count\n\
00114 int32 event_count\n\
00115 uint32 reserved_count\n\
00116 \n\
00117 ================================================================================\n\
00118 MSG: applanix_msgs/TimeDistance\n\
00119 float64 time1\n\
00120 float64 time2\n\
00121 float64 distance\n\
00122 uint8 time_types\n\
00123 uint8 distance_type\n\
00124 \n\
00125 ";
00126 }
00127
00128 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::RawDMI_<ContainerAllocator> > : public TrueType {};
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace serialization
00138 {
00139
00140 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::RawDMI_<ContainerAllocator> >
00141 {
00142 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00143 {
00144 stream.next(m.td);
00145 stream.next(m.up_down_pulse_count);
00146 stream.next(m.rectified_pulse_count);
00147 stream.next(m.event_count);
00148 stream.next(m.reserved_count);
00149 }
00150
00151 ROS_DECLARE_ALLINONE_SERIALIZER;
00152 };
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160
00161 template<class ContainerAllocator>
00162 struct Printer< ::applanix_msgs::RawDMI_<ContainerAllocator> >
00163 {
00164 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::RawDMI_<ContainerAllocator> & v)
00165 {
00166 s << indent << "td: ";
00167 s << std::endl;
00168 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00169 s << indent << "up_down_pulse_count: ";
00170 Printer<int32_t>::stream(s, indent + " ", v.up_down_pulse_count);
00171 s << indent << "rectified_pulse_count: ";
00172 Printer<uint32_t>::stream(s, indent + " ", v.rectified_pulse_count);
00173 s << indent << "event_count: ";
00174 Printer<int32_t>::stream(s, indent + " ", v.event_count);
00175 s << indent << "reserved_count: ";
00176 Printer<uint32_t>::stream(s, indent + " ", v.reserved_count);
00177 }
00178 };
00179
00180
00181 }
00182 }
00183
00184 #endif // APPLANIX_MSGS_MESSAGE_RAWDMI_H
00185