Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_RAWDATA_H
00003 #define APPLANIX_MSGS_MESSAGE_RAWDATA_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 RawData_ {
00023 typedef RawData_<ContainerAllocator> Type;
00024
00025 RawData_()
00026 : td()
00027 , receiver_type(0)
00028 , reserved(0)
00029 , message()
00030 {
00031 }
00032
00033 RawData_(const ContainerAllocator& _alloc)
00034 : td(_alloc)
00035 , receiver_type(0)
00036 , reserved(0)
00037 , message(_alloc)
00038 {
00039 }
00040
00041 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type;
00042 ::applanix_msgs::TimeDistance_<ContainerAllocator> td;
00043
00044 typedef uint16_t _receiver_type_type;
00045 uint16_t receiver_type;
00046
00047 typedef uint32_t _reserved_type;
00048 uint32_t reserved;
00049
00050 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _message_type;
00051 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > message;
00052
00053
00054 typedef boost::shared_ptr< ::applanix_msgs::RawData_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::applanix_msgs::RawData_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::applanix_msgs::RawData_<std::allocator<void> > RawData;
00059
00060 typedef boost::shared_ptr< ::applanix_msgs::RawData> RawDataPtr;
00061 typedef boost::shared_ptr< ::applanix_msgs::RawData const> RawDataConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::RawData_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::applanix_msgs::RawData_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawData_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawData_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::applanix_msgs::RawData_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "4422a864e3d230d8a0aeaca79366f060";
00083 }
00084
00085 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0x4422a864e3d230d8ULL;
00087 static const uint64_t static_value2 = 0xa0aeaca79366f060ULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::applanix_msgs::RawData_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "applanix_msgs/RawData";
00095 }
00096
00097 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::applanix_msgs::RawData_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "# Groups 23, 24, 10001, 10007, 10008, 10011, 10012\n\
00105 TimeDistance td\n\
00106 \n\
00107 uint16 receiver_type\n\
00108 uint32 reserved\n\
00109 \n\
00110 uint8[] message\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: applanix_msgs/TimeDistance\n\
00114 float64 time1\n\
00115 float64 time2\n\
00116 float64 distance\n\
00117 uint8 time_types\n\
00118 uint8 distance_type\n\
00119 \n\
00120 ";
00121 }
00122
00123 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133
00134 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::RawData_<ContainerAllocator> >
00135 {
00136 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137 {
00138 stream.next(m.td);
00139 stream.next(m.receiver_type);
00140 stream.next(m.reserved);
00141 stream.next(m.message);
00142 }
00143
00144 ROS_DECLARE_ALLINONE_SERIALIZER;
00145 };
00146 }
00147 }
00148
00149 namespace ros
00150 {
00151 namespace message_operations
00152 {
00153
00154 template<class ContainerAllocator>
00155 struct Printer< ::applanix_msgs::RawData_<ContainerAllocator> >
00156 {
00157 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::RawData_<ContainerAllocator> & v)
00158 {
00159 s << indent << "td: ";
00160 s << std::endl;
00161 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00162 s << indent << "receiver_type: ";
00163 Printer<uint16_t>::stream(s, indent + " ", v.receiver_type);
00164 s << indent << "reserved: ";
00165 Printer<uint32_t>::stream(s, indent + " ", v.reserved);
00166 s << indent << "message[]" << std::endl;
00167 for (size_t i = 0; i < v.message.size(); ++i)
00168 {
00169 s << indent << " message[" << i << "]: ";
00170 Printer<uint8_t>::stream(s, indent + " ", v.message[i]);
00171 }
00172 }
00173 };
00174
00175
00176 }
00177 }
00178
00179 #endif // APPLANIX_MSGS_MESSAGE_RAWDATA_H
00180