$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_knowledge/msg/CUAction.msg */ 00002 #ifndef SRS_KNOWLEDGE_MESSAGE_CUACTION_H 00003 #define SRS_KNOWLEDGE_MESSAGE_CUACTION_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 #include "srs_knowledge/GenericAction.h" 00018 00019 namespace srs_knowledge 00020 { 00021 template <class ContainerAllocator> 00022 struct CUAction_ { 00023 typedef CUAction_<ContainerAllocator> Type; 00024 00025 CUAction_() 00026 : status(0) 00027 , generic() 00028 , actionType() 00029 { 00030 } 00031 00032 CUAction_(const ContainerAllocator& _alloc) 00033 : status(0) 00034 , generic(_alloc) 00035 , actionType(_alloc) 00036 { 00037 } 00038 00039 typedef int32_t _status_type; 00040 int32_t status; 00041 00042 typedef ::srs_knowledge::GenericAction_<ContainerAllocator> _generic_type; 00043 ::srs_knowledge::GenericAction_<ContainerAllocator> generic; 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _actionType_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > actionType; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "srs_knowledge/CUAction"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "dd380bff1522657abc20274417168b83"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# still at alpha stage. not finalised yet. \n\ 00065 \n\ 00066 # indicate if task finished successfully (1); no feasible solution (-1); continue executing the given actions in this message (0)\n\ 00067 int32 status\n\ 00068 \n\ 00069 # [ifNavigate, ifDetect, ifGrasp]. 0: yes, 1: no, 2: others (undefined)\n\ 00070 #int32[] actionFlags\n\ 00071 \n\ 00072 #MoveAction ma\n\ 00073 #PerceptionAction pa\n\ 00074 #GraspAction ga\n\ 00075 GenericAction generic\n\ 00076 \n\ 00077 # move, perception, grasp, or generic\n\ 00078 string actionType\n\ 00079 ================================================================================\n\ 00080 MSG: srs_knowledge/GenericAction\n\ 00081 # use a list as the information container of an action\n\ 00082 # BE CAREFUL WHEN USING IT. FOR FLEXIBILITY REASON OR TESTING NEW ADDED ACTION TYPE \n\ 00083 # string[] actionInfo # to deprecate\n\ 00084 string jsonActionInfo\n\ 00085 \n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, status); 00096 ros::serialization::serialize(stream, generic); 00097 ros::serialization::serialize(stream, actionType); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00102 { 00103 ros::serialization::IStream stream(read_ptr, 1000000000); 00104 ros::serialization::deserialize(stream, status); 00105 ros::serialization::deserialize(stream, generic); 00106 ros::serialization::deserialize(stream, actionType); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(status); 00114 size += ros::serialization::serializationLength(generic); 00115 size += ros::serialization::serializationLength(actionType); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::srs_knowledge::CUAction_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::srs_knowledge::CUAction_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct CUAction 00123 typedef ::srs_knowledge::CUAction_<std::allocator<void> > CUAction; 00124 00125 typedef boost::shared_ptr< ::srs_knowledge::CUAction> CUActionPtr; 00126 typedef boost::shared_ptr< ::srs_knowledge::CUAction const> CUActionConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::CUAction_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::srs_knowledge::CUAction_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace srs_knowledge 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::CUAction_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::CUAction_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::srs_knowledge::CUAction_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "dd380bff1522657abc20274417168b83"; 00148 } 00149 00150 static const char* value(const ::srs_knowledge::CUAction_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0xdd380bff1522657aULL; 00152 static const uint64_t static_value2 = 0xbc20274417168b83ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::srs_knowledge::CUAction_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "srs_knowledge/CUAction"; 00160 } 00161 00162 static const char* value(const ::srs_knowledge::CUAction_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::srs_knowledge::CUAction_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "# still at alpha stage. not finalised yet. \n\ 00170 \n\ 00171 # indicate if task finished successfully (1); no feasible solution (-1); continue executing the given actions in this message (0)\n\ 00172 int32 status\n\ 00173 \n\ 00174 # [ifNavigate, ifDetect, ifGrasp]. 0: yes, 1: no, 2: others (undefined)\n\ 00175 #int32[] actionFlags\n\ 00176 \n\ 00177 #MoveAction ma\n\ 00178 #PerceptionAction pa\n\ 00179 #GraspAction ga\n\ 00180 GenericAction generic\n\ 00181 \n\ 00182 # move, perception, grasp, or generic\n\ 00183 string actionType\n\ 00184 ================================================================================\n\ 00185 MSG: srs_knowledge/GenericAction\n\ 00186 # use a list as the information container of an action\n\ 00187 # BE CAREFUL WHEN USING IT. FOR FLEXIBILITY REASON OR TESTING NEW ADDED ACTION TYPE \n\ 00188 # string[] actionInfo # to deprecate\n\ 00189 string jsonActionInfo\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::srs_knowledge::CUAction_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 } // namespace message_traits 00198 } // namespace ros 00199 00200 namespace ros 00201 { 00202 namespace serialization 00203 { 00204 00205 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::CUAction_<ContainerAllocator> > 00206 { 00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00208 { 00209 stream.next(m.status); 00210 stream.next(m.generic); 00211 stream.next(m.actionType); 00212 } 00213 00214 ROS_DECLARE_ALLINONE_SERIALIZER; 00215 }; // struct CUAction_ 00216 } // namespace serialization 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace message_operations 00222 { 00223 00224 template<class ContainerAllocator> 00225 struct Printer< ::srs_knowledge::CUAction_<ContainerAllocator> > 00226 { 00227 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::CUAction_<ContainerAllocator> & v) 00228 { 00229 s << indent << "status: "; 00230 Printer<int32_t>::stream(s, indent + " ", v.status); 00231 s << indent << "generic: "; 00232 s << std::endl; 00233 Printer< ::srs_knowledge::GenericAction_<ContainerAllocator> >::stream(s, indent + " ", v.generic); 00234 s << indent << "actionType: "; 00235 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.actionType); 00236 } 00237 }; 00238 00239 00240 } // namespace message_operations 00241 } // namespace ros 00242 00243 #endif // SRS_KNOWLEDGE_MESSAGE_CUACTION_H 00244