$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_ui_but/msg/ClosestPoint.msg */ 00002 #ifndef SRS_UI_BUT_MESSAGE_CLOSESTPOINT_H 00003 #define SRS_UI_BUT_MESSAGE_CLOSESTPOINT_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/Vector3.h" 00018 00019 namespace srs_ui_but 00020 { 00021 template <class ContainerAllocator> 00022 struct ClosestPoint_ { 00023 typedef ClosestPoint_<ContainerAllocator> Type; 00024 00025 ClosestPoint_() 00026 : time_stamp() 00027 , status(false) 00028 , distance(0.0) 00029 , position() 00030 { 00031 } 00032 00033 ClosestPoint_(const ContainerAllocator& _alloc) 00034 : time_stamp() 00035 , status(false) 00036 , distance(0.0) 00037 , position(_alloc) 00038 { 00039 } 00040 00041 typedef ros::Time _time_stamp_type; 00042 ros::Time time_stamp; 00043 00044 typedef uint8_t _status_type; 00045 uint8_t status; 00046 00047 typedef float _distance_type; 00048 float distance; 00049 00050 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _position_type; 00051 ::geometry_msgs::Vector3_<ContainerAllocator> position; 00052 00053 00054 private: 00055 static const char* __s_getDataType_() { return "srs_ui_but/ClosestPoint"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "ff5e96518493c9d2e30fa2167ed8e415"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "time time_stamp #\n\ 00070 bool status # \n\ 00071 float32 distance # Distance between link and closest point\n\ 00072 geometry_msgs/Vector3 position # Point position\n\ 00073 ================================================================================\n\ 00074 MSG: geometry_msgs/Vector3\n\ 00075 # This represents a vector in free space. \n\ 00076 \n\ 00077 float64 x\n\ 00078 float64 y\n\ 00079 float64 z\n\ 00080 "; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00087 { 00088 ros::serialization::OStream stream(write_ptr, 1000000000); 00089 ros::serialization::serialize(stream, time_stamp); 00090 ros::serialization::serialize(stream, status); 00091 ros::serialization::serialize(stream, distance); 00092 ros::serialization::serialize(stream, position); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00097 { 00098 ros::serialization::IStream stream(read_ptr, 1000000000); 00099 ros::serialization::deserialize(stream, time_stamp); 00100 ros::serialization::deserialize(stream, status); 00101 ros::serialization::deserialize(stream, distance); 00102 ros::serialization::deserialize(stream, position); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint32_t serializationLength() const 00107 { 00108 uint32_t size = 0; 00109 size += ros::serialization::serializationLength(time_stamp); 00110 size += ros::serialization::serializationLength(status); 00111 size += ros::serialization::serializationLength(distance); 00112 size += ros::serialization::serializationLength(position); 00113 return size; 00114 } 00115 00116 typedef boost::shared_ptr< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > Ptr; 00117 typedef boost::shared_ptr< ::srs_ui_but::ClosestPoint_<ContainerAllocator> const> ConstPtr; 00118 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00119 }; // struct ClosestPoint 00120 typedef ::srs_ui_but::ClosestPoint_<std::allocator<void> > ClosestPoint; 00121 00122 typedef boost::shared_ptr< ::srs_ui_but::ClosestPoint> ClosestPointPtr; 00123 typedef boost::shared_ptr< ::srs_ui_but::ClosestPoint const> ClosestPointConstPtr; 00124 00125 00126 template<typename ContainerAllocator> 00127 std::ostream& operator<<(std::ostream& s, const ::srs_ui_but::ClosestPoint_<ContainerAllocator> & v) 00128 { 00129 ros::message_operations::Printer< ::srs_ui_but::ClosestPoint_<ContainerAllocator> >::stream(s, "", v); 00130 return s;} 00131 00132 } // namespace srs_ui_but 00133 00134 namespace ros 00135 { 00136 namespace message_traits 00137 { 00138 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > : public TrueType {}; 00139 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::ClosestPoint_<ContainerAllocator> const> : public TrueType {}; 00140 template<class ContainerAllocator> 00141 struct MD5Sum< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "ff5e96518493c9d2e30fa2167ed8e415"; 00145 } 00146 00147 static const char* value(const ::srs_ui_but::ClosestPoint_<ContainerAllocator> &) { return value(); } 00148 static const uint64_t static_value1 = 0xff5e96518493c9d2ULL; 00149 static const uint64_t static_value2 = 0xe30fa2167ed8e415ULL; 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct DataType< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "srs_ui_but/ClosestPoint"; 00157 } 00158 00159 static const char* value(const ::srs_ui_but::ClosestPoint_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 template<class ContainerAllocator> 00163 struct Definition< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "time time_stamp #\n\ 00167 bool status # \n\ 00168 float32 distance # Distance between link and closest point\n\ 00169 geometry_msgs/Vector3 position # Point position\n\ 00170 ================================================================================\n\ 00171 MSG: geometry_msgs/Vector3\n\ 00172 # This represents a vector in free space. \n\ 00173 \n\ 00174 float64 x\n\ 00175 float64 y\n\ 00176 float64 z\n\ 00177 "; 00178 } 00179 00180 static const char* value(const ::srs_ui_but::ClosestPoint_<ContainerAllocator> &) { return value(); } 00181 }; 00182 00183 template<class ContainerAllocator> struct IsFixedSize< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > : public TrueType {}; 00184 } // namespace message_traits 00185 } // namespace ros 00186 00187 namespace ros 00188 { 00189 namespace serialization 00190 { 00191 00192 template<class ContainerAllocator> struct Serializer< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > 00193 { 00194 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00195 { 00196 stream.next(m.time_stamp); 00197 stream.next(m.status); 00198 stream.next(m.distance); 00199 stream.next(m.position); 00200 } 00201 00202 ROS_DECLARE_ALLINONE_SERIALIZER; 00203 }; // struct ClosestPoint_ 00204 } // namespace serialization 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace message_operations 00210 { 00211 00212 template<class ContainerAllocator> 00213 struct Printer< ::srs_ui_but::ClosestPoint_<ContainerAllocator> > 00214 { 00215 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_ui_but::ClosestPoint_<ContainerAllocator> & v) 00216 { 00217 s << indent << "time_stamp: "; 00218 Printer<ros::Time>::stream(s, indent + " ", v.time_stamp); 00219 s << indent << "status: "; 00220 Printer<uint8_t>::stream(s, indent + " ", v.status); 00221 s << indent << "distance: "; 00222 Printer<float>::stream(s, indent + " ", v.distance); 00223 s << indent << "position: "; 00224 s << std::endl; 00225 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.position); 00226 } 00227 }; 00228 00229 00230 } // namespace message_operations 00231 } // namespace ros 00232 00233 #endif // SRS_UI_BUT_MESSAGE_CLOSESTPOINT_H 00234