$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/PerceptionAction.msg */ 00002 #ifndef SRS_KNOWLEDGE_MESSAGE_PERCEPTIONACTION_H 00003 #define SRS_KNOWLEDGE_MESSAGE_PERCEPTIONACTION_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/ABoxObject.h" 00018 #include "srs_knowledge/TBoxObject.h" 00019 00020 namespace srs_knowledge 00021 { 00022 template <class ContainerAllocator> 00023 struct PerceptionAction_ { 00024 typedef PerceptionAction_<ContainerAllocator> Type; 00025 00026 PerceptionAction_() 00027 : detectType() 00028 , aboxObject() 00029 , tboxClass() 00030 { 00031 } 00032 00033 PerceptionAction_(const ContainerAllocator& _alloc) 00034 : detectType(_alloc) 00035 , aboxObject(_alloc) 00036 , tboxClass(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _detectType_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > detectType; 00042 00043 typedef ::srs_knowledge::ABoxObject_<ContainerAllocator> _aboxObject_type; 00044 ::srs_knowledge::ABoxObject_<ContainerAllocator> aboxObject; 00045 00046 typedef ::srs_knowledge::TBoxObject_<ContainerAllocator> _tboxClass_type; 00047 ::srs_knowledge::TBoxObject_<ContainerAllocator> tboxClass; 00048 00049 00050 private: 00051 static const char* __s_getDataType_() { return "srs_knowledge/PerceptionAction"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "815ae920af48073fc94b8835cc3d5ea6"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "# if detect an object or a class: object:class:none\n\ 00066 string detectType\n\ 00067 \n\ 00068 ABoxObject aboxObject\n\ 00069 TBoxObject tboxClass\n\ 00070 ================================================================================\n\ 00071 MSG: srs_knowledge/ABoxObject\n\ 00072 int32 object_id\n\ 00073 string name\n\ 00074 string description\n\ 00075 \n\ 00076 ================================================================================\n\ 00077 MSG: srs_knowledge/TBoxObject\n\ 00078 int32 class_id\n\ 00079 string name\n\ 00080 string description\n\ 00081 string[] properties\n\ 00082 int32[] subjects\n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, detectType); 00093 ros::serialization::serialize(stream, aboxObject); 00094 ros::serialization::serialize(stream, tboxClass); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, detectType); 00102 ros::serialization::deserialize(stream, aboxObject); 00103 ros::serialization::deserialize(stream, tboxClass); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(detectType); 00111 size += ros::serialization::serializationLength(aboxObject); 00112 size += ros::serialization::serializationLength(tboxClass); 00113 return size; 00114 } 00115 00116 typedef boost::shared_ptr< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > Ptr; 00117 typedef boost::shared_ptr< ::srs_knowledge::PerceptionAction_<ContainerAllocator> const> ConstPtr; 00118 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00119 }; // struct PerceptionAction 00120 typedef ::srs_knowledge::PerceptionAction_<std::allocator<void> > PerceptionAction; 00121 00122 typedef boost::shared_ptr< ::srs_knowledge::PerceptionAction> PerceptionActionPtr; 00123 typedef boost::shared_ptr< ::srs_knowledge::PerceptionAction const> PerceptionActionConstPtr; 00124 00125 00126 template<typename ContainerAllocator> 00127 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::PerceptionAction_<ContainerAllocator> & v) 00128 { 00129 ros::message_operations::Printer< ::srs_knowledge::PerceptionAction_<ContainerAllocator> >::stream(s, "", v); 00130 return s;} 00131 00132 } // namespace srs_knowledge 00133 00134 namespace ros 00135 { 00136 namespace message_traits 00137 { 00138 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > : public TrueType {}; 00139 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::PerceptionAction_<ContainerAllocator> const> : public TrueType {}; 00140 template<class ContainerAllocator> 00141 struct MD5Sum< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "815ae920af48073fc94b8835cc3d5ea6"; 00145 } 00146 00147 static const char* value(const ::srs_knowledge::PerceptionAction_<ContainerAllocator> &) { return value(); } 00148 static const uint64_t static_value1 = 0x815ae920af48073fULL; 00149 static const uint64_t static_value2 = 0xc94b8835cc3d5ea6ULL; 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct DataType< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "srs_knowledge/PerceptionAction"; 00157 } 00158 00159 static const char* value(const ::srs_knowledge::PerceptionAction_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 template<class ContainerAllocator> 00163 struct Definition< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "# if detect an object or a class: object:class:none\n\ 00167 string detectType\n\ 00168 \n\ 00169 ABoxObject aboxObject\n\ 00170 TBoxObject tboxClass\n\ 00171 ================================================================================\n\ 00172 MSG: srs_knowledge/ABoxObject\n\ 00173 int32 object_id\n\ 00174 string name\n\ 00175 string description\n\ 00176 \n\ 00177 ================================================================================\n\ 00178 MSG: srs_knowledge/TBoxObject\n\ 00179 int32 class_id\n\ 00180 string name\n\ 00181 string description\n\ 00182 string[] properties\n\ 00183 int32[] subjects\n\ 00184 "; 00185 } 00186 00187 static const char* value(const ::srs_knowledge::PerceptionAction_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 } // namespace message_traits 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace serialization 00196 { 00197 00198 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > 00199 { 00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00201 { 00202 stream.next(m.detectType); 00203 stream.next(m.aboxObject); 00204 stream.next(m.tboxClass); 00205 } 00206 00207 ROS_DECLARE_ALLINONE_SERIALIZER; 00208 }; // struct PerceptionAction_ 00209 } // namespace serialization 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace message_operations 00215 { 00216 00217 template<class ContainerAllocator> 00218 struct Printer< ::srs_knowledge::PerceptionAction_<ContainerAllocator> > 00219 { 00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::PerceptionAction_<ContainerAllocator> & v) 00221 { 00222 s << indent << "detectType: "; 00223 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.detectType); 00224 s << indent << "aboxObject: "; 00225 s << std::endl; 00226 Printer< ::srs_knowledge::ABoxObject_<ContainerAllocator> >::stream(s, indent + " ", v.aboxObject); 00227 s << indent << "tboxClass: "; 00228 s << std::endl; 00229 Printer< ::srs_knowledge::TBoxObject_<ContainerAllocator> >::stream(s, indent + " ", v.tboxClass); 00230 } 00231 }; 00232 00233 00234 } // namespace message_operations 00235 } // namespace ros 00236 00237 #endif // SRS_KNOWLEDGE_MESSAGE_PERCEPTIONACTION_H 00238