$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_quadrotor/hector_uav_msgs/msg/RawImu.msg */ 00002 #ifndef HECTOR_UAV_MSGS_MESSAGE_RAWIMU_H 00003 #define HECTOR_UAV_MSGS_MESSAGE_RAWIMU_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 "std_msgs/Header.h" 00018 00019 namespace hector_uav_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct RawImu_ { 00023 typedef RawImu_<ContainerAllocator> Type; 00024 00025 RawImu_() 00026 : header() 00027 , angular_velocity() 00028 , linear_acceleration() 00029 { 00030 angular_velocity.assign(0); 00031 linear_acceleration.assign(0); 00032 } 00033 00034 RawImu_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , angular_velocity() 00037 , linear_acceleration() 00038 { 00039 angular_velocity.assign(0); 00040 linear_acceleration.assign(0); 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef boost::array<uint16_t, 3> _angular_velocity_type; 00047 boost::array<uint16_t, 3> angular_velocity; 00048 00049 typedef boost::array<uint16_t, 3> _linear_acceleration_type; 00050 boost::array<uint16_t, 3> linear_acceleration; 00051 00052 00053 ROS_DEPRECATED uint32_t get_angular_velocity_size() const { return (uint32_t)angular_velocity.size(); } 00054 ROS_DEPRECATED uint32_t get_linear_acceleration_size() const { return (uint32_t)linear_acceleration.size(); } 00055 private: 00056 static const char* __s_getDataType_() { return "hector_uav_msgs/RawImu"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00059 00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00061 00062 private: 00063 static const char* __s_getMD5Sum_() { return "0879a838e899792bcf72ccfe7b5595ef"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00066 00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00068 00069 private: 00070 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00071 uint16[3] angular_velocity\n\ 00072 uint16[3] linear_acceleration\n\ 00073 \n\ 00074 ================================================================================\n\ 00075 MSG: std_msgs/Header\n\ 00076 # Standard metadata for higher-level stamped data types.\n\ 00077 # This is generally used to communicate timestamped data \n\ 00078 # in a particular coordinate frame.\n\ 00079 # \n\ 00080 # sequence ID: consecutively increasing ID \n\ 00081 uint32 seq\n\ 00082 #Two-integer timestamp that is expressed as:\n\ 00083 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00084 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00085 # time-handling sugar is provided by the client library\n\ 00086 time stamp\n\ 00087 #Frame this data is associated with\n\ 00088 # 0: no frame\n\ 00089 # 1: global frame\n\ 00090 string frame_id\n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, header); 00102 ros::serialization::serialize(stream, angular_velocity); 00103 ros::serialization::serialize(stream, linear_acceleration); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, header); 00111 ros::serialization::deserialize(stream, angular_velocity); 00112 ros::serialization::deserialize(stream, linear_acceleration); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(header); 00120 size += ros::serialization::serializationLength(angular_velocity); 00121 size += ros::serialization::serializationLength(linear_acceleration); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct RawImu 00129 typedef ::hector_uav_msgs::RawImu_<std::allocator<void> > RawImu; 00130 00131 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu> RawImuPtr; 00132 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu const> RawImuConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::hector_uav_msgs::RawImu_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::hector_uav_msgs::RawImu_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace hector_uav_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawImu_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::hector_uav_msgs::RawImu_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "0879a838e899792bcf72ccfe7b5595ef"; 00154 } 00155 00156 static const char* value(const ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x0879a838e899792bULL; 00158 static const uint64_t static_value2 = 0xcf72ccfe7b5595efULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::hector_uav_msgs::RawImu_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "hector_uav_msgs/RawImu"; 00166 } 00167 00168 static const char* value(const ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::hector_uav_msgs::RawImu_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "Header header\n\ 00176 uint16[3] angular_velocity\n\ 00177 uint16[3] linear_acceleration\n\ 00178 \n\ 00179 ================================================================================\n\ 00180 MSG: std_msgs/Header\n\ 00181 # Standard metadata for higher-level stamped data types.\n\ 00182 # This is generally used to communicate timestamped data \n\ 00183 # in a particular coordinate frame.\n\ 00184 # \n\ 00185 # sequence ID: consecutively increasing ID \n\ 00186 uint32 seq\n\ 00187 #Two-integer timestamp that is expressed as:\n\ 00188 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00189 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00190 # time-handling sugar is provided by the client library\n\ 00191 time stamp\n\ 00192 #Frame this data is associated with\n\ 00193 # 0: no frame\n\ 00194 # 1: global frame\n\ 00195 string frame_id\n\ 00196 \n\ 00197 "; 00198 } 00199 00200 static const char* value(const ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 00201 }; 00202 00203 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {}; 00204 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {}; 00205 } // namespace message_traits 00206 } // namespace ros 00207 00208 namespace ros 00209 { 00210 namespace serialization 00211 { 00212 00213 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::RawImu_<ContainerAllocator> > 00214 { 00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00216 { 00217 stream.next(m.header); 00218 stream.next(m.angular_velocity); 00219 stream.next(m.linear_acceleration); 00220 } 00221 00222 ROS_DECLARE_ALLINONE_SERIALIZER; 00223 }; // struct RawImu_ 00224 } // namespace serialization 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace message_operations 00230 { 00231 00232 template<class ContainerAllocator> 00233 struct Printer< ::hector_uav_msgs::RawImu_<ContainerAllocator> > 00234 { 00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_uav_msgs::RawImu_<ContainerAllocator> & v) 00236 { 00237 s << indent << "header: "; 00238 s << std::endl; 00239 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00240 s << indent << "angular_velocity[]" << std::endl; 00241 for (size_t i = 0; i < v.angular_velocity.size(); ++i) 00242 { 00243 s << indent << " angular_velocity[" << i << "]: "; 00244 Printer<uint16_t>::stream(s, indent + " ", v.angular_velocity[i]); 00245 } 00246 s << indent << "linear_acceleration[]" << std::endl; 00247 for (size_t i = 0; i < v.linear_acceleration.size(); ++i) 00248 { 00249 s << indent << " linear_acceleration[" << i << "]: "; 00250 Printer<uint16_t>::stream(s, indent + " ", v.linear_acceleration[i]); 00251 } 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // HECTOR_UAV_MSGS_MESSAGE_RAWIMU_H 00260