$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_common/doc_stacks/2013-03-02_13-44-44.967682/srs_common/srs_object_database_msgs/msg/grasp.msg */ 00002 #ifndef SRS_OBJECT_DATABASE_MSGS_MESSAGE_GRASP_H 00003 #define SRS_OBJECT_DATABASE_MSGS_MESSAGE_GRASP_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_object_database_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct grasp_ { 00022 typedef grasp_<ContainerAllocator> Type; 00023 00024 grasp_() 00025 : objectId(0) 00026 , Objecttype() 00027 , pose() 00028 , fileDescription() 00029 , bs() 00030 , size(0) 00031 { 00032 } 00033 00034 grasp_(const ContainerAllocator& _alloc) 00035 : objectId(0) 00036 , Objecttype(_alloc) 00037 , pose(_alloc) 00038 , fileDescription(_alloc) 00039 , bs(_alloc) 00040 , size(0) 00041 { 00042 } 00043 00044 typedef int32_t _objectId_type; 00045 int32_t objectId; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _Objecttype_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Objecttype; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _pose_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > pose; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _fileDescription_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > fileDescription; 00055 00056 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _bs_type; 00057 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > bs; 00058 00059 typedef int32_t _size_type; 00060 int32_t size; 00061 00062 00063 ROS_DEPRECATED uint32_t get_bs_size() const { return (uint32_t)bs.size(); } 00064 ROS_DEPRECATED void set_bs_size(uint32_t size) { bs.resize((size_t)size); } 00065 ROS_DEPRECATED void get_bs_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->bs; } 00066 ROS_DEPRECATED void set_bs_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->bs = vec; } 00067 private: 00068 static const char* __s_getDataType_() { return "srs_object_database_msgs/grasp"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00071 00072 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00073 00074 private: 00075 static const char* __s_getMD5Sum_() { return "cbd3885e5b559dd3c0fbffd8fcb36583"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getMessageDefinition_() { return "int32 objectId\n\ 00083 string Objecttype\n\ 00084 string pose\n\ 00085 string fileDescription\n\ 00086 uint8[] bs\n\ 00087 int32 size\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, objectId); 00099 ros::serialization::serialize(stream, Objecttype); 00100 ros::serialization::serialize(stream, pose); 00101 ros::serialization::serialize(stream, fileDescription); 00102 ros::serialization::serialize(stream, bs); 00103 ros::serialization::serialize(stream, size); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, objectId); 00111 ros::serialization::deserialize(stream, Objecttype); 00112 ros::serialization::deserialize(stream, pose); 00113 ros::serialization::deserialize(stream, fileDescription); 00114 ros::serialization::deserialize(stream, bs); 00115 ros::serialization::deserialize(stream, size); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(objectId); 00123 size += ros::serialization::serializationLength(Objecttype); 00124 size += ros::serialization::serializationLength(pose); 00125 size += ros::serialization::serializationLength(fileDescription); 00126 size += ros::serialization::serializationLength(bs); 00127 size += ros::serialization::serializationLength(size); 00128 return size; 00129 } 00130 00131 typedef boost::shared_ptr< ::srs_object_database_msgs::grasp_<ContainerAllocator> > Ptr; 00132 typedef boost::shared_ptr< ::srs_object_database_msgs::grasp_<ContainerAllocator> const> ConstPtr; 00133 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00134 }; // struct grasp 00135 typedef ::srs_object_database_msgs::grasp_<std::allocator<void> > grasp; 00136 00137 typedef boost::shared_ptr< ::srs_object_database_msgs::grasp> graspPtr; 00138 typedef boost::shared_ptr< ::srs_object_database_msgs::grasp const> graspConstPtr; 00139 00140 00141 template<typename ContainerAllocator> 00142 std::ostream& operator<<(std::ostream& s, const ::srs_object_database_msgs::grasp_<ContainerAllocator> & v) 00143 { 00144 ros::message_operations::Printer< ::srs_object_database_msgs::grasp_<ContainerAllocator> >::stream(s, "", v); 00145 return s;} 00146 00147 } // namespace srs_object_database_msgs 00148 00149 namespace ros 00150 { 00151 namespace message_traits 00152 { 00153 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::grasp_<ContainerAllocator> > : public TrueType {}; 00154 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::grasp_<ContainerAllocator> const> : public TrueType {}; 00155 template<class ContainerAllocator> 00156 struct MD5Sum< ::srs_object_database_msgs::grasp_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "cbd3885e5b559dd3c0fbffd8fcb36583"; 00160 } 00161 00162 static const char* value(const ::srs_object_database_msgs::grasp_<ContainerAllocator> &) { return value(); } 00163 static const uint64_t static_value1 = 0xcbd3885e5b559dd3ULL; 00164 static const uint64_t static_value2 = 0xc0fbffd8fcb36583ULL; 00165 }; 00166 00167 template<class ContainerAllocator> 00168 struct DataType< ::srs_object_database_msgs::grasp_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "srs_object_database_msgs/grasp"; 00172 } 00173 00174 static const char* value(const ::srs_object_database_msgs::grasp_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct Definition< ::srs_object_database_msgs::grasp_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "int32 objectId\n\ 00182 string Objecttype\n\ 00183 string pose\n\ 00184 string fileDescription\n\ 00185 uint8[] bs\n\ 00186 int32 size\n\ 00187 \n\ 00188 "; 00189 } 00190 00191 static const char* value(const ::srs_object_database_msgs::grasp_<ContainerAllocator> &) { return value(); } 00192 }; 00193 00194 } // namespace message_traits 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace serialization 00200 { 00201 00202 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::grasp_<ContainerAllocator> > 00203 { 00204 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00205 { 00206 stream.next(m.objectId); 00207 stream.next(m.Objecttype); 00208 stream.next(m.pose); 00209 stream.next(m.fileDescription); 00210 stream.next(m.bs); 00211 stream.next(m.size); 00212 } 00213 00214 ROS_DECLARE_ALLINONE_SERIALIZER; 00215 }; // struct grasp_ 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_object_database_msgs::grasp_<ContainerAllocator> > 00226 { 00227 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_object_database_msgs::grasp_<ContainerAllocator> & v) 00228 { 00229 s << indent << "objectId: "; 00230 Printer<int32_t>::stream(s, indent + " ", v.objectId); 00231 s << indent << "Objecttype: "; 00232 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.Objecttype); 00233 s << indent << "pose: "; 00234 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.pose); 00235 s << indent << "fileDescription: "; 00236 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.fileDescription); 00237 s << indent << "bs[]" << std::endl; 00238 for (size_t i = 0; i < v.bs.size(); ++i) 00239 { 00240 s << indent << " bs[" << i << "]: "; 00241 Printer<uint8_t>::stream(s, indent + " ", v.bs[i]); 00242 } 00243 s << indent << "size: "; 00244 Printer<int32_t>::stream(s, indent + " ", v.size); 00245 } 00246 }; 00247 00248 00249 } // namespace message_operations 00250 } // namespace ros 00251 00252 #endif // SRS_OBJECT_DATABASE_MSGS_MESSAGE_GRASP_H 00253