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