$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_actionGoal.msg */ 00002 #ifndef SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONGOAL_H 00003 #define SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONGOAL_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_actionGoal_ { 00022 typedef srs_actionGoal_<ContainerAllocator> Type; 00023 00024 srs_actionGoal_() 00025 : action() 00026 , parameter() 00027 , priority(0) 00028 , json_parameters() 00029 { 00030 } 00031 00032 srs_actionGoal_(const ContainerAllocator& _alloc) 00033 : action(_alloc) 00034 , parameter(_alloc) 00035 , priority(0) 00036 , json_parameters(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _action_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > action; 00042 00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _parameter_type; 00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > parameter; 00045 00046 typedef uint32_t _priority_type; 00047 uint32_t priority; 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _json_parameters_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > json_parameters; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "srs_decision_making_interface/srs_actionGoal"; } 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 "17ace6d839845ba28d596f5bde7e89f1"; } 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 the goal, srs_msgs/srs_action[] action_sequence #Specify what action sequence to be applied\n\ 00070 string action # to deprecate, replaced by json_parameters. Kept for backward compatibility\n\ 00071 string parameter # to deprecate, replaced by json_parameters\n\ 00072 uint32 priority # to deprecate\n\ 00073 string json_parameters # new added parameter in json (test by Ze)\n\ 00074 # string[] parameters # to deprecate\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, action); 00086 ros::serialization::serialize(stream, parameter); 00087 ros::serialization::serialize(stream, priority); 00088 ros::serialization::serialize(stream, json_parameters); 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, action); 00096 ros::serialization::deserialize(stream, parameter); 00097 ros::serialization::deserialize(stream, priority); 00098 ros::serialization::deserialize(stream, json_parameters); 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(action); 00106 size += ros::serialization::serializationLength(parameter); 00107 size += ros::serialization::serializationLength(priority); 00108 size += ros::serialization::serializationLength(json_parameters); 00109 return size; 00110 } 00111 00112 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> > Ptr; 00113 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> const> ConstPtr; 00114 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00115 }; // struct srs_actionGoal 00116 typedef ::srs_decision_making_interface::srs_actionGoal_<std::allocator<void> > srs_actionGoal; 00117 00118 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionGoal> srs_actionGoalPtr; 00119 typedef boost::shared_ptr< ::srs_decision_making_interface::srs_actionGoal const> srs_actionGoalConstPtr; 00120 00121 00122 template<typename ContainerAllocator> 00123 std::ostream& operator<<(std::ostream& s, const ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> & v) 00124 { 00125 ros::message_operations::Printer< ::srs_decision_making_interface::srs_actionGoal_<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_actionGoal_<ContainerAllocator> > : public TrueType {}; 00135 template<class ContainerAllocator> struct IsMessage< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> const> : public TrueType {}; 00136 template<class ContainerAllocator> 00137 struct MD5Sum< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "17ace6d839845ba28d596f5bde7e89f1"; 00141 } 00142 00143 static const char* value(const ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> &) { return value(); } 00144 static const uint64_t static_value1 = 0x17ace6d839845ba2ULL; 00145 static const uint64_t static_value2 = 0x8d596f5bde7e89f1ULL; 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct DataType< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "srs_decision_making_interface/srs_actionGoal"; 00153 } 00154 00155 static const char* value(const ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> &) { return value(); } 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct Definition< ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00163 #define the goal, srs_msgs/srs_action[] action_sequence #Specify what action sequence to be applied\n\ 00164 string action # to deprecate, replaced by json_parameters. Kept for backward compatibility\n\ 00165 string parameter # to deprecate, replaced by json_parameters\n\ 00166 uint32 priority # to deprecate\n\ 00167 string json_parameters # new added parameter in json (test by Ze)\n\ 00168 # string[] parameters # to deprecate\n\ 00169 \n\ 00170 "; 00171 } 00172 00173 static const char* value(const ::srs_decision_making_interface::srs_actionGoal_<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_actionGoal_<ContainerAllocator> > 00185 { 00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00187 { 00188 stream.next(m.action); 00189 stream.next(m.parameter); 00190 stream.next(m.priority); 00191 stream.next(m.json_parameters); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct srs_actionGoal_ 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_actionGoal_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_decision_making_interface::srs_actionGoal_<ContainerAllocator> & v) 00208 { 00209 s << indent << "action: "; 00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.action); 00211 s << indent << "parameter: "; 00212 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.parameter); 00213 s << indent << "priority: "; 00214 Printer<uint32_t>::stream(s, indent + " ", v.priority); 00215 s << indent << "json_parameters: "; 00216 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.json_parameters); 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // SRS_DECISION_MAKING_INTERFACE_MESSAGE_SRS_ACTIONGOAL_H 00225