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