$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_msgs/msg/SRSSpatialInfo.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_SRSSPATIALINFO_H 00003 #define SRS_MSGS_MESSAGE_SRSSPATIALINFO_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/Pose.h" 00018 00019 namespace srs_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct SRSSpatialInfo_ { 00023 typedef SRSSpatialInfo_<ContainerAllocator> Type; 00024 00025 SRSSpatialInfo_() 00026 : l(0.0) 00027 , w(0.0) 00028 , h(0.0) 00029 , pose() 00030 { 00031 } 00032 00033 SRSSpatialInfo_(const ContainerAllocator& _alloc) 00034 : l(0.0) 00035 , w(0.0) 00036 , h(0.0) 00037 , pose(_alloc) 00038 { 00039 } 00040 00041 typedef float _l_type; 00042 float l; 00043 00044 typedef float _w_type; 00045 float w; 00046 00047 typedef float _h_type; 00048 float h; 00049 00050 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00051 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00052 00053 00054 private: 00055 static const char* __s_getDataType_() { return "srs_msgs/SRSSpatialInfo"; } 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 "258ee9bd984fca3e863d2c8404dc39e3"; } 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 "# Point point\n\ 00070 # Orientation angles\n\ 00071 float32 l\n\ 00072 float32 w\n\ 00073 float32 h\n\ 00074 \n\ 00075 geometry_msgs/Pose pose\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: geometry_msgs/Pose\n\ 00079 # A representation of pose in free space, composed of postion and orientation. \n\ 00080 Point position\n\ 00081 Quaternion orientation\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: geometry_msgs/Point\n\ 00085 # This contains the position of a point in free space\n\ 00086 float64 x\n\ 00087 float64 y\n\ 00088 float64 z\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: geometry_msgs/Quaternion\n\ 00092 # This represents an orientation in free space in quaternion form.\n\ 00093 \n\ 00094 float64 x\n\ 00095 float64 y\n\ 00096 float64 z\n\ 00097 float64 w\n\ 00098 \n\ 00099 "; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00106 { 00107 ros::serialization::OStream stream(write_ptr, 1000000000); 00108 ros::serialization::serialize(stream, l); 00109 ros::serialization::serialize(stream, w); 00110 ros::serialization::serialize(stream, h); 00111 ros::serialization::serialize(stream, pose); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00116 { 00117 ros::serialization::IStream stream(read_ptr, 1000000000); 00118 ros::serialization::deserialize(stream, l); 00119 ros::serialization::deserialize(stream, w); 00120 ros::serialization::deserialize(stream, h); 00121 ros::serialization::deserialize(stream, pose); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(l); 00129 size += ros::serialization::serializationLength(w); 00130 size += ros::serialization::serializationLength(h); 00131 size += ros::serialization::serializationLength(pose); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct SRSSpatialInfo 00139 typedef ::srs_msgs::SRSSpatialInfo_<std::allocator<void> > SRSSpatialInfo; 00140 00141 typedef boost::shared_ptr< ::srs_msgs::SRSSpatialInfo> SRSSpatialInfoPtr; 00142 typedef boost::shared_ptr< ::srs_msgs::SRSSpatialInfo const> SRSSpatialInfoConstPtr; 00143 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace srs_msgs 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > : public TrueType {}; 00158 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> const> : public TrueType {}; 00159 template<class ContainerAllocator> 00160 struct MD5Sum< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "258ee9bd984fca3e863d2c8404dc39e3"; 00164 } 00165 00166 static const char* value(const ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> &) { return value(); } 00167 static const uint64_t static_value1 = 0x258ee9bd984fca3eULL; 00168 static const uint64_t static_value2 = 0x863d2c8404dc39e3ULL; 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct DataType< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "srs_msgs/SRSSpatialInfo"; 00176 } 00177 00178 static const char* value(const ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> &) { return value(); } 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct Definition< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "# Point point\n\ 00186 # Orientation angles\n\ 00187 float32 l\n\ 00188 float32 w\n\ 00189 float32 h\n\ 00190 \n\ 00191 geometry_msgs/Pose pose\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: geometry_msgs/Pose\n\ 00195 # A representation of pose in free space, composed of postion and orientation. \n\ 00196 Point position\n\ 00197 Quaternion orientation\n\ 00198 \n\ 00199 ================================================================================\n\ 00200 MSG: geometry_msgs/Point\n\ 00201 # This contains the position of a point in free space\n\ 00202 float64 x\n\ 00203 float64 y\n\ 00204 float64 z\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: geometry_msgs/Quaternion\n\ 00208 # This represents an orientation in free space in quaternion form.\n\ 00209 \n\ 00210 float64 x\n\ 00211 float64 y\n\ 00212 float64 z\n\ 00213 float64 w\n\ 00214 \n\ 00215 "; 00216 } 00217 00218 static const char* value(const ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> &) { return value(); } 00219 }; 00220 00221 template<class ContainerAllocator> struct IsFixedSize< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > : public TrueType {}; 00222 } // namespace message_traits 00223 } // namespace ros 00224 00225 namespace ros 00226 { 00227 namespace serialization 00228 { 00229 00230 template<class ContainerAllocator> struct Serializer< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > 00231 { 00232 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00233 { 00234 stream.next(m.l); 00235 stream.next(m.w); 00236 stream.next(m.h); 00237 stream.next(m.pose); 00238 } 00239 00240 ROS_DECLARE_ALLINONE_SERIALIZER; 00241 }; // struct SRSSpatialInfo_ 00242 } // namespace serialization 00243 } // namespace ros 00244 00245 namespace ros 00246 { 00247 namespace message_operations 00248 { 00249 00250 template<class ContainerAllocator> 00251 struct Printer< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> > 00252 { 00253 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> & v) 00254 { 00255 s << indent << "l: "; 00256 Printer<float>::stream(s, indent + " ", v.l); 00257 s << indent << "w: "; 00258 Printer<float>::stream(s, indent + " ", v.w); 00259 s << indent << "h: "; 00260 Printer<float>::stream(s, indent + " ", v.h); 00261 s << indent << "pose: "; 00262 s << std::endl; 00263 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00264 } 00265 }; 00266 00267 00268 } // namespace message_operations 00269 } // namespace ros 00270 00271 #endif // SRS_MSGS_MESSAGE_SRSSPATIALINFO_H 00272