$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/IMUData.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_IMUDATA_H 00003 #define APPLANIX_MSGS_MESSAGE_IMUDATA_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 IMUData_ { 00023 typedef IMUData_<ContainerAllocator> Type; 00024 00025 IMUData_() 00026 : td() 00027 , delta_velocity_x(0) 00028 , delta_velocity_y(0) 00029 , delta_velocity_z(0) 00030 , delta_accel_x(0) 00031 , delta_accel_y(0) 00032 , delta_accel_z(0) 00033 , data_status(0) 00034 , imu_type(0) 00035 , imu_data_rate(0) 00036 , imu_status(0) 00037 { 00038 } 00039 00040 IMUData_(const ContainerAllocator& _alloc) 00041 : td(_alloc) 00042 , delta_velocity_x(0) 00043 , delta_velocity_y(0) 00044 , delta_velocity_z(0) 00045 , delta_accel_x(0) 00046 , delta_accel_y(0) 00047 , delta_accel_z(0) 00048 , data_status(0) 00049 , imu_type(0) 00050 , imu_data_rate(0) 00051 , imu_status(0) 00052 { 00053 } 00054 00055 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00056 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00057 00058 typedef int32_t _delta_velocity_x_type; 00059 int32_t delta_velocity_x; 00060 00061 typedef int32_t _delta_velocity_y_type; 00062 int32_t delta_velocity_y; 00063 00064 typedef int32_t _delta_velocity_z_type; 00065 int32_t delta_velocity_z; 00066 00067 typedef int32_t _delta_accel_x_type; 00068 int32_t delta_accel_x; 00069 00070 typedef int32_t _delta_accel_y_type; 00071 int32_t delta_accel_y; 00072 00073 typedef int32_t _delta_accel_z_type; 00074 int32_t delta_accel_z; 00075 00076 typedef uint8_t _data_status_type; 00077 uint8_t data_status; 00078 00079 typedef uint8_t _imu_type_type; 00080 uint8_t imu_type; 00081 00082 typedef uint8_t _imu_data_rate_type; 00083 uint8_t imu_data_rate; 00084 00085 typedef uint16_t _imu_status_type; 00086 uint16_t imu_status; 00087 00088 enum { STATUS_1_BAD_FRAME = 1 }; 00089 enum { STATUS_2_BAD_FRAMES = 2 }; 00090 enum { STATUS_3_BAD_FRAMES = 4 }; 00091 00092 private: 00093 static const char* __s_getDataType_() { return "applanix_msgs/IMUData"; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00096 00097 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00098 00099 private: 00100 static const char* __s_getMD5Sum_() { return "053d6fea1c52bdd03cea4527050e0a11"; } 00101 public: 00102 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00103 00104 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00105 00106 private: 00107 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00108 \n\ 00109 #uint8[24] data\n\ 00110 int32 delta_velocity_x\n\ 00111 int32 delta_velocity_y\n\ 00112 int32 delta_velocity_z\n\ 00113 \n\ 00114 int32 delta_accel_x\n\ 00115 int32 delta_accel_y\n\ 00116 int32 delta_accel_z\n\ 00117 \n\ 00118 # Bitmask\n\ 00119 uint8 STATUS_1_BAD_FRAME=1\n\ 00120 uint8 STATUS_2_BAD_FRAMES=2\n\ 00121 uint8 STATUS_3_BAD_FRAMES=4\n\ 00122 uint8 data_status\n\ 00123 \n\ 00124 uint8 imu_type\n\ 00125 uint8 imu_data_rate\n\ 00126 uint16 imu_status\n\ 00127 \n\ 00128 ================================================================================\n\ 00129 MSG: applanix_msgs/TimeDistance\n\ 00130 float64 time1\n\ 00131 float64 time2\n\ 00132 float64 distance\n\ 00133 uint8 time_types\n\ 00134 uint8 distance_type\n\ 00135 \n\ 00136 "; } 00137 public: 00138 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00139 00140 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00141 00142 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00143 { 00144 ros::serialization::OStream stream(write_ptr, 1000000000); 00145 ros::serialization::serialize(stream, td); 00146 ros::serialization::serialize(stream, delta_velocity_x); 00147 ros::serialization::serialize(stream, delta_velocity_y); 00148 ros::serialization::serialize(stream, delta_velocity_z); 00149 ros::serialization::serialize(stream, delta_accel_x); 00150 ros::serialization::serialize(stream, delta_accel_y); 00151 ros::serialization::serialize(stream, delta_accel_z); 00152 ros::serialization::serialize(stream, data_status); 00153 ros::serialization::serialize(stream, imu_type); 00154 ros::serialization::serialize(stream, imu_data_rate); 00155 ros::serialization::serialize(stream, imu_status); 00156 return stream.getData(); 00157 } 00158 00159 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00160 { 00161 ros::serialization::IStream stream(read_ptr, 1000000000); 00162 ros::serialization::deserialize(stream, td); 00163 ros::serialization::deserialize(stream, delta_velocity_x); 00164 ros::serialization::deserialize(stream, delta_velocity_y); 00165 ros::serialization::deserialize(stream, delta_velocity_z); 00166 ros::serialization::deserialize(stream, delta_accel_x); 00167 ros::serialization::deserialize(stream, delta_accel_y); 00168 ros::serialization::deserialize(stream, delta_accel_z); 00169 ros::serialization::deserialize(stream, data_status); 00170 ros::serialization::deserialize(stream, imu_type); 00171 ros::serialization::deserialize(stream, imu_data_rate); 00172 ros::serialization::deserialize(stream, imu_status); 00173 return stream.getData(); 00174 } 00175 00176 ROS_DEPRECATED virtual uint32_t serializationLength() const 00177 { 00178 uint32_t size = 0; 00179 size += ros::serialization::serializationLength(td); 00180 size += ros::serialization::serializationLength(delta_velocity_x); 00181 size += ros::serialization::serializationLength(delta_velocity_y); 00182 size += ros::serialization::serializationLength(delta_velocity_z); 00183 size += ros::serialization::serializationLength(delta_accel_x); 00184 size += ros::serialization::serializationLength(delta_accel_y); 00185 size += ros::serialization::serializationLength(delta_accel_z); 00186 size += ros::serialization::serializationLength(data_status); 00187 size += ros::serialization::serializationLength(imu_type); 00188 size += ros::serialization::serializationLength(imu_data_rate); 00189 size += ros::serialization::serializationLength(imu_status); 00190 return size; 00191 } 00192 00193 typedef boost::shared_ptr< ::applanix_msgs::IMUData_<ContainerAllocator> > Ptr; 00194 typedef boost::shared_ptr< ::applanix_msgs::IMUData_<ContainerAllocator> const> ConstPtr; 00195 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00196 }; // struct IMUData 00197 typedef ::applanix_msgs::IMUData_<std::allocator<void> > IMUData; 00198 00199 typedef boost::shared_ptr< ::applanix_msgs::IMUData> IMUDataPtr; 00200 typedef boost::shared_ptr< ::applanix_msgs::IMUData const> IMUDataConstPtr; 00201 00202 00203 template<typename ContainerAllocator> 00204 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::IMUData_<ContainerAllocator> & v) 00205 { 00206 ros::message_operations::Printer< ::applanix_msgs::IMUData_<ContainerAllocator> >::stream(s, "", v); 00207 return s;} 00208 00209 } // namespace applanix_msgs 00210 00211 namespace ros 00212 { 00213 namespace message_traits 00214 { 00215 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IMUData_<ContainerAllocator> > : public TrueType {}; 00216 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IMUData_<ContainerAllocator> const> : public TrueType {}; 00217 template<class ContainerAllocator> 00218 struct MD5Sum< ::applanix_msgs::IMUData_<ContainerAllocator> > { 00219 static const char* value() 00220 { 00221 return "053d6fea1c52bdd03cea4527050e0a11"; 00222 } 00223 00224 static const char* value(const ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 00225 static const uint64_t static_value1 = 0x053d6fea1c52bdd0ULL; 00226 static const uint64_t static_value2 = 0x3cea4527050e0a11ULL; 00227 }; 00228 00229 template<class ContainerAllocator> 00230 struct DataType< ::applanix_msgs::IMUData_<ContainerAllocator> > { 00231 static const char* value() 00232 { 00233 return "applanix_msgs/IMUData"; 00234 } 00235 00236 static const char* value(const ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 00237 }; 00238 00239 template<class ContainerAllocator> 00240 struct Definition< ::applanix_msgs::IMUData_<ContainerAllocator> > { 00241 static const char* value() 00242 { 00243 return "TimeDistance td\n\ 00244 \n\ 00245 #uint8[24] data\n\ 00246 int32 delta_velocity_x\n\ 00247 int32 delta_velocity_y\n\ 00248 int32 delta_velocity_z\n\ 00249 \n\ 00250 int32 delta_accel_x\n\ 00251 int32 delta_accel_y\n\ 00252 int32 delta_accel_z\n\ 00253 \n\ 00254 # Bitmask\n\ 00255 uint8 STATUS_1_BAD_FRAME=1\n\ 00256 uint8 STATUS_2_BAD_FRAMES=2\n\ 00257 uint8 STATUS_3_BAD_FRAMES=4\n\ 00258 uint8 data_status\n\ 00259 \n\ 00260 uint8 imu_type\n\ 00261 uint8 imu_data_rate\n\ 00262 uint16 imu_status\n\ 00263 \n\ 00264 ================================================================================\n\ 00265 MSG: applanix_msgs/TimeDistance\n\ 00266 float64 time1\n\ 00267 float64 time2\n\ 00268 float64 distance\n\ 00269 uint8 time_types\n\ 00270 uint8 distance_type\n\ 00271 \n\ 00272 "; 00273 } 00274 00275 static const char* value(const ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 00276 }; 00277 00278 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::IMUData_<ContainerAllocator> > : public TrueType {}; 00279 } // namespace message_traits 00280 } // namespace ros 00281 00282 namespace ros 00283 { 00284 namespace serialization 00285 { 00286 00287 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::IMUData_<ContainerAllocator> > 00288 { 00289 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00290 { 00291 stream.next(m.td); 00292 stream.next(m.delta_velocity_x); 00293 stream.next(m.delta_velocity_y); 00294 stream.next(m.delta_velocity_z); 00295 stream.next(m.delta_accel_x); 00296 stream.next(m.delta_accel_y); 00297 stream.next(m.delta_accel_z); 00298 stream.next(m.data_status); 00299 stream.next(m.imu_type); 00300 stream.next(m.imu_data_rate); 00301 stream.next(m.imu_status); 00302 } 00303 00304 ROS_DECLARE_ALLINONE_SERIALIZER; 00305 }; // struct IMUData_ 00306 } // namespace serialization 00307 } // namespace ros 00308 00309 namespace ros 00310 { 00311 namespace message_operations 00312 { 00313 00314 template<class ContainerAllocator> 00315 struct Printer< ::applanix_msgs::IMUData_<ContainerAllocator> > 00316 { 00317 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::IMUData_<ContainerAllocator> & v) 00318 { 00319 s << indent << "td: "; 00320 s << std::endl; 00321 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00322 s << indent << "delta_velocity_x: "; 00323 Printer<int32_t>::stream(s, indent + " ", v.delta_velocity_x); 00324 s << indent << "delta_velocity_y: "; 00325 Printer<int32_t>::stream(s, indent + " ", v.delta_velocity_y); 00326 s << indent << "delta_velocity_z: "; 00327 Printer<int32_t>::stream(s, indent + " ", v.delta_velocity_z); 00328 s << indent << "delta_accel_x: "; 00329 Printer<int32_t>::stream(s, indent + " ", v.delta_accel_x); 00330 s << indent << "delta_accel_y: "; 00331 Printer<int32_t>::stream(s, indent + " ", v.delta_accel_y); 00332 s << indent << "delta_accel_z: "; 00333 Printer<int32_t>::stream(s, indent + " ", v.delta_accel_z); 00334 s << indent << "data_status: "; 00335 Printer<uint8_t>::stream(s, indent + " ", v.data_status); 00336 s << indent << "imu_type: "; 00337 Printer<uint8_t>::stream(s, indent + " ", v.imu_type); 00338 s << indent << "imu_data_rate: "; 00339 Printer<uint8_t>::stream(s, indent + " ", v.imu_data_rate); 00340 s << indent << "imu_status: "; 00341 Printer<uint16_t>::stream(s, indent + " ", v.imu_status); 00342 } 00343 }; 00344 00345 00346 } // namespace message_operations 00347 } // namespace ros 00348 00349 #endif // APPLANIX_MSGS_MESSAGE_IMUDATA_H 00350