Go to the documentation of this file.00001
00002 #ifndef SENSOR_FUSION_COMM_MESSAGE_EXTEKF_H
00003 #define SENSOR_FUSION_COMM_MESSAGE_EXTEKF_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 #include "geometry_msgs/Vector3.h"
00019 #include "geometry_msgs/Vector3.h"
00020
00021 namespace sensor_fusion_comm
00022 {
00023 template <class ContainerAllocator>
00024 struct ExtEkf_ {
00025 typedef ExtEkf_<ContainerAllocator> Type;
00026
00027 ExtEkf_()
00028 : header()
00029 , angular_velocity()
00030 , linear_acceleration()
00031 , state()
00032 , flag(0)
00033 {
00034 }
00035
00036 ExtEkf_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , angular_velocity(_alloc)
00039 , linear_acceleration(_alloc)
00040 , state(_alloc)
00041 , flag(0)
00042 {
00043 }
00044
00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00046 ::std_msgs::Header_<ContainerAllocator> header;
00047
00048 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _angular_velocity_type;
00049 ::geometry_msgs::Vector3_<ContainerAllocator> angular_velocity;
00050
00051 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _linear_acceleration_type;
00052 ::geometry_msgs::Vector3_<ContainerAllocator> linear_acceleration;
00053
00054 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _state_type;
00055 std::vector<float, typename ContainerAllocator::template rebind<float>::other > state;
00056
00057 typedef int32_t _flag_type;
00058 int32_t flag;
00059
00060 enum { ignore_state = 0 };
00061 enum { current_state = 1 };
00062 enum { initialization = 2 };
00063 enum { state_correction = 3 };
00064
00065 typedef boost::shared_ptr< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > Ptr;
00066 typedef boost::shared_ptr< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> const> ConstPtr;
00067 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 };
00069 typedef ::sensor_fusion_comm::ExtEkf_<std::allocator<void> > ExtEkf;
00070
00071 typedef boost::shared_ptr< ::sensor_fusion_comm::ExtEkf> ExtEkfPtr;
00072 typedef boost::shared_ptr< ::sensor_fusion_comm::ExtEkf const> ExtEkfConstPtr;
00073
00074
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> & v)
00077 {
00078 ros::message_operations::Printer< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> >::stream(s, "", v);
00079 return s;}
00080
00081 }
00082
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "0710aec5a114bc946c3d7687c8e5a0bd";
00094 }
00095
00096 static const char* value(const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> &) { return value(); }
00097 static const uint64_t static_value1 = 0x0710aec5a114bc94ULL;
00098 static const uint64_t static_value2 = 0x6c3d7687c8e5a0bdULL;
00099 };
00100
00101 template<class ContainerAllocator>
00102 struct DataType< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "sensor_fusion_comm/ExtEkf";
00106 }
00107
00108 static const char* value(const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> &) { return value(); }
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct Definition< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "Header header\n\
00116 geometry_msgs/Vector3 angular_velocity\n\
00117 geometry_msgs/Vector3 linear_acceleration\n\
00118 float32[] state\n\
00119 int32 flag\n\
00120 \n\
00121 uint32 ignore_state = 0\n\
00122 uint32 current_state = 1\n\
00123 uint32 initialization = 2\n\
00124 uint32 state_correction = 3\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: std_msgs/Header\n\
00128 # Standard metadata for higher-level stamped data types.\n\
00129 # This is generally used to communicate timestamped data \n\
00130 # in a particular coordinate frame.\n\
00131 # \n\
00132 # sequence ID: consecutively increasing ID \n\
00133 uint32 seq\n\
00134 #Two-integer timestamp that is expressed as:\n\
00135 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00136 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00137 # time-handling sugar is provided by the client library\n\
00138 time stamp\n\
00139 #Frame this data is associated with\n\
00140 # 0: no frame\n\
00141 # 1: global frame\n\
00142 string frame_id\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: geometry_msgs/Vector3\n\
00146 # This represents a vector in free space. \n\
00147 \n\
00148 float64 x\n\
00149 float64 y\n\
00150 float64 z\n\
00151 ";
00152 }
00153
00154 static const char* value(const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator> struct HasHeader< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > : public TrueType {};
00158 template<class ContainerAllocator> struct HasHeader< const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> > : public TrueType {};
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.header);
00172 stream.next(m.angular_velocity);
00173 stream.next(m.linear_acceleration);
00174 stream.next(m.state);
00175 stream.next(m.flag);
00176 }
00177
00178 ROS_DECLARE_ALLINONE_SERIALIZER;
00179 };
00180 }
00181 }
00182
00183 namespace ros
00184 {
00185 namespace message_operations
00186 {
00187
00188 template<class ContainerAllocator>
00189 struct Printer< ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> >
00190 {
00191 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_fusion_comm::ExtEkf_<ContainerAllocator> & v)
00192 {
00193 s << indent << "header: ";
00194 s << std::endl;
00195 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00196 s << indent << "angular_velocity: ";
00197 s << std::endl;
00198 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.angular_velocity);
00199 s << indent << "linear_acceleration: ";
00200 s << std::endl;
00201 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.linear_acceleration);
00202 s << indent << "state[]" << std::endl;
00203 for (size_t i = 0; i < v.state.size(); ++i)
00204 {
00205 s << indent << " state[" << i << "]: ";
00206 Printer<float>::stream(s, indent + " ", v.state[i]);
00207 }
00208 s << indent << "flag: ";
00209 Printer<int32_t>::stream(s, indent + " ", v.flag);
00210 }
00211 };
00212
00213
00214 }
00215 }
00216
00217 #endif // SENSOR_FUSION_COMM_MESSAGE_EXTEKF_H
00218