00001
00002 #ifndef VREP_COMMON_MESSAGE_VISIONSENSORDEPTHBUFF_H
00003 #define VREP_COMMON_MESSAGE_VISIONSENSORDEPTHBUFF_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/Int32.h"
00018 #include "std_msgs/Int32.h"
00019 #include "std_msgs/Float32MultiArray.h"
00020
00021 namespace vrep_common
00022 {
00023 template <class ContainerAllocator>
00024 struct VisionSensorDepthBuff_ {
00025 typedef VisionSensorDepthBuff_<ContainerAllocator> Type;
00026
00027 VisionSensorDepthBuff_()
00028 : x()
00029 , y()
00030 , data()
00031 {
00032 }
00033
00034 VisionSensorDepthBuff_(const ContainerAllocator& _alloc)
00035 : x(_alloc)
00036 , y(_alloc)
00037 , data(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Int32_<ContainerAllocator> _x_type;
00042 ::std_msgs::Int32_<ContainerAllocator> x;
00043
00044 typedef ::std_msgs::Int32_<ContainerAllocator> _y_type;
00045 ::std_msgs::Int32_<ContainerAllocator> y;
00046
00047 typedef ::std_msgs::Float32MultiArray_<ContainerAllocator> _data_type;
00048 ::std_msgs::Float32MultiArray_<ContainerAllocator> data;
00049
00050
00051 typedef boost::shared_ptr< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::vrep_common::VisionSensorDepthBuff_<std::allocator<void> > VisionSensorDepthBuff;
00056
00057 typedef boost::shared_ptr< ::vrep_common::VisionSensorDepthBuff> VisionSensorDepthBuffPtr;
00058 typedef boost::shared_ptr< ::vrep_common::VisionSensorDepthBuff const> VisionSensorDepthBuffConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "fe6c62e891cf9e2aef9b4742b6ae660f";
00080 }
00081
00082 static const char* value(const ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0xfe6c62e891cf9e2aULL;
00084 static const uint64_t static_value2 = 0xef9b4742b6ae660fULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "vrep_common/VisionSensorDepthBuff";
00092 }
00093
00094 static const char* value(const ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "std_msgs/Int32 x\n\
00102 std_msgs/Int32 y\n\
00103 std_msgs/Float32MultiArray data\n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Int32\n\
00106 int32 data\n\
00107 ================================================================================\n\
00108 MSG: std_msgs/Float32MultiArray\n\
00109 # Please look at the MultiArrayLayout message definition for\n\
00110 # documentation on all multiarrays.\n\
00111 \n\
00112 MultiArrayLayout layout # specification of data layout\n\
00113 float32[] data # array of data\n\
00114 \n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: std_msgs/MultiArrayLayout\n\
00118 # The multiarray declares a generic multi-dimensional array of a\n\
00119 # particular data type. Dimensions are ordered from outer most\n\
00120 # to inner most.\n\
00121 \n\
00122 MultiArrayDimension[] dim # Array of dimension properties\n\
00123 uint32 data_offset # padding bytes at front of data\n\
00124 \n\
00125 # Accessors should ALWAYS be written in terms of dimension stride\n\
00126 # and specified outer-most dimension first.\n\
00127 # \n\
00128 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
00129 #\n\
00130 # A standard, 3-channel 640x480 image with interleaved color channels\n\
00131 # would be specified as:\n\
00132 #\n\
00133 # dim[0].label = \"height\"\n\
00134 # dim[0].size = 480\n\
00135 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\
00136 # dim[1].label = \"width\"\n\
00137 # dim[1].size = 640\n\
00138 # dim[1].stride = 3*640 = 1920\n\
00139 # dim[2].label = \"channel\"\n\
00140 # dim[2].size = 3\n\
00141 # dim[2].stride = 3\n\
00142 #\n\
00143 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
00144 ================================================================================\n\
00145 MSG: std_msgs/MultiArrayDimension\n\
00146 string label # label of given dimension\n\
00147 uint32 size # size of given dimension (in type units)\n\
00148 uint32 stride # stride of given dimension\n\
00149 ";
00150 }
00151
00152 static const char* value(const ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> &) { return value(); }
00153 };
00154
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162
00163 template<class ContainerAllocator> struct Serializer< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> >
00164 {
00165 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166 {
00167 stream.next(m.x);
00168 stream.next(m.y);
00169 stream.next(m.data);
00170 }
00171
00172 ROS_DECLARE_ALLINONE_SERIALIZER;
00173 };
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace message_operations
00180 {
00181
00182 template<class ContainerAllocator>
00183 struct Printer< ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> >
00184 {
00185 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vrep_common::VisionSensorDepthBuff_<ContainerAllocator> & v)
00186 {
00187 s << indent << "x: ";
00188 s << std::endl;
00189 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.x);
00190 s << indent << "y: ";
00191 s << std::endl;
00192 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.y);
00193 s << indent << "data: ";
00194 s << std::endl;
00195 Printer< ::std_msgs::Float32MultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // VREP_COMMON_MESSAGE_VISIONSENSORDEPTHBUFF_H
00204