Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_ACK_H
00003 #define APPLANIX_MSGS_MESSAGE_ACK_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 Ack_ {
00022 typedef Ack_<ContainerAllocator> Type;
00023
00024 Ack_()
00025 : transaction(0)
00026 , id(0)
00027 , response_code(0)
00028 , params_status(0)
00029 , error_parameter_name()
00030 {
00031 error_parameter_name.assign(0);
00032 }
00033
00034 Ack_(const ContainerAllocator& _alloc)
00035 : transaction(0)
00036 , id(0)
00037 , response_code(0)
00038 , params_status(0)
00039 , error_parameter_name()
00040 {
00041 error_parameter_name.assign(0);
00042 }
00043
00044 typedef uint16_t _transaction_type;
00045 uint16_t transaction;
00046
00047 typedef uint16_t _id_type;
00048 uint16_t id;
00049
00050 typedef uint16_t _response_code_type;
00051 uint16_t response_code;
00052
00053 typedef uint8_t _params_status_type;
00054 uint8_t params_status;
00055
00056 typedef boost::array<uint8_t, 32> _error_parameter_name_type;
00057 boost::array<uint8_t, 32> error_parameter_name;
00058
00059 enum { RESPONSE_NOT_APPLICABLE = 0 };
00060 enum { RESPONSE_ACCEPTED = 1 };
00061 enum { RESPONSE_ACCEPTED_TOO_LONG = 2 };
00062 enum { RESPONSE_ACCEPTED_TOO_SHORT = 3 };
00063 enum { RESPONSE_PARAM_ERROR = 4 };
00064 enum { RESPONSE_NOT_APPLICABLE_IN_CURRENT_STATE = 5 };
00065 enum { RESPONSE_DATA_NOT_AVAILABLE = 6 };
00066 enum { RESPONSE_MESSAGE_START_ERROR = 7 };
00067 enum { RESPONSE_MESSAGE_END_ERROR = 8 };
00068 enum { RESPONSE_BYTE_COUNT_ERROR = 9 };
00069 enum { RESPONSE_CHECKSUM_ERROR = 10 };
00070 enum { PARAMS_NO_CHANGE = 0 };
00071 enum { PARAMS_CHANGE = 1 };
00072
00073 typedef boost::shared_ptr< ::applanix_msgs::Ack_<ContainerAllocator> > Ptr;
00074 typedef boost::shared_ptr< ::applanix_msgs::Ack_<ContainerAllocator> const> ConstPtr;
00075 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 };
00077 typedef ::applanix_msgs::Ack_<std::allocator<void> > Ack;
00078
00079 typedef boost::shared_ptr< ::applanix_msgs::Ack> AckPtr;
00080 typedef boost::shared_ptr< ::applanix_msgs::Ack const> AckConstPtr;
00081
00082
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::Ack_<ContainerAllocator> & v)
00085 {
00086 ros::message_operations::Printer< ::applanix_msgs::Ack_<ContainerAllocator> >::stream(s, "", v);
00087 return s;}
00088
00089 }
00090
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Ack_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Ack_<ContainerAllocator> const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::applanix_msgs::Ack_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "f84607dc6beaf1cb6772d23af7221bdf";
00102 }
00103
00104 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); }
00105 static const uint64_t static_value1 = 0xf84607dc6beaf1cbULL;
00106 static const uint64_t static_value2 = 0x6772d23af7221bdfULL;
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct DataType< ::applanix_msgs::Ack_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "applanix_msgs/Ack";
00114 }
00115
00116 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct Definition< ::applanix_msgs::Ack_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "uint16 transaction\n\
00124 uint16 id\n\
00125 \n\
00126 uint16 RESPONSE_NOT_APPLICABLE=0\n\
00127 uint16 RESPONSE_ACCEPTED=1\n\
00128 uint16 RESPONSE_ACCEPTED_TOO_LONG=2\n\
00129 uint16 RESPONSE_ACCEPTED_TOO_SHORT=3\n\
00130 uint16 RESPONSE_PARAM_ERROR=4\n\
00131 uint16 RESPONSE_NOT_APPLICABLE_IN_CURRENT_STATE=5\n\
00132 uint16 RESPONSE_DATA_NOT_AVAILABLE=6\n\
00133 uint16 RESPONSE_MESSAGE_START_ERROR=7\n\
00134 uint16 RESPONSE_MESSAGE_END_ERROR=8\n\
00135 uint16 RESPONSE_BYTE_COUNT_ERROR=9\n\
00136 uint16 RESPONSE_CHECKSUM_ERROR=10\n\
00137 uint16 response_code\n\
00138 \n\
00139 uint8 PARAMS_NO_CHANGE=0\n\
00140 uint8 PARAMS_CHANGE=1\n\
00141 uint8 params_status\n\
00142 \n\
00143 uint8[32] error_parameter_name\n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::Ack_<ContainerAllocator> > : public TrueType {};
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace serialization
00158 {
00159
00160 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::Ack_<ContainerAllocator> >
00161 {
00162 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00163 {
00164 stream.next(m.transaction);
00165 stream.next(m.id);
00166 stream.next(m.response_code);
00167 stream.next(m.params_status);
00168 stream.next(m.error_parameter_name);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::applanix_msgs::Ack_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::Ack_<ContainerAllocator> & v)
00185 {
00186 s << indent << "transaction: ";
00187 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00188 s << indent << "id: ";
00189 Printer<uint16_t>::stream(s, indent + " ", v.id);
00190 s << indent << "response_code: ";
00191 Printer<uint16_t>::stream(s, indent + " ", v.response_code);
00192 s << indent << "params_status: ";
00193 Printer<uint8_t>::stream(s, indent + " ", v.params_status);
00194 s << indent << "error_parameter_name[]" << std::endl;
00195 for (size_t i = 0; i < v.error_parameter_name.size(); ++i)
00196 {
00197 s << indent << " error_parameter_name[" << i << "]: ";
00198 Printer<uint8_t>::stream(s, indent + " ", v.error_parameter_name[i]);
00199 }
00200 }
00201 };
00202
00203
00204 }
00205 }
00206
00207 #endif // APPLANIX_MSGS_MESSAGE_ACK_H
00208