Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::srs_decision_making_interface::srs_actionFeedback_<std::allocator<void> > srs_actionFeedback;
00058
00059 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback> srs_actionFeedbackPtr;
00060 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionFeedback const> srs_actionFeedbackConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> >::stream(s, "", v);
00067 return s;}
00068
00069 }
00070
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "0e36b97f48749b0648782cf298eb80be";
00082 }
00083
00084 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0x0e36b97f48749b06ULL;
00086 static const uint64_t static_value2 = 0x48782cf298eb80beULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "srs_decision_making_interface/srs_actionFeedback";
00094 }
00095
00096 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00104 #define a feedback message\n\
00105 string current_state # to deprecate\n\
00106 bool solution_required # to deprecate\n\
00107 uint32 exceptional_case_id # to deprecate\n\
00108 string json_feedback # new added feedback in json (test by ze)\n\
00109 \n\
00110 \n\
00111 ";
00112 }
00113
00114 static const char* value(const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> &) { return value(); }
00115 };
00116
00117 }
00118 }
00119
00120 namespace ros
00121 {
00122 namespace serialization
00123 {
00124
00125 template<class ContainerAllocator> struct Serializer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> >
00126 {
00127 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00128 {
00129 stream.next(m.current_state);
00130 stream.next(m.solution_required);
00131 stream.next(m.exceptional_case_id);
00132 stream.next(m.json_feedback);
00133 }
00134
00135 ROS_DECLARE_ALLINONE_SERIALIZER;
00136 };
00137 }
00138 }
00139
00140 namespace ros
00141 {
00142 namespace message_operations
00143 {
00144
00145 template<class ContainerAllocator>
00146 struct Printer< ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> >
00147 {
00148 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_decision_making_interface::srs_actionFeedback_<ContainerAllocator> & v)
00149 {
00150 s << indent << "current_state: ";
00151 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.current_state);
00152 s << indent << "solution_required: ";
00153 Printer<uint8_t>::stream(s, indent + " ", v.solution_required);
00154 s << indent << "exceptional_case_id: ";
00155 Printer<uint32_t>::stream(s, indent + " ", v.exceptional_case_id);
00156 s << indent << "json_feedback: ";
00157 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.json_feedback);
00158 }
00159 };
00160
00161
00162 }
00163 }
00164
00165 #endif // SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONFEEDBACK_H
00166