00001
00002 #ifndef FAST_PLANE_DETECTION_MESSAGE_SLAVEPOINT_H
00003 #define FAST_PLANE_DETECTION_MESSAGE_SLAVEPOINT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "geometry_msgs/Point32.h"
00014
00015 namespace fast_plane_detection
00016 {
00017 template <class ContainerAllocator>
00018 struct SlavePoint_ : public ros::Message
00019 {
00020 typedef SlavePoint_<ContainerAllocator> Type;
00021
00022 SlavePoint_()
00023 : end_effector()
00024 , contact(false)
00025 {
00026 }
00027
00028 SlavePoint_(const ContainerAllocator& _alloc)
00029 : end_effector(_alloc)
00030 , contact(false)
00031 {
00032 }
00033
00034 typedef ::geometry_msgs::Point32_<ContainerAllocator> _end_effector_type;
00035 ::geometry_msgs::Point32_<ContainerAllocator> end_effector;
00036
00037 typedef uint8_t _contact_type;
00038 uint8_t contact;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "fast_plane_detection/SlavePoint"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "97fcacf5bd73886a5a75c1efaa16ed95"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "# The coordinates of the 3D point around which the local plane is estimated\n\
00057 geometry_msgs/Point32 end_effector\n\
00058 \n\
00059 # Describes the contact situation\n\
00060 bool contact\n\
00061 ================================================================================\n\
00062 MSG: geometry_msgs/Point32\n\
00063 # This contains the position of a point in free space(with 32 bits of precision).\n\
00064 # It is recommeded to use Point wherever possible instead of Point32. \n\
00065 # \n\
00066 # This recommendation is to promote interoperability. \n\
00067 #\n\
00068 # This message is designed to take up less space when sending\n\
00069 # lots of points at once, as in the case of a PointCloud. \n\
00070 \n\
00071 float32 x\n\
00072 float32 y\n\
00073 float32 z\n\
00074 "; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00081 {
00082 ros::serialization::OStream stream(write_ptr, 1000000000);
00083 ros::serialization::serialize(stream, end_effector);
00084 ros::serialization::serialize(stream, contact);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00089 {
00090 ros::serialization::IStream stream(read_ptr, 1000000000);
00091 ros::serialization::deserialize(stream, end_effector);
00092 ros::serialization::deserialize(stream, contact);
00093 return stream.getData();
00094 }
00095
00096 ROS_DEPRECATED virtual uint32_t serializationLength() const
00097 {
00098 uint32_t size = 0;
00099 size += ros::serialization::serializationLength(end_effector);
00100 size += ros::serialization::serializationLength(contact);
00101 return size;
00102 }
00103
00104 typedef boost::shared_ptr< ::fast_plane_detection::SlavePoint_<ContainerAllocator> > Ptr;
00105 typedef boost::shared_ptr< ::fast_plane_detection::SlavePoint_<ContainerAllocator> const> ConstPtr;
00106 };
00107 typedef ::fast_plane_detection::SlavePoint_<std::allocator<void> > SlavePoint;
00108
00109 typedef boost::shared_ptr< ::fast_plane_detection::SlavePoint> SlavePointPtr;
00110 typedef boost::shared_ptr< ::fast_plane_detection::SlavePoint const> SlavePointConstPtr;
00111
00112
00113 template<typename ContainerAllocator>
00114 std::ostream& operator<<(std::ostream& s, const ::fast_plane_detection::SlavePoint_<ContainerAllocator> & v)
00115 {
00116 ros::message_operations::Printer< ::fast_plane_detection::SlavePoint_<ContainerAllocator> >::stream(s, "", v);
00117 return s;}
00118
00119 }
00120
00121 namespace ros
00122 {
00123 namespace message_traits
00124 {
00125 template<class ContainerAllocator>
00126 struct MD5Sum< ::fast_plane_detection::SlavePoint_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "97fcacf5bd73886a5a75c1efaa16ed95";
00130 }
00131
00132 static const char* value(const ::fast_plane_detection::SlavePoint_<ContainerAllocator> &) { return value(); }
00133 static const uint64_t static_value1 = 0x97fcacf5bd73886aULL;
00134 static const uint64_t static_value2 = 0x5a75c1efaa16ed95ULL;
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct DataType< ::fast_plane_detection::SlavePoint_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "fast_plane_detection/SlavePoint";
00142 }
00143
00144 static const char* value(const ::fast_plane_detection::SlavePoint_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct Definition< ::fast_plane_detection::SlavePoint_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "# The coordinates of the 3D point around which the local plane is estimated\n\
00152 geometry_msgs/Point32 end_effector\n\
00153 \n\
00154 # Describes the contact situation\n\
00155 bool contact\n\
00156 ================================================================================\n\
00157 MSG: geometry_msgs/Point32\n\
00158 # This contains the position of a point in free space(with 32 bits of precision).\n\
00159 # It is recommeded to use Point wherever possible instead of Point32. \n\
00160 # \n\
00161 # This recommendation is to promote interoperability. \n\
00162 #\n\
00163 # This message is designed to take up less space when sending\n\
00164 # lots of points at once, as in the case of a PointCloud. \n\
00165 \n\
00166 float32 x\n\
00167 float32 y\n\
00168 float32 z\n\
00169 ";
00170 }
00171
00172 static const char* value(const ::fast_plane_detection::SlavePoint_<ContainerAllocator> &) { return value(); }
00173 };
00174
00175 template<class ContainerAllocator> struct IsFixedSize< ::fast_plane_detection::SlavePoint_<ContainerAllocator> > : public TrueType {};
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183
00184 template<class ContainerAllocator> struct Serializer< ::fast_plane_detection::SlavePoint_<ContainerAllocator> >
00185 {
00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187 {
00188 stream.next(m.end_effector);
00189 stream.next(m.contact);
00190 }
00191
00192 ROS_DECLARE_ALLINONE_SERIALIZER;
00193 };
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace message_operations
00200 {
00201
00202 template<class ContainerAllocator>
00203 struct Printer< ::fast_plane_detection::SlavePoint_<ContainerAllocator> >
00204 {
00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::fast_plane_detection::SlavePoint_<ContainerAllocator> & v)
00206 {
00207 s << indent << "end_effector: ";
00208 s << std::endl;
00209 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.end_effector);
00210 s << indent << "contact: ";
00211 Printer<uint8_t>::stream(s, indent + " ", v.contact);
00212 }
00213 };
00214
00215
00216 }
00217 }
00218
00219 #endif // FAST_PLANE_DETECTION_MESSAGE_SLAVEPOINT_H
00220