$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/RawDMI.msg */ 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 private: 00060 static const char* __s_getDataType_() { return "applanix_msgs/RawDMI"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "c9153f5608caf84f2c1186b6fdb37300"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "# Group 10006 \n\ 00075 TimeDistance td\n\ 00076 \n\ 00077 int32 up_down_pulse_count\n\ 00078 uint32 rectified_pulse_count\n\ 00079 int32 event_count\n\ 00080 uint32 reserved_count\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: applanix_msgs/TimeDistance\n\ 00084 float64 time1\n\ 00085 float64 time2\n\ 00086 float64 distance\n\ 00087 uint8 time_types\n\ 00088 uint8 distance_type\n\ 00089 \n\ 00090 "; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00097 { 00098 ros::serialization::OStream stream(write_ptr, 1000000000); 00099 ros::serialization::serialize(stream, td); 00100 ros::serialization::serialize(stream, up_down_pulse_count); 00101 ros::serialization::serialize(stream, rectified_pulse_count); 00102 ros::serialization::serialize(stream, event_count); 00103 ros::serialization::serialize(stream, reserved_count); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, td); 00111 ros::serialization::deserialize(stream, up_down_pulse_count); 00112 ros::serialization::deserialize(stream, rectified_pulse_count); 00113 ros::serialization::deserialize(stream, event_count); 00114 ros::serialization::deserialize(stream, reserved_count); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint32_t serializationLength() const 00119 { 00120 uint32_t size = 0; 00121 size += ros::serialization::serializationLength(td); 00122 size += ros::serialization::serializationLength(up_down_pulse_count); 00123 size += ros::serialization::serializationLength(rectified_pulse_count); 00124 size += ros::serialization::serializationLength(event_count); 00125 size += ros::serialization::serializationLength(reserved_count); 00126 return size; 00127 } 00128 00129 typedef boost::shared_ptr< ::applanix_msgs::RawDMI_<ContainerAllocator> > Ptr; 00130 typedef boost::shared_ptr< ::applanix_msgs::RawDMI_<ContainerAllocator> const> ConstPtr; 00131 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00132 }; // struct RawDMI 00133 typedef ::applanix_msgs::RawDMI_<std::allocator<void> > RawDMI; 00134 00135 typedef boost::shared_ptr< ::applanix_msgs::RawDMI> RawDMIPtr; 00136 typedef boost::shared_ptr< ::applanix_msgs::RawDMI const> RawDMIConstPtr; 00137 00138 00139 template<typename ContainerAllocator> 00140 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::RawDMI_<ContainerAllocator> & v) 00141 { 00142 ros::message_operations::Printer< ::applanix_msgs::RawDMI_<ContainerAllocator> >::stream(s, "", v); 00143 return s;} 00144 00145 } // namespace applanix_msgs 00146 00147 namespace ros 00148 { 00149 namespace message_traits 00150 { 00151 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawDMI_<ContainerAllocator> > : public TrueType {}; 00152 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawDMI_<ContainerAllocator> const> : public TrueType {}; 00153 template<class ContainerAllocator> 00154 struct MD5Sum< ::applanix_msgs::RawDMI_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "c9153f5608caf84f2c1186b6fdb37300"; 00158 } 00159 00160 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); } 00161 static const uint64_t static_value1 = 0xc9153f5608caf84fULL; 00162 static const uint64_t static_value2 = 0x2c1186b6fdb37300ULL; 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct DataType< ::applanix_msgs::RawDMI_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "applanix_msgs/RawDMI"; 00170 } 00171 00172 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct Definition< ::applanix_msgs::RawDMI_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "# Group 10006 \n\ 00180 TimeDistance td\n\ 00181 \n\ 00182 int32 up_down_pulse_count\n\ 00183 uint32 rectified_pulse_count\n\ 00184 int32 event_count\n\ 00185 uint32 reserved_count\n\ 00186 \n\ 00187 ================================================================================\n\ 00188 MSG: applanix_msgs/TimeDistance\n\ 00189 float64 time1\n\ 00190 float64 time2\n\ 00191 float64 distance\n\ 00192 uint8 time_types\n\ 00193 uint8 distance_type\n\ 00194 \n\ 00195 "; 00196 } 00197 00198 static const char* value(const ::applanix_msgs::RawDMI_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::RawDMI_<ContainerAllocator> > : public TrueType {}; 00202 } // namespace message_traits 00203 } // namespace ros 00204 00205 namespace ros 00206 { 00207 namespace serialization 00208 { 00209 00210 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::RawDMI_<ContainerAllocator> > 00211 { 00212 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00213 { 00214 stream.next(m.td); 00215 stream.next(m.up_down_pulse_count); 00216 stream.next(m.rectified_pulse_count); 00217 stream.next(m.event_count); 00218 stream.next(m.reserved_count); 00219 } 00220 00221 ROS_DECLARE_ALLINONE_SERIALIZER; 00222 }; // struct RawDMI_ 00223 } // namespace serialization 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace message_operations 00229 { 00230 00231 template<class ContainerAllocator> 00232 struct Printer< ::applanix_msgs::RawDMI_<ContainerAllocator> > 00233 { 00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::RawDMI_<ContainerAllocator> & v) 00235 { 00236 s << indent << "td: "; 00237 s << std::endl; 00238 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00239 s << indent << "up_down_pulse_count: "; 00240 Printer<int32_t>::stream(s, indent + " ", v.up_down_pulse_count); 00241 s << indent << "rectified_pulse_count: "; 00242 Printer<uint32_t>::stream(s, indent + " ", v.rectified_pulse_count); 00243 s << indent << "event_count: "; 00244 Printer<int32_t>::stream(s, indent + " ", v.event_count); 00245 s << indent << "reserved_count: "; 00246 Printer<uint32_t>::stream(s, indent + " ", v.reserved_count); 00247 } 00248 }; 00249 00250 00251 } // namespace message_operations 00252 } // namespace ros 00253 00254 #endif // APPLANIX_MSGS_MESSAGE_RAWDMI_H 00255