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