00001
00002 #ifndef STD_MSGS_MESSAGE_INT64MULTIARRAY_H
00003 #define STD_MSGS_MESSAGE_INT64MULTIARRAY_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/MultiArrayLayout.h"
00018
00019 namespace std_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Int64MultiArray_ {
00023 typedef Int64MultiArray_<ContainerAllocator> Type;
00024
00025 Int64MultiArray_()
00026 : layout()
00027 , data()
00028 {
00029 }
00030
00031 Int64MultiArray_(const ContainerAllocator& _alloc)
00032 : layout(_alloc)
00033 , data(_alloc)
00034 {
00035 }
00036
00037 typedef ::std_msgs::MultiArrayLayout_<ContainerAllocator> _layout_type;
00038 ::std_msgs::MultiArrayLayout_<ContainerAllocator> layout;
00039
00040 typedef std::vector<int64_t, typename ContainerAllocator::template rebind<int64_t>::other > _data_type;
00041 std::vector<int64_t, typename ContainerAllocator::template rebind<int64_t>::other > data;
00042
00043
00044 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); }
00045 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); }
00046 ROS_DEPRECATED void get_data_vec(std::vector<int64_t, typename ContainerAllocator::template rebind<int64_t>::other > & vec) const { vec = this->data; }
00047 ROS_DEPRECATED void set_data_vec(const std::vector<int64_t, typename ContainerAllocator::template rebind<int64_t>::other > & vec) { this->data = vec; }
00048 private:
00049 static const char* __s_getDataType_() { return "std_msgs/Int64MultiArray"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "54865aa6c65be0448113a2afc6a49270"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# Please look at the MultiArrayLayout message definition for\n\
00064 # documentation on all multiarrays.\n\
00065 \n\
00066 MultiArrayLayout layout # specification of data layout\n\
00067 int64[] data # array of data\n\
00068 \n\
00069 \n\
00070 ================================================================================\n\
00071 MSG: std_msgs/MultiArrayLayout\n\
00072 # The multiarray declares a generic multi-dimensional array of a\n\
00073 # particular data type. Dimensions are ordered from outer most\n\
00074 # to inner most.\n\
00075 \n\
00076 MultiArrayDimension[] dim # Array of dimension properties\n\
00077 uint32 data_offset # padding bytes at front of data\n\
00078 \n\
00079 # Accessors should ALWAYS be written in terms of dimension stride\n\
00080 # and specified outer-most dimension first.\n\
00081 # \n\
00082 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
00083 #\n\
00084 # A standard, 3-channel 640x480 image with interleaved color channels\n\
00085 # would be specified as:\n\
00086 #\n\
00087 # dim[0].label = \"height\"\n\
00088 # dim[0].size = 480\n\
00089 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\
00090 # dim[1].label = \"width\"\n\
00091 # dim[1].size = 640\n\
00092 # dim[1].stride = 3*640 = 1920\n\
00093 # dim[2].label = \"channel\"\n\
00094 # dim[2].size = 3\n\
00095 # dim[2].stride = 3\n\
00096 #\n\
00097 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
00098 ================================================================================\n\
00099 MSG: std_msgs/MultiArrayDimension\n\
00100 string label # label of given dimension\n\
00101 uint32 size # size of given dimension (in type units)\n\
00102 uint32 stride # stride of given dimension\n\
00103 "; }
00104 public:
00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00106
00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00108
00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00110 {
00111 ros::serialization::OStream stream(write_ptr, 1000000000);
00112 ros::serialization::serialize(stream, layout);
00113 ros::serialization::serialize(stream, data);
00114 return stream.getData();
00115 }
00116
00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00118 {
00119 ros::serialization::IStream stream(read_ptr, 1000000000);
00120 ros::serialization::deserialize(stream, layout);
00121 ros::serialization::deserialize(stream, data);
00122 return stream.getData();
00123 }
00124
00125 ROS_DEPRECATED virtual uint32_t serializationLength() const
00126 {
00127 uint32_t size = 0;
00128 size += ros::serialization::serializationLength(layout);
00129 size += ros::serialization::serializationLength(data);
00130 return size;
00131 }
00132
00133 typedef boost::shared_ptr< ::std_msgs::Int64MultiArray_<ContainerAllocator> > Ptr;
00134 typedef boost::shared_ptr< ::std_msgs::Int64MultiArray_<ContainerAllocator> const> ConstPtr;
00135 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00136 };
00137 typedef ::std_msgs::Int64MultiArray_<std::allocator<void> > Int64MultiArray;
00138
00139 typedef boost::shared_ptr< ::std_msgs::Int64MultiArray> Int64MultiArrayPtr;
00140 typedef boost::shared_ptr< ::std_msgs::Int64MultiArray const> Int64MultiArrayConstPtr;
00141
00142
00143 template<typename ContainerAllocator>
00144 std::ostream& operator<<(std::ostream& s, const ::std_msgs::Int64MultiArray_<ContainerAllocator> & v)
00145 {
00146 ros::message_operations::Printer< ::std_msgs::Int64MultiArray_<ContainerAllocator> >::stream(s, "", v);
00147 return s;}
00148
00149 }
00150
00151 namespace ros
00152 {
00153 namespace message_traits
00154 {
00155 template<class ContainerAllocator> struct IsMessage< ::std_msgs::Int64MultiArray_<ContainerAllocator> > : public TrueType {};
00156 template<class ContainerAllocator> struct IsMessage< ::std_msgs::Int64MultiArray_<ContainerAllocator> const> : public TrueType {};
00157 template<class ContainerAllocator>
00158 struct MD5Sum< ::std_msgs::Int64MultiArray_<ContainerAllocator> > {
00159 static const char* value()
00160 {
00161 return "54865aa6c65be0448113a2afc6a49270";
00162 }
00163
00164 static const char* value(const ::std_msgs::Int64MultiArray_<ContainerAllocator> &) { return value(); }
00165 static const uint64_t static_value1 = 0x54865aa6c65be044ULL;
00166 static const uint64_t static_value2 = 0x8113a2afc6a49270ULL;
00167 };
00168
00169 template<class ContainerAllocator>
00170 struct DataType< ::std_msgs::Int64MultiArray_<ContainerAllocator> > {
00171 static const char* value()
00172 {
00173 return "std_msgs/Int64MultiArray";
00174 }
00175
00176 static const char* value(const ::std_msgs::Int64MultiArray_<ContainerAllocator> &) { return value(); }
00177 };
00178
00179 template<class ContainerAllocator>
00180 struct Definition< ::std_msgs::Int64MultiArray_<ContainerAllocator> > {
00181 static const char* value()
00182 {
00183 return "# Please look at the MultiArrayLayout message definition for\n\
00184 # documentation on all multiarrays.\n\
00185 \n\
00186 MultiArrayLayout layout # specification of data layout\n\
00187 int64[] data # array of data\n\
00188 \n\
00189 \n\
00190 ================================================================================\n\
00191 MSG: std_msgs/MultiArrayLayout\n\
00192 # The multiarray declares a generic multi-dimensional array of a\n\
00193 # particular data type. Dimensions are ordered from outer most\n\
00194 # to inner most.\n\
00195 \n\
00196 MultiArrayDimension[] dim # Array of dimension properties\n\
00197 uint32 data_offset # padding bytes at front of data\n\
00198 \n\
00199 # Accessors should ALWAYS be written in terms of dimension stride\n\
00200 # and specified outer-most dimension first.\n\
00201 # \n\
00202 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
00203 #\n\
00204 # A standard, 3-channel 640x480 image with interleaved color channels\n\
00205 # would be specified as:\n\
00206 #\n\
00207 # dim[0].label = \"height\"\n\
00208 # dim[0].size = 480\n\
00209 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\
00210 # dim[1].label = \"width\"\n\
00211 # dim[1].size = 640\n\
00212 # dim[1].stride = 3*640 = 1920\n\
00213 # dim[2].label = \"channel\"\n\
00214 # dim[2].size = 3\n\
00215 # dim[2].stride = 3\n\
00216 #\n\
00217 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
00218 ================================================================================\n\
00219 MSG: std_msgs/MultiArrayDimension\n\
00220 string label # label of given dimension\n\
00221 uint32 size # size of given dimension (in type units)\n\
00222 uint32 stride # stride of given dimension\n\
00223 ";
00224 }
00225
00226 static const char* value(const ::std_msgs::Int64MultiArray_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236
00237 template<class ContainerAllocator> struct Serializer< ::std_msgs::Int64MultiArray_<ContainerAllocator> >
00238 {
00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240 {
00241 stream.next(m.layout);
00242 stream.next(m.data);
00243 }
00244
00245 ROS_DECLARE_ALLINONE_SERIALIZER;
00246 };
00247 }
00248 }
00249
00250 namespace ros
00251 {
00252 namespace message_operations
00253 {
00254
00255 template<class ContainerAllocator>
00256 struct Printer< ::std_msgs::Int64MultiArray_<ContainerAllocator> >
00257 {
00258 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::Int64MultiArray_<ContainerAllocator> & v)
00259 {
00260 s << indent << "layout: ";
00261 s << std::endl;
00262 Printer< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::stream(s, indent + " ", v.layout);
00263 s << indent << "data[]" << std::endl;
00264 for (size_t i = 0; i < v.data.size(); ++i)
00265 {
00266 s << indent << " data[" << i << "]: ";
00267 Printer<int64_t>::stream(s, indent + " ", v.data[i]);
00268 }
00269 }
00270 };
00271
00272
00273 }
00274 }
00275
00276 #endif // STD_MSGS_MESSAGE_INT64MULTIARRAY_H
00277