$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/Event.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_EVENT_H 00003 #define APPLANIX_MSGS_MESSAGE_EVENT_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 Event_ { 00023 typedef Event_<ContainerAllocator> Type; 00024 00025 Event_() 00026 : td() 00027 , pulse_number(0) 00028 { 00029 } 00030 00031 Event_(const ContainerAllocator& _alloc) 00032 : td(_alloc) 00033 , pulse_number(0) 00034 { 00035 } 00036 00037 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00038 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00039 00040 typedef uint32_t _pulse_number_type; 00041 uint32_t pulse_number; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "applanix_msgs/Event"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "2d96e1facadb782cdf8ef56d7e874213"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00060 uint32 pulse_number\n\ 00061 \n\ 00062 ================================================================================\n\ 00063 MSG: applanix_msgs/TimeDistance\n\ 00064 float64 time1\n\ 00065 float64 time2\n\ 00066 float64 distance\n\ 00067 uint8 time_types\n\ 00068 uint8 distance_type\n\ 00069 \n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, td); 00080 ros::serialization::serialize(stream, pulse_number); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, td); 00088 ros::serialization::deserialize(stream, pulse_number); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(td); 00096 size += ros::serialization::serializationLength(pulse_number); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::applanix_msgs::Event_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::applanix_msgs::Event_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct Event 00104 typedef ::applanix_msgs::Event_<std::allocator<void> > Event; 00105 00106 typedef boost::shared_ptr< ::applanix_msgs::Event> EventPtr; 00107 typedef boost::shared_ptr< ::applanix_msgs::Event const> EventConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::Event_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::applanix_msgs::Event_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace applanix_msgs 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Event_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Event_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::applanix_msgs::Event_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "2d96e1facadb782cdf8ef56d7e874213"; 00129 } 00130 00131 static const char* value(const ::applanix_msgs::Event_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0x2d96e1facadb782cULL; 00133 static const uint64_t static_value2 = 0xdf8ef56d7e874213ULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::applanix_msgs::Event_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "applanix_msgs/Event"; 00141 } 00142 00143 static const char* value(const ::applanix_msgs::Event_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::applanix_msgs::Event_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "TimeDistance td\n\ 00151 uint32 pulse_number\n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: applanix_msgs/TimeDistance\n\ 00155 float64 time1\n\ 00156 float64 time2\n\ 00157 float64 distance\n\ 00158 uint8 time_types\n\ 00159 uint8 distance_type\n\ 00160 \n\ 00161 "; 00162 } 00163 00164 static const char* value(const ::applanix_msgs::Event_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::Event_<ContainerAllocator> > : public TrueType {}; 00168 } // namespace message_traits 00169 } // namespace ros 00170 00171 namespace ros 00172 { 00173 namespace serialization 00174 { 00175 00176 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::Event_<ContainerAllocator> > 00177 { 00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00179 { 00180 stream.next(m.td); 00181 stream.next(m.pulse_number); 00182 } 00183 00184 ROS_DECLARE_ALLINONE_SERIALIZER; 00185 }; // struct Event_ 00186 } // namespace serialization 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace message_operations 00192 { 00193 00194 template<class ContainerAllocator> 00195 struct Printer< ::applanix_msgs::Event_<ContainerAllocator> > 00196 { 00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::Event_<ContainerAllocator> & v) 00198 { 00199 s << indent << "td: "; 00200 s << std::endl; 00201 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00202 s << indent << "pulse_number: "; 00203 Printer<uint32_t>::stream(s, indent + " ", v.pulse_number); 00204 } 00205 }; 00206 00207 00208 } // namespace message_operations 00209 } // namespace ros 00210 00211 #endif // APPLANIX_MSGS_MESSAGE_EVENT_H 00212