00001
00002 #ifndef ROSLISP_TUTORIALS_MESSAGE_POINT_H
00003 #define ROSLISP_TUTORIALS_MESSAGE_POINT_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
00014 namespace roslisp_tutorials
00015 {
00016 template <class ContainerAllocator>
00017 struct Point_ : public ros::Message
00018 {
00019 typedef Point_<ContainerAllocator> Type;
00020
00021 Point_()
00022 : x(0.0)
00023 , y(0.0)
00024 , z(0.0)
00025 {
00026 }
00027
00028 Point_(const ContainerAllocator& _alloc)
00029 : x(0.0)
00030 , y(0.0)
00031 , z(0.0)
00032 {
00033 }
00034
00035 typedef float _x_type;
00036 float x;
00037
00038 typedef float _y_type;
00039 float y;
00040
00041 typedef float _z_type;
00042 float z;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "roslisp_tutorials/Point"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "cc153912f1453b708d221682bc23d9ac"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "float32 x\n\
00061 float32 y\n\
00062 float32 z\n\
00063 \n\
00064 "; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00071 {
00072 ros::serialization::OStream stream(write_ptr, 1000000000);
00073 ros::serialization::serialize(stream, x);
00074 ros::serialization::serialize(stream, y);
00075 ros::serialization::serialize(stream, z);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, x);
00083 ros::serialization::deserialize(stream, y);
00084 ros::serialization::deserialize(stream, z);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint32_t serializationLength() const
00089 {
00090 uint32_t size = 0;
00091 size += ros::serialization::serializationLength(x);
00092 size += ros::serialization::serializationLength(y);
00093 size += ros::serialization::serializationLength(z);
00094 return size;
00095 }
00096
00097 typedef boost::shared_ptr< ::roslisp_tutorials::Point_<ContainerAllocator> > Ptr;
00098 typedef boost::shared_ptr< ::roslisp_tutorials::Point_<ContainerAllocator> const> ConstPtr;
00099 };
00100 typedef ::roslisp_tutorials::Point_<std::allocator<void> > Point;
00101
00102 typedef boost::shared_ptr< ::roslisp_tutorials::Point> PointPtr;
00103 typedef boost::shared_ptr< ::roslisp_tutorials::Point const> PointConstPtr;
00104
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::roslisp_tutorials::Point_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::roslisp_tutorials::Point_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::roslisp_tutorials::Point_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "cc153912f1453b708d221682bc23d9ac";
00123 }
00124
00125 static const char* value(const ::roslisp_tutorials::Point_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0xcc153912f1453b70ULL;
00127 static const uint64_t static_value2 = 0x8d221682bc23d9acULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::roslisp_tutorials::Point_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "roslisp_tutorials/Point";
00135 }
00136
00137 static const char* value(const ::roslisp_tutorials::Point_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::roslisp_tutorials::Point_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "float32 x\n\
00145 float32 y\n\
00146 float32 z\n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::roslisp_tutorials::Point_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator> struct IsFixedSize< ::roslisp_tutorials::Point_<ContainerAllocator> > : public TrueType {};
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162
00163 template<class ContainerAllocator> struct Serializer< ::roslisp_tutorials::Point_<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.z);
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< ::roslisp_tutorials::Point_<ContainerAllocator> >
00184 {
00185 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::roslisp_tutorials::Point_<ContainerAllocator> & v)
00186 {
00187 s << indent << "x: ";
00188 Printer<float>::stream(s, indent + " ", v.x);
00189 s << indent << "y: ";
00190 Printer<float>::stream(s, indent + " ", v.y);
00191 s << indent << "z: ";
00192 Printer<float>::stream(s, indent + " ", v.z);
00193 }
00194 };
00195
00196
00197 }
00198 }
00199
00200 #endif // ROSLISP_TUTORIALS_MESSAGE_POINT_H
00201