$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/Ack.msg */ 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 ROS_DEPRECATED uint32_t get_error_parameter_name_size() const { return (uint32_t)error_parameter_name.size(); } 00074 private: 00075 static const char* __s_getDataType_() { return "applanix_msgs/Ack"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00078 00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00080 00081 private: 00082 static const char* __s_getMD5Sum_() { return "f84607dc6beaf1cb6772d23af7221bdf"; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00085 00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00087 00088 private: 00089 static const char* __s_getMessageDefinition_() { return "uint16 transaction\n\ 00090 uint16 id\n\ 00091 \n\ 00092 uint16 RESPONSE_NOT_APPLICABLE=0\n\ 00093 uint16 RESPONSE_ACCEPTED=1\n\ 00094 uint16 RESPONSE_ACCEPTED_TOO_LONG=2\n\ 00095 uint16 RESPONSE_ACCEPTED_TOO_SHORT=3\n\ 00096 uint16 RESPONSE_PARAM_ERROR=4\n\ 00097 uint16 RESPONSE_NOT_APPLICABLE_IN_CURRENT_STATE=5\n\ 00098 uint16 RESPONSE_DATA_NOT_AVAILABLE=6\n\ 00099 uint16 RESPONSE_MESSAGE_START_ERROR=7\n\ 00100 uint16 RESPONSE_MESSAGE_END_ERROR=8\n\ 00101 uint16 RESPONSE_BYTE_COUNT_ERROR=9\n\ 00102 uint16 RESPONSE_CHECKSUM_ERROR=10\n\ 00103 uint16 response_code\n\ 00104 \n\ 00105 uint8 PARAMS_NO_CHANGE=0\n\ 00106 uint8 PARAMS_CHANGE=1\n\ 00107 uint8 params_status\n\ 00108 \n\ 00109 uint8[32] error_parameter_name\n\ 00110 \n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, transaction); 00121 ros::serialization::serialize(stream, id); 00122 ros::serialization::serialize(stream, response_code); 00123 ros::serialization::serialize(stream, params_status); 00124 ros::serialization::serialize(stream, error_parameter_name); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, transaction); 00132 ros::serialization::deserialize(stream, id); 00133 ros::serialization::deserialize(stream, response_code); 00134 ros::serialization::deserialize(stream, params_status); 00135 ros::serialization::deserialize(stream, error_parameter_name); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint32_t serializationLength() const 00140 { 00141 uint32_t size = 0; 00142 size += ros::serialization::serializationLength(transaction); 00143 size += ros::serialization::serializationLength(id); 00144 size += ros::serialization::serializationLength(response_code); 00145 size += ros::serialization::serializationLength(params_status); 00146 size += ros::serialization::serializationLength(error_parameter_name); 00147 return size; 00148 } 00149 00150 typedef boost::shared_ptr< ::applanix_msgs::Ack_<ContainerAllocator> > Ptr; 00151 typedef boost::shared_ptr< ::applanix_msgs::Ack_<ContainerAllocator> const> ConstPtr; 00152 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00153 }; // struct Ack 00154 typedef ::applanix_msgs::Ack_<std::allocator<void> > Ack; 00155 00156 typedef boost::shared_ptr< ::applanix_msgs::Ack> AckPtr; 00157 typedef boost::shared_ptr< ::applanix_msgs::Ack const> AckConstPtr; 00158 00159 00160 template<typename ContainerAllocator> 00161 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::Ack_<ContainerAllocator> & v) 00162 { 00163 ros::message_operations::Printer< ::applanix_msgs::Ack_<ContainerAllocator> >::stream(s, "", v); 00164 return s;} 00165 00166 } // namespace applanix_msgs 00167 00168 namespace ros 00169 { 00170 namespace message_traits 00171 { 00172 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Ack_<ContainerAllocator> > : public TrueType {}; 00173 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Ack_<ContainerAllocator> const> : public TrueType {}; 00174 template<class ContainerAllocator> 00175 struct MD5Sum< ::applanix_msgs::Ack_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "f84607dc6beaf1cb6772d23af7221bdf"; 00179 } 00180 00181 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); } 00182 static const uint64_t static_value1 = 0xf84607dc6beaf1cbULL; 00183 static const uint64_t static_value2 = 0x6772d23af7221bdfULL; 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct DataType< ::applanix_msgs::Ack_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "applanix_msgs/Ack"; 00191 } 00192 00193 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); } 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct Definition< ::applanix_msgs::Ack_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "uint16 transaction\n\ 00201 uint16 id\n\ 00202 \n\ 00203 uint16 RESPONSE_NOT_APPLICABLE=0\n\ 00204 uint16 RESPONSE_ACCEPTED=1\n\ 00205 uint16 RESPONSE_ACCEPTED_TOO_LONG=2\n\ 00206 uint16 RESPONSE_ACCEPTED_TOO_SHORT=3\n\ 00207 uint16 RESPONSE_PARAM_ERROR=4\n\ 00208 uint16 RESPONSE_NOT_APPLICABLE_IN_CURRENT_STATE=5\n\ 00209 uint16 RESPONSE_DATA_NOT_AVAILABLE=6\n\ 00210 uint16 RESPONSE_MESSAGE_START_ERROR=7\n\ 00211 uint16 RESPONSE_MESSAGE_END_ERROR=8\n\ 00212 uint16 RESPONSE_BYTE_COUNT_ERROR=9\n\ 00213 uint16 RESPONSE_CHECKSUM_ERROR=10\n\ 00214 uint16 response_code\n\ 00215 \n\ 00216 uint8 PARAMS_NO_CHANGE=0\n\ 00217 uint8 PARAMS_CHANGE=1\n\ 00218 uint8 params_status\n\ 00219 \n\ 00220 uint8[32] error_parameter_name\n\ 00221 \n\ 00222 "; 00223 } 00224 00225 static const char* value(const ::applanix_msgs::Ack_<ContainerAllocator> &) { return value(); } 00226 }; 00227 00228 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::Ack_<ContainerAllocator> > : public TrueType {}; 00229 } // namespace message_traits 00230 } // namespace ros 00231 00232 namespace ros 00233 { 00234 namespace serialization 00235 { 00236 00237 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::Ack_<ContainerAllocator> > 00238 { 00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00240 { 00241 stream.next(m.transaction); 00242 stream.next(m.id); 00243 stream.next(m.response_code); 00244 stream.next(m.params_status); 00245 stream.next(m.error_parameter_name); 00246 } 00247 00248 ROS_DECLARE_ALLINONE_SERIALIZER; 00249 }; // struct Ack_ 00250 } // namespace serialization 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace message_operations 00256 { 00257 00258 template<class ContainerAllocator> 00259 struct Printer< ::applanix_msgs::Ack_<ContainerAllocator> > 00260 { 00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::Ack_<ContainerAllocator> & v) 00262 { 00263 s << indent << "transaction: "; 00264 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00265 s << indent << "id: "; 00266 Printer<uint16_t>::stream(s, indent + " ", v.id); 00267 s << indent << "response_code: "; 00268 Printer<uint16_t>::stream(s, indent + " ", v.response_code); 00269 s << indent << "params_status: "; 00270 Printer<uint8_t>::stream(s, indent + " ", v.params_status); 00271 s << indent << "error_parameter_name[]" << std::endl; 00272 for (size_t i = 0; i < v.error_parameter_name.size(); ++i) 00273 { 00274 s << indent << " error_parameter_name[" << i << "]: "; 00275 Printer<uint8_t>::stream(s, indent + " ", v.error_parameter_name[i]); 00276 } 00277 } 00278 }; 00279 00280 00281 } // namespace message_operations 00282 } // namespace ros 00283 00284 #endif // APPLANIX_MSGS_MESSAGE_ACK_H 00285