$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/IntegrationDiagnosticsControl.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_INTEGRATIONDIAGNOSTICSCONTROL_H 00003 #define APPLANIX_MSGS_MESSAGE_INTEGRATIONDIAGNOSTICSCONTROL_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 IntegrationDiagnosticsControl_ { 00022 typedef IntegrationDiagnosticsControl_<ContainerAllocator> Type; 00023 00024 IntegrationDiagnosticsControl_() 00025 : transaction(0) 00026 , output_data(0) 00027 , user_roll(0.0) 00028 , user_pitch(0.0) 00029 , user_heading(0.0) 00030 , reserved() 00031 { 00032 reserved.assign(0); 00033 } 00034 00035 IntegrationDiagnosticsControl_(const ContainerAllocator& _alloc) 00036 : transaction(0) 00037 , output_data(0) 00038 , user_roll(0.0) 00039 , user_pitch(0.0) 00040 , user_heading(0.0) 00041 , reserved() 00042 { 00043 reserved.assign(0); 00044 } 00045 00046 typedef uint16_t _transaction_type; 00047 uint16_t transaction; 00048 00049 typedef uint8_t _output_data_type; 00050 uint8_t output_data; 00051 00052 typedef float _user_roll_type; 00053 float user_roll; 00054 00055 typedef float _user_pitch_type; 00056 float user_pitch; 00057 00058 typedef float _user_heading_type; 00059 float user_heading; 00060 00061 typedef boost::array<uint8_t, 4> _reserved_type; 00062 boost::array<uint8_t, 4> reserved; 00063 00064 enum { OUTPUT_IMU_FRAME = 0 }; 00065 enum { OUTPUT_USER_PARAM = 1 }; 00066 00067 ROS_DEPRECATED uint32_t get_reserved_size() const { return (uint32_t)reserved.size(); } 00068 private: 00069 static const char* __s_getDataType_() { return "applanix_msgs/IntegrationDiagnosticsControl"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "c9348736c3ef1fae7afe188eacd6d167"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# Msg 92\n\ 00084 uint16 transaction\n\ 00085 \n\ 00086 uint8 OUTPUT_IMU_FRAME=0\n\ 00087 uint8 OUTPUT_USER_PARAM=1\n\ 00088 uint8 output_data\n\ 00089 \n\ 00090 float32 user_roll\n\ 00091 float32 user_pitch\n\ 00092 float32 user_heading\n\ 00093 uint8[4] reserved\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, transaction); 00105 ros::serialization::serialize(stream, output_data); 00106 ros::serialization::serialize(stream, user_roll); 00107 ros::serialization::serialize(stream, user_pitch); 00108 ros::serialization::serialize(stream, user_heading); 00109 ros::serialization::serialize(stream, reserved); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00114 { 00115 ros::serialization::IStream stream(read_ptr, 1000000000); 00116 ros::serialization::deserialize(stream, transaction); 00117 ros::serialization::deserialize(stream, output_data); 00118 ros::serialization::deserialize(stream, user_roll); 00119 ros::serialization::deserialize(stream, user_pitch); 00120 ros::serialization::deserialize(stream, user_heading); 00121 ros::serialization::deserialize(stream, reserved); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(transaction); 00129 size += ros::serialization::serializationLength(output_data); 00130 size += ros::serialization::serializationLength(user_roll); 00131 size += ros::serialization::serializationLength(user_pitch); 00132 size += ros::serialization::serializationLength(user_heading); 00133 size += ros::serialization::serializationLength(reserved); 00134 return size; 00135 } 00136 00137 typedef boost::shared_ptr< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > Ptr; 00138 typedef boost::shared_ptr< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> const> ConstPtr; 00139 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00140 }; // struct IntegrationDiagnosticsControl 00141 typedef ::applanix_msgs::IntegrationDiagnosticsControl_<std::allocator<void> > IntegrationDiagnosticsControl; 00142 00143 typedef boost::shared_ptr< ::applanix_msgs::IntegrationDiagnosticsControl> IntegrationDiagnosticsControlPtr; 00144 typedef boost::shared_ptr< ::applanix_msgs::IntegrationDiagnosticsControl const> IntegrationDiagnosticsControlConstPtr; 00145 00146 00147 template<typename ContainerAllocator> 00148 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> & v) 00149 { 00150 ros::message_operations::Printer< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> >::stream(s, "", v); 00151 return s;} 00152 00153 } // namespace applanix_msgs 00154 00155 namespace ros 00156 { 00157 namespace message_traits 00158 { 00159 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > : public TrueType {}; 00160 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> const> : public TrueType {}; 00161 template<class ContainerAllocator> 00162 struct MD5Sum< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "c9348736c3ef1fae7afe188eacd6d167"; 00166 } 00167 00168 static const char* value(const ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> &) { return value(); } 00169 static const uint64_t static_value1 = 0xc9348736c3ef1faeULL; 00170 static const uint64_t static_value2 = 0x7afe188eacd6d167ULL; 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct DataType< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "applanix_msgs/IntegrationDiagnosticsControl"; 00178 } 00179 00180 static const char* value(const ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> &) { return value(); } 00181 }; 00182 00183 template<class ContainerAllocator> 00184 struct Definition< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "# Msg 92\n\ 00188 uint16 transaction\n\ 00189 \n\ 00190 uint8 OUTPUT_IMU_FRAME=0\n\ 00191 uint8 OUTPUT_USER_PARAM=1\n\ 00192 uint8 output_data\n\ 00193 \n\ 00194 float32 user_roll\n\ 00195 float32 user_pitch\n\ 00196 float32 user_heading\n\ 00197 uint8[4] reserved\n\ 00198 \n\ 00199 "; 00200 } 00201 00202 static const char* value(const ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > : public TrueType {}; 00206 } // namespace message_traits 00207 } // namespace ros 00208 00209 namespace ros 00210 { 00211 namespace serialization 00212 { 00213 00214 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > 00215 { 00216 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00217 { 00218 stream.next(m.transaction); 00219 stream.next(m.output_data); 00220 stream.next(m.user_roll); 00221 stream.next(m.user_pitch); 00222 stream.next(m.user_heading); 00223 stream.next(m.reserved); 00224 } 00225 00226 ROS_DECLARE_ALLINONE_SERIALIZER; 00227 }; // struct IntegrationDiagnosticsControl_ 00228 } // namespace serialization 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace message_operations 00234 { 00235 00236 template<class ContainerAllocator> 00237 struct Printer< ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> > 00238 { 00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::IntegrationDiagnosticsControl_<ContainerAllocator> & v) 00240 { 00241 s << indent << "transaction: "; 00242 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00243 s << indent << "output_data: "; 00244 Printer<uint8_t>::stream(s, indent + " ", v.output_data); 00245 s << indent << "user_roll: "; 00246 Printer<float>::stream(s, indent + " ", v.user_roll); 00247 s << indent << "user_pitch: "; 00248 Printer<float>::stream(s, indent + " ", v.user_pitch); 00249 s << indent << "user_heading: "; 00250 Printer<float>::stream(s, indent + " ", v.user_heading); 00251 s << indent << "reserved[]" << std::endl; 00252 for (size_t i = 0; i < v.reserved.size(); ++i) 00253 { 00254 s << indent << " reserved[" << i << "]: "; 00255 Printer<uint8_t>::stream(s, indent + " ", v.reserved[i]); 00256 } 00257 } 00258 }; 00259 00260 00261 } // namespace message_operations 00262 } // namespace ros 00263 00264 #endif // APPLANIX_MSGS_MESSAGE_INTEGRATIONDIAGNOSTICSCONTROL_H 00265