$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/EventSetup.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_EVENTSETUP_H 00003 #define APPLANIX_MSGS_MESSAGE_EVENTSETUP_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 applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct EventSetup_ { 00022 typedef EventSetup_<ContainerAllocator> Type; 00023 00024 EventSetup_() 00025 : transaction(0) 00026 , event_1_trigger(0) 00027 , event_2_trigger(0) 00028 , event_3_trigger(0) 00029 , event_4_trigger(0) 00030 , event_5_trigger(0) 00031 , event_6_trigger(0) 00032 , event_1_guard_time(0) 00033 , event_2_guard_time(0) 00034 , event_3_guard_time(0) 00035 , event_4_guard_time(0) 00036 , event_5_guard_time(0) 00037 , event_6_guard_time(0) 00038 , pps_out_polarity(0) 00039 { 00040 } 00041 00042 EventSetup_(const ContainerAllocator& _alloc) 00043 : transaction(0) 00044 , event_1_trigger(0) 00045 , event_2_trigger(0) 00046 , event_3_trigger(0) 00047 , event_4_trigger(0) 00048 , event_5_trigger(0) 00049 , event_6_trigger(0) 00050 , event_1_guard_time(0) 00051 , event_2_guard_time(0) 00052 , event_3_guard_time(0) 00053 , event_4_guard_time(0) 00054 , event_5_guard_time(0) 00055 , event_6_guard_time(0) 00056 , pps_out_polarity(0) 00057 { 00058 } 00059 00060 typedef uint16_t _transaction_type; 00061 uint16_t transaction; 00062 00063 typedef uint8_t _event_1_trigger_type; 00064 uint8_t event_1_trigger; 00065 00066 typedef uint8_t _event_2_trigger_type; 00067 uint8_t event_2_trigger; 00068 00069 typedef uint8_t _event_3_trigger_type; 00070 uint8_t event_3_trigger; 00071 00072 typedef uint8_t _event_4_trigger_type; 00073 uint8_t event_4_trigger; 00074 00075 typedef uint8_t _event_5_trigger_type; 00076 uint8_t event_5_trigger; 00077 00078 typedef uint8_t _event_6_trigger_type; 00079 uint8_t event_6_trigger; 00080 00081 typedef uint16_t _event_1_guard_time_type; 00082 uint16_t event_1_guard_time; 00083 00084 typedef uint16_t _event_2_guard_time_type; 00085 uint16_t event_2_guard_time; 00086 00087 typedef uint16_t _event_3_guard_time_type; 00088 uint16_t event_3_guard_time; 00089 00090 typedef uint16_t _event_4_guard_time_type; 00091 uint16_t event_4_guard_time; 00092 00093 typedef uint16_t _event_5_guard_time_type; 00094 uint16_t event_5_guard_time; 00095 00096 typedef uint16_t _event_6_guard_time_type; 00097 uint16_t event_6_guard_time; 00098 00099 typedef uint8_t _pps_out_polarity_type; 00100 uint8_t pps_out_polarity; 00101 00102 enum { TRIGGER_POSITIVE_EDGE = 0 }; 00103 enum { TRIGGER_NEGATIVE_EDGE = 1 }; 00104 enum { POLARITY_POSITIVE_PULSE = 0 }; 00105 enum { POLARITY_NEGATIVE_PULSE = 1 }; 00106 enum { POLARITY_PASS_THROUGH = 2 }; 00107 00108 private: 00109 static const char* __s_getDataType_() { return "applanix_msgs/EventSetup"; } 00110 public: 00111 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00112 00113 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00114 00115 private: 00116 static const char* __s_getMD5Sum_() { return "74cd1b437edb1231c0f1f35556a051a7"; } 00117 public: 00118 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00119 00120 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00121 00122 private: 00123 static const char* __s_getMessageDefinition_() { return "# Msg 33\n\ 00124 uint16 transaction\n\ 00125 \n\ 00126 uint8 TRIGGER_POSITIVE_EDGE=0\n\ 00127 uint8 TRIGGER_NEGATIVE_EDGE=1\n\ 00128 uint8 event_1_trigger\n\ 00129 uint8 event_2_trigger\n\ 00130 uint8 event_3_trigger\n\ 00131 uint8 event_4_trigger\n\ 00132 uint8 event_5_trigger\n\ 00133 uint8 event_6_trigger\n\ 00134 \n\ 00135 uint16 event_1_guard_time\n\ 00136 uint16 event_2_guard_time\n\ 00137 uint16 event_3_guard_time\n\ 00138 uint16 event_4_guard_time\n\ 00139 uint16 event_5_guard_time\n\ 00140 uint16 event_6_guard_time\n\ 00141 \n\ 00142 uint8 POLARITY_POSITIVE_PULSE=0\n\ 00143 uint8 POLARITY_NEGATIVE_PULSE=1\n\ 00144 uint8 POLARITY_PASS_THROUGH=2\n\ 00145 uint8 pps_out_polarity\n\ 00146 \n\ 00147 "; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00152 00153 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00154 { 00155 ros::serialization::OStream stream(write_ptr, 1000000000); 00156 ros::serialization::serialize(stream, transaction); 00157 ros::serialization::serialize(stream, event_1_trigger); 00158 ros::serialization::serialize(stream, event_2_trigger); 00159 ros::serialization::serialize(stream, event_3_trigger); 00160 ros::serialization::serialize(stream, event_4_trigger); 00161 ros::serialization::serialize(stream, event_5_trigger); 00162 ros::serialization::serialize(stream, event_6_trigger); 00163 ros::serialization::serialize(stream, event_1_guard_time); 00164 ros::serialization::serialize(stream, event_2_guard_time); 00165 ros::serialization::serialize(stream, event_3_guard_time); 00166 ros::serialization::serialize(stream, event_4_guard_time); 00167 ros::serialization::serialize(stream, event_5_guard_time); 00168 ros::serialization::serialize(stream, event_6_guard_time); 00169 ros::serialization::serialize(stream, pps_out_polarity); 00170 return stream.getData(); 00171 } 00172 00173 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00174 { 00175 ros::serialization::IStream stream(read_ptr, 1000000000); 00176 ros::serialization::deserialize(stream, transaction); 00177 ros::serialization::deserialize(stream, event_1_trigger); 00178 ros::serialization::deserialize(stream, event_2_trigger); 00179 ros::serialization::deserialize(stream, event_3_trigger); 00180 ros::serialization::deserialize(stream, event_4_trigger); 00181 ros::serialization::deserialize(stream, event_5_trigger); 00182 ros::serialization::deserialize(stream, event_6_trigger); 00183 ros::serialization::deserialize(stream, event_1_guard_time); 00184 ros::serialization::deserialize(stream, event_2_guard_time); 00185 ros::serialization::deserialize(stream, event_3_guard_time); 00186 ros::serialization::deserialize(stream, event_4_guard_time); 00187 ros::serialization::deserialize(stream, event_5_guard_time); 00188 ros::serialization::deserialize(stream, event_6_guard_time); 00189 ros::serialization::deserialize(stream, pps_out_polarity); 00190 return stream.getData(); 00191 } 00192 00193 ROS_DEPRECATED virtual uint32_t serializationLength() const 00194 { 00195 uint32_t size = 0; 00196 size += ros::serialization::serializationLength(transaction); 00197 size += ros::serialization::serializationLength(event_1_trigger); 00198 size += ros::serialization::serializationLength(event_2_trigger); 00199 size += ros::serialization::serializationLength(event_3_trigger); 00200 size += ros::serialization::serializationLength(event_4_trigger); 00201 size += ros::serialization::serializationLength(event_5_trigger); 00202 size += ros::serialization::serializationLength(event_6_trigger); 00203 size += ros::serialization::serializationLength(event_1_guard_time); 00204 size += ros::serialization::serializationLength(event_2_guard_time); 00205 size += ros::serialization::serializationLength(event_3_guard_time); 00206 size += ros::serialization::serializationLength(event_4_guard_time); 00207 size += ros::serialization::serializationLength(event_5_guard_time); 00208 size += ros::serialization::serializationLength(event_6_guard_time); 00209 size += ros::serialization::serializationLength(pps_out_polarity); 00210 return size; 00211 } 00212 00213 typedef boost::shared_ptr< ::applanix_msgs::EventSetup_<ContainerAllocator> > Ptr; 00214 typedef boost::shared_ptr< ::applanix_msgs::EventSetup_<ContainerAllocator> const> ConstPtr; 00215 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00216 }; // struct EventSetup 00217 typedef ::applanix_msgs::EventSetup_<std::allocator<void> > EventSetup; 00218 00219 typedef boost::shared_ptr< ::applanix_msgs::EventSetup> EventSetupPtr; 00220 typedef boost::shared_ptr< ::applanix_msgs::EventSetup const> EventSetupConstPtr; 00221 00222 00223 template<typename ContainerAllocator> 00224 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::EventSetup_<ContainerAllocator> & v) 00225 { 00226 ros::message_operations::Printer< ::applanix_msgs::EventSetup_<ContainerAllocator> >::stream(s, "", v); 00227 return s;} 00228 00229 } // namespace applanix_msgs 00230 00231 namespace ros 00232 { 00233 namespace message_traits 00234 { 00235 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::EventSetup_<ContainerAllocator> > : public TrueType {}; 00236 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::EventSetup_<ContainerAllocator> const> : public TrueType {}; 00237 template<class ContainerAllocator> 00238 struct MD5Sum< ::applanix_msgs::EventSetup_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "74cd1b437edb1231c0f1f35556a051a7"; 00242 } 00243 00244 static const char* value(const ::applanix_msgs::EventSetup_<ContainerAllocator> &) { return value(); } 00245 static const uint64_t static_value1 = 0x74cd1b437edb1231ULL; 00246 static const uint64_t static_value2 = 0xc0f1f35556a051a7ULL; 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct DataType< ::applanix_msgs::EventSetup_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "applanix_msgs/EventSetup"; 00254 } 00255 00256 static const char* value(const ::applanix_msgs::EventSetup_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct Definition< ::applanix_msgs::EventSetup_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "# Msg 33\n\ 00264 uint16 transaction\n\ 00265 \n\ 00266 uint8 TRIGGER_POSITIVE_EDGE=0\n\ 00267 uint8 TRIGGER_NEGATIVE_EDGE=1\n\ 00268 uint8 event_1_trigger\n\ 00269 uint8 event_2_trigger\n\ 00270 uint8 event_3_trigger\n\ 00271 uint8 event_4_trigger\n\ 00272 uint8 event_5_trigger\n\ 00273 uint8 event_6_trigger\n\ 00274 \n\ 00275 uint16 event_1_guard_time\n\ 00276 uint16 event_2_guard_time\n\ 00277 uint16 event_3_guard_time\n\ 00278 uint16 event_4_guard_time\n\ 00279 uint16 event_5_guard_time\n\ 00280 uint16 event_6_guard_time\n\ 00281 \n\ 00282 uint8 POLARITY_POSITIVE_PULSE=0\n\ 00283 uint8 POLARITY_NEGATIVE_PULSE=1\n\ 00284 uint8 POLARITY_PASS_THROUGH=2\n\ 00285 uint8 pps_out_polarity\n\ 00286 \n\ 00287 "; 00288 } 00289 00290 static const char* value(const ::applanix_msgs::EventSetup_<ContainerAllocator> &) { return value(); } 00291 }; 00292 00293 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::EventSetup_<ContainerAllocator> > : public TrueType {}; 00294 } // namespace message_traits 00295 } // namespace ros 00296 00297 namespace ros 00298 { 00299 namespace serialization 00300 { 00301 00302 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::EventSetup_<ContainerAllocator> > 00303 { 00304 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00305 { 00306 stream.next(m.transaction); 00307 stream.next(m.event_1_trigger); 00308 stream.next(m.event_2_trigger); 00309 stream.next(m.event_3_trigger); 00310 stream.next(m.event_4_trigger); 00311 stream.next(m.event_5_trigger); 00312 stream.next(m.event_6_trigger); 00313 stream.next(m.event_1_guard_time); 00314 stream.next(m.event_2_guard_time); 00315 stream.next(m.event_3_guard_time); 00316 stream.next(m.event_4_guard_time); 00317 stream.next(m.event_5_guard_time); 00318 stream.next(m.event_6_guard_time); 00319 stream.next(m.pps_out_polarity); 00320 } 00321 00322 ROS_DECLARE_ALLINONE_SERIALIZER; 00323 }; // struct EventSetup_ 00324 } // namespace serialization 00325 } // namespace ros 00326 00327 namespace ros 00328 { 00329 namespace message_operations 00330 { 00331 00332 template<class ContainerAllocator> 00333 struct Printer< ::applanix_msgs::EventSetup_<ContainerAllocator> > 00334 { 00335 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::EventSetup_<ContainerAllocator> & v) 00336 { 00337 s << indent << "transaction: "; 00338 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00339 s << indent << "event_1_trigger: "; 00340 Printer<uint8_t>::stream(s, indent + " ", v.event_1_trigger); 00341 s << indent << "event_2_trigger: "; 00342 Printer<uint8_t>::stream(s, indent + " ", v.event_2_trigger); 00343 s << indent << "event_3_trigger: "; 00344 Printer<uint8_t>::stream(s, indent + " ", v.event_3_trigger); 00345 s << indent << "event_4_trigger: "; 00346 Printer<uint8_t>::stream(s, indent + " ", v.event_4_trigger); 00347 s << indent << "event_5_trigger: "; 00348 Printer<uint8_t>::stream(s, indent + " ", v.event_5_trigger); 00349 s << indent << "event_6_trigger: "; 00350 Printer<uint8_t>::stream(s, indent + " ", v.event_6_trigger); 00351 s << indent << "event_1_guard_time: "; 00352 Printer<uint16_t>::stream(s, indent + " ", v.event_1_guard_time); 00353 s << indent << "event_2_guard_time: "; 00354 Printer<uint16_t>::stream(s, indent + " ", v.event_2_guard_time); 00355 s << indent << "event_3_guard_time: "; 00356 Printer<uint16_t>::stream(s, indent + " ", v.event_3_guard_time); 00357 s << indent << "event_4_guard_time: "; 00358 Printer<uint16_t>::stream(s, indent + " ", v.event_4_guard_time); 00359 s << indent << "event_5_guard_time: "; 00360 Printer<uint16_t>::stream(s, indent + " ", v.event_5_guard_time); 00361 s << indent << "event_6_guard_time: "; 00362 Printer<uint16_t>::stream(s, indent + " ", v.event_6_guard_time); 00363 s << indent << "pps_out_polarity: "; 00364 Printer<uint8_t>::stream(s, indent + " ", v.pps_out_polarity); 00365 } 00366 }; 00367 00368 00369 } // namespace message_operations 00370 } // namespace ros 00371 00372 #endif // APPLANIX_MSGS_MESSAGE_EVENTSETUP_H 00373