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