00001
00002 #ifndef VREP_COMMON_MESSAGE_PROXIMITYSENSORDATA_H
00003 #define VREP_COMMON_MESSAGE_PROXIMITYSENSORDATA_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 "geometry_msgs/Point32.h"
00018 #include "std_msgs/Int32.h"
00019 #include "geometry_msgs/Point32.h"
00020
00021 namespace vrep_common
00022 {
00023 template <class ContainerAllocator>
00024 struct ProximitySensorData_ {
00025 typedef ProximitySensorData_<ContainerAllocator> Type;
00026
00027 ProximitySensorData_()
00028 : detectedPoint()
00029 , detectedObject()
00030 , normalVector()
00031 {
00032 }
00033
00034 ProximitySensorData_(const ContainerAllocator& _alloc)
00035 : detectedPoint(_alloc)
00036 , detectedObject(_alloc)
00037 , normalVector(_alloc)
00038 {
00039 }
00040
00041 typedef ::geometry_msgs::Point32_<ContainerAllocator> _detectedPoint_type;
00042 ::geometry_msgs::Point32_<ContainerAllocator> detectedPoint;
00043
00044 typedef ::std_msgs::Int32_<ContainerAllocator> _detectedObject_type;
00045 ::std_msgs::Int32_<ContainerAllocator> detectedObject;
00046
00047 typedef ::geometry_msgs::Point32_<ContainerAllocator> _normalVector_type;
00048 ::geometry_msgs::Point32_<ContainerAllocator> normalVector;
00049
00050
00051 typedef boost::shared_ptr< ::vrep_common::ProximitySensorData_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::vrep_common::ProximitySensorData_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::vrep_common::ProximitySensorData_<std::allocator<void> > ProximitySensorData;
00056
00057 typedef boost::shared_ptr< ::vrep_common::ProximitySensorData> ProximitySensorDataPtr;
00058 typedef boost::shared_ptr< ::vrep_common::ProximitySensorData const> ProximitySensorDataConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::vrep_common::ProximitySensorData_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::vrep_common::ProximitySensorData_<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::ProximitySensorData_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::vrep_common::ProximitySensorData_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::vrep_common::ProximitySensorData_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "ca4cef31bef118238b22d9d3bc7e3089";
00080 }
00081
00082 static const char* value(const ::vrep_common::ProximitySensorData_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0xca4cef31bef11823ULL;
00084 static const uint64_t static_value2 = 0x8b22d9d3bc7e3089ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::vrep_common::ProximitySensorData_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "vrep_common/ProximitySensorData";
00092 }
00093
00094 static const char* value(const ::vrep_common::ProximitySensorData_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::vrep_common::ProximitySensorData_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "geometry_msgs/Point32 detectedPoint\n\
00102 std_msgs/Int32 detectedObject\n\
00103 geometry_msgs/Point32 normalVector\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: geometry_msgs/Point32\n\
00107 # This contains the position of a point in free space(with 32 bits of precision).\n\
00108 # It is recommeded to use Point wherever possible instead of Point32. \n\
00109 # \n\
00110 # This recommendation is to promote interoperability. \n\
00111 #\n\
00112 # This message is designed to take up less space when sending\n\
00113 # lots of points at once, as in the case of a PointCloud. \n\
00114 \n\
00115 float32 x\n\
00116 float32 y\n\
00117 float32 z\n\
00118 ================================================================================\n\
00119 MSG: std_msgs/Int32\n\
00120 int32 data\n\
00121 ";
00122 }
00123
00124 static const char* value(const ::vrep_common::ProximitySensorData_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator> struct IsFixedSize< ::vrep_common::ProximitySensorData_<ContainerAllocator> > : public TrueType {};
00128 }
00129 }
00130
00131 namespace ros
00132 {
00133 namespace serialization
00134 {
00135
00136 template<class ContainerAllocator> struct Serializer< ::vrep_common::ProximitySensorData_<ContainerAllocator> >
00137 {
00138 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00139 {
00140 stream.next(m.detectedPoint);
00141 stream.next(m.detectedObject);
00142 stream.next(m.normalVector);
00143 }
00144
00145 ROS_DECLARE_ALLINONE_SERIALIZER;
00146 };
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace message_operations
00153 {
00154
00155 template<class ContainerAllocator>
00156 struct Printer< ::vrep_common::ProximitySensorData_<ContainerAllocator> >
00157 {
00158 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vrep_common::ProximitySensorData_<ContainerAllocator> & v)
00159 {
00160 s << indent << "detectedPoint: ";
00161 s << std::endl;
00162 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.detectedPoint);
00163 s << indent << "detectedObject: ";
00164 s << std::endl;
00165 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.detectedObject);
00166 s << indent << "normalVector: ";
00167 s << std::endl;
00168 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.normalVector);
00169 }
00170 };
00171
00172
00173 }
00174 }
00175
00176 #endif // VREP_COMMON_MESSAGE_PROXIMITYSENSORDATA_H
00177