$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_decision_making_interface/msg/srs_actionFeedback.msg */ 00002 #ifndef SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONFEEDBACK_H 00003 #define SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONFEEDBACK_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 srs_decision_making_interface 00019 { 00020 template <class ContainerAllocator> 00021 struct srs_actionFeedback_ { 00022 typedef srs_actionFeedback_<ContainerAllocator> Type; 00023 00024 srs_actionFeedback_() 00025 : current_state() 00026 , solution_required(false) 00027 , exceptional_case_id(0) 00028 , json_feedback() 00029 { 00030 } 00031 00032 srs_actionFeedback_(const ContainerAllocator& _alloc) 00033 : current_state(_alloc) 00034 , solution_required(false) 00035 , exceptional_case_id(0) 00036 , json_feedback(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _current_state_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > current_state; 00042 00043 typedef uint8_t _solution_required_type; 00044 uint8_t solution_required; 00045 00046 typedef uint32_t _exceptional_case_id_type; 00047 uint32_t exceptional_case_id; 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _json_feedback_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > json_feedback; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "srs_decision_making_interface/srs_actionFeedback"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "0e36b97f48749b0648782cf298eb80be"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00069 #define a feedback message\n\ 00070 string current_state # to deprecate\n\ 00071 bool solution_required # to deprecate\n\ 00072 uint32 exceptional_case_id # to deprecate\n\ 00073 string json_feedback # new added feedback in json (test by ze)\n\ 00074 \n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, current_state); 00086 ros::serialization::serialize(stream, solution_required); 00087 ros::serialization::serialize(stream, exceptional_case_id); 00088 ros::serialization::serialize(stream, json_feedback); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00093 { 00094 ros::serialization::IStream stream(read_ptr, 1000000000); 00095 ros::serialization::deserialize(stream, current_state); 00096 ros::serialization::deserialize(stream, solution_required); 00097 ros::serialization::deserialize(stream, exceptional_case_id); 00098 ros::serialization::deserialize(stream, json_feedback); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(current_state); 00106 size += ros::serialization::serializationLength(solution_required); 00107 size += ros::serialization::serializationLength(exceptional_case_id); 00108 size += ros::serialization::serializationLength(json_feedback); 00109 return size; 00110 } 00111 00112 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > Ptr; 00113 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> const> ConstPtr; 00114 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00115 }; // struct srs_actionFeedback 00116 typedef ::srs_decision_making_interface::srs_actionFeedback_<std::allocator<void> > srs_actionFeedback; 00117 00118 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback> srs_actionFeedbackPtr; 00119 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback const> srs_actionFeedbackConstPtr; 00120 00121 00122 template<typename ContainerAllocator> 00123 std::ostream& operator<<(std::ostream& s, const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> & v) 00124 { 00125 ros::message_operations::Printer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> >::stream(s, "", v); 00126 return s;} 00127 00128 } // namespace srs_decision_making_interface 00129 00130 namespace ros 00131 { 00132 namespace message_traits 00133 { 00134 template<class ContainerAllocator> struct IsMessage< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > : public TrueType {}; 00135 template<class ContainerAllocator> struct IsMessage< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> const> : public TrueType {}; 00136 template<class ContainerAllocator> 00137 struct MD5Sum< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "0e36b97f48749b0648782cf298eb80be"; 00141 } 00142 00143 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); } 00144 static const uint64_t static_value1 = 0x0e36b97f48749b06ULL; 00145 static const uint64_t static_value2 = 0x48782cf298eb80beULL; 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct DataType< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "srs_decision_making_interface/srs_actionFeedback"; 00153 } 00154 00155 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); } 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct Definition< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00163 #define a feedback message\n\ 00164 string current_state # to deprecate\n\ 00165 bool solution_required # to deprecate\n\ 00166 uint32 exceptional_case_id # to deprecate\n\ 00167 string json_feedback # new added feedback in json (test by ze)\n\ 00168 \n\ 00169 \n\ 00170 "; 00171 } 00172 00173 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 } // namespace message_traits 00177 } // namespace ros 00178 00179 namespace ros 00180 { 00181 namespace serialization 00182 { 00183 00184 template<class ContainerAllocator> struct Serializer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > 00185 { 00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00187 { 00188 stream.next(m.current_state); 00189 stream.next(m.solution_required); 00190 stream.next(m.exceptional_case_id); 00191 stream.next(m.json_feedback); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct srs_actionFeedback_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> & v) 00208 { 00209 s << indent << "current_state: "; 00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.current_state); 00211 s << indent << "solution_required: "; 00212 Printer<uint8_t>::stream(s, indent + " ", v.solution_required); 00213 s << indent << "exceptional_case_id: "; 00214 Printer<uint32_t>::stream(s, indent + " ", v.exceptional_case_id); 00215 s << indent << "json_feedback: "; 00216 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.json_feedback); 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONFEEDBACK_H 00225