$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-client_rosjava_jni/doc_stacks/2013-03-01_14-31-08.788202/client_rosjava_jni/test_rosjava_jni/msg/TestBadDataTypes.msg */ 00002 #ifndef TEST_ROSJAVA_JNI_MESSAGE_TESTBADDATATYPES_H 00003 #define TEST_ROSJAVA_JNI_MESSAGE_TESTBADDATATYPES_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 "std_msgs/Byte.h" 00018 #include "std_msgs/ByteMultiArray.h" 00019 00020 namespace test_rosjava_jni 00021 { 00022 template <class ContainerAllocator> 00023 struct TestBadDataTypes_ { 00024 typedef TestBadDataTypes_<ContainerAllocator> Type; 00025 00026 TestBadDataTypes_() 00027 : Byte_f() 00028 , ByteMultiArray_f() 00029 { 00030 } 00031 00032 TestBadDataTypes_(const ContainerAllocator& _alloc) 00033 : Byte_f() 00034 , ByteMultiArray_f() 00035 { 00036 Byte_f.assign( ::std_msgs::Byte_<ContainerAllocator> (_alloc)); 00037 ByteMultiArray_f.assign( ::std_msgs::ByteMultiArray_<ContainerAllocator> (_alloc)); 00038 } 00039 00040 typedef boost::array< ::std_msgs::Byte_<ContainerAllocator> , 2> _Byte_f_type; 00041 boost::array< ::std_msgs::Byte_<ContainerAllocator> , 2> Byte_f; 00042 00043 typedef boost::array< ::std_msgs::ByteMultiArray_<ContainerAllocator> , 1> _ByteMultiArray_f_type; 00044 boost::array< ::std_msgs::ByteMultiArray_<ContainerAllocator> , 1> ByteMultiArray_f; 00045 00046 00047 ROS_DEPRECATED uint32_t get_Byte_f_size() const { return (uint32_t)Byte_f.size(); } 00048 ROS_DEPRECATED uint32_t get_ByteMultiArray_f_size() const { return (uint32_t)ByteMultiArray_f.size(); } 00049 private: 00050 static const char* __s_getDataType_() { return "test_rosjava_jni/TestBadDataTypes"; } 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 "f0fea41d38f14ed745582d619f53bcd0"; } 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 "# Unfortunately, can't test these fully because roscpp message generation\n\ 00065 # is broken. \n\ 00066 \n\ 00067 std_msgs/Byte[2] Byte_f\n\ 00068 std_msgs/ByteMultiArray[1] ByteMultiArray_f\n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: std_msgs/Byte\n\ 00072 byte data\n\ 00073 \n\ 00074 ================================================================================\n\ 00075 MSG: std_msgs/ByteMultiArray\n\ 00076 # Please look at the MultiArrayLayout message definition for\n\ 00077 # documentation on all multiarrays.\n\ 00078 \n\ 00079 MultiArrayLayout layout # specification of data layout\n\ 00080 byte[] data # array of data\n\ 00081 \n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: std_msgs/MultiArrayLayout\n\ 00085 # The multiarray declares a generic multi-dimensional array of a\n\ 00086 # particular data type. Dimensions are ordered from outer most\n\ 00087 # to inner most.\n\ 00088 \n\ 00089 MultiArrayDimension[] dim # Array of dimension properties\n\ 00090 uint32 data_offset # padding bytes at front of data\n\ 00091 \n\ 00092 # Accessors should ALWAYS be written in terms of dimension stride\n\ 00093 # and specified outer-most dimension first.\n\ 00094 # \n\ 00095 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\ 00096 #\n\ 00097 # A standard, 3-channel 640x480 image with interleaved color channels\n\ 00098 # would be specified as:\n\ 00099 #\n\ 00100 # dim[0].label = \"height\"\n\ 00101 # dim[0].size = 480\n\ 00102 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\ 00103 # dim[1].label = \"width\"\n\ 00104 # dim[1].size = 640\n\ 00105 # dim[1].stride = 3*640 = 1920\n\ 00106 # dim[2].label = \"channel\"\n\ 00107 # dim[2].size = 3\n\ 00108 # dim[2].stride = 3\n\ 00109 #\n\ 00110 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\ 00111 ================================================================================\n\ 00112 MSG: std_msgs/MultiArrayDimension\n\ 00113 string label # label of given dimension\n\ 00114 uint32 size # size of given dimension (in type units)\n\ 00115 uint32 stride # stride of given dimension\n\ 00116 "; } 00117 public: 00118 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00119 00120 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00121 00122 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00123 { 00124 ros::serialization::OStream stream(write_ptr, 1000000000); 00125 ros::serialization::serialize(stream, Byte_f); 00126 ros::serialization::serialize(stream, ByteMultiArray_f); 00127 return stream.getData(); 00128 } 00129 00130 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00131 { 00132 ros::serialization::IStream stream(read_ptr, 1000000000); 00133 ros::serialization::deserialize(stream, Byte_f); 00134 ros::serialization::deserialize(stream, ByteMultiArray_f); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint32_t serializationLength() const 00139 { 00140 uint32_t size = 0; 00141 size += ros::serialization::serializationLength(Byte_f); 00142 size += ros::serialization::serializationLength(ByteMultiArray_f); 00143 return size; 00144 } 00145 00146 typedef boost::shared_ptr< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > Ptr; 00147 typedef boost::shared_ptr< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> const> ConstPtr; 00148 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00149 }; // struct TestBadDataTypes 00150 typedef ::test_rosjava_jni::TestBadDataTypes_<std::allocator<void> > TestBadDataTypes; 00151 00152 typedef boost::shared_ptr< ::test_rosjava_jni::TestBadDataTypes> TestBadDataTypesPtr; 00153 typedef boost::shared_ptr< ::test_rosjava_jni::TestBadDataTypes const> TestBadDataTypesConstPtr; 00154 00155 00156 template<typename ContainerAllocator> 00157 std::ostream& operator<<(std::ostream& s, const ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> & v) 00158 { 00159 ros::message_operations::Printer< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> >::stream(s, "", v); 00160 return s;} 00161 00162 } // namespace test_rosjava_jni 00163 00164 namespace ros 00165 { 00166 namespace message_traits 00167 { 00168 template<class ContainerAllocator> struct IsMessage< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > : public TrueType {}; 00169 template<class ContainerAllocator> struct IsMessage< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> const> : public TrueType {}; 00170 template<class ContainerAllocator> 00171 struct MD5Sum< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "f0fea41d38f14ed745582d619f53bcd0"; 00175 } 00176 00177 static const char* value(const ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> &) { return value(); } 00178 static const uint64_t static_value1 = 0xf0fea41d38f14ed7ULL; 00179 static const uint64_t static_value2 = 0x45582d619f53bcd0ULL; 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct DataType< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "test_rosjava_jni/TestBadDataTypes"; 00187 } 00188 00189 static const char* value(const ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> &) { return value(); } 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct Definition< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "# Unfortunately, can't test these fully because roscpp message generation\n\ 00197 # is broken. \n\ 00198 \n\ 00199 std_msgs/Byte[2] Byte_f\n\ 00200 std_msgs/ByteMultiArray[1] ByteMultiArray_f\n\ 00201 \n\ 00202 ================================================================================\n\ 00203 MSG: std_msgs/Byte\n\ 00204 byte data\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: std_msgs/ByteMultiArray\n\ 00208 # Please look at the MultiArrayLayout message definition for\n\ 00209 # documentation on all multiarrays.\n\ 00210 \n\ 00211 MultiArrayLayout layout # specification of data layout\n\ 00212 byte[] data # array of data\n\ 00213 \n\ 00214 \n\ 00215 ================================================================================\n\ 00216 MSG: std_msgs/MultiArrayLayout\n\ 00217 # The multiarray declares a generic multi-dimensional array of a\n\ 00218 # particular data type. Dimensions are ordered from outer most\n\ 00219 # to inner most.\n\ 00220 \n\ 00221 MultiArrayDimension[] dim # Array of dimension properties\n\ 00222 uint32 data_offset # padding bytes at front of data\n\ 00223 \n\ 00224 # Accessors should ALWAYS be written in terms of dimension stride\n\ 00225 # and specified outer-most dimension first.\n\ 00226 # \n\ 00227 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\ 00228 #\n\ 00229 # A standard, 3-channel 640x480 image with interleaved color channels\n\ 00230 # would be specified as:\n\ 00231 #\n\ 00232 # dim[0].label = \"height\"\n\ 00233 # dim[0].size = 480\n\ 00234 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\ 00235 # dim[1].label = \"width\"\n\ 00236 # dim[1].size = 640\n\ 00237 # dim[1].stride = 3*640 = 1920\n\ 00238 # dim[2].label = \"channel\"\n\ 00239 # dim[2].size = 3\n\ 00240 # dim[2].stride = 3\n\ 00241 #\n\ 00242 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\ 00243 ================================================================================\n\ 00244 MSG: std_msgs/MultiArrayDimension\n\ 00245 string label # label of given dimension\n\ 00246 uint32 size # size of given dimension (in type units)\n\ 00247 uint32 stride # stride of given dimension\n\ 00248 "; 00249 } 00250 00251 static const char* value(const ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> &) { return value(); } 00252 }; 00253 00254 } // namespace message_traits 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace serialization 00260 { 00261 00262 template<class ContainerAllocator> struct Serializer< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > 00263 { 00264 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00265 { 00266 stream.next(m.Byte_f); 00267 stream.next(m.ByteMultiArray_f); 00268 } 00269 00270 ROS_DECLARE_ALLINONE_SERIALIZER; 00271 }; // struct TestBadDataTypes_ 00272 } // namespace serialization 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace message_operations 00278 { 00279 00280 template<class ContainerAllocator> 00281 struct Printer< ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> > 00282 { 00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rosjava_jni::TestBadDataTypes_<ContainerAllocator> & v) 00284 { 00285 s << indent << "Byte_f[]" << std::endl; 00286 for (size_t i = 0; i < v.Byte_f.size(); ++i) 00287 { 00288 s << indent << " Byte_f[" << i << "]: "; 00289 s << std::endl; 00290 s << indent; 00291 Printer< ::std_msgs::Byte_<ContainerAllocator> >::stream(s, indent + " ", v.Byte_f[i]); 00292 } 00293 s << indent << "ByteMultiArray_f[]" << std::endl; 00294 for (size_t i = 0; i < v.ByteMultiArray_f.size(); ++i) 00295 { 00296 s << indent << " ByteMultiArray_f[" << i << "]: "; 00297 s << std::endl; 00298 s << indent; 00299 Printer< ::std_msgs::ByteMultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.ByteMultiArray_f[i]); 00300 } 00301 } 00302 }; 00303 00304 00305 } // namespace message_operations 00306 } // namespace ros 00307 00308 #endif // TEST_ROSJAVA_JNI_MESSAGE_TESTBADDATATYPES_H 00309