$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_env_model_msgs/msg/PlaneDesc.msg */ 00002 #ifndef SRS_ENV_MODEL_MSGS_MESSAGE_PLANEDESC_H 00003 #define SRS_ENV_MODEL_MSGS_MESSAGE_PLANEDESC_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 #include "geometry_msgs/Vector3.h" 00019 00020 namespace srs_env_model_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PlaneDesc_ { 00024 typedef PlaneDesc_<ContainerAllocator> Type; 00025 00026 PlaneDesc_() 00027 : id(0) 00028 , flags(0) 00029 , pose() 00030 , scale() 00031 { 00032 } 00033 00034 PlaneDesc_(const ContainerAllocator& _alloc) 00035 : id(0) 00036 , flags(0) 00037 , pose(_alloc) 00038 , scale(_alloc) 00039 { 00040 } 00041 00042 typedef int32_t _id_type; 00043 int32_t id; 00044 00045 typedef int32_t _flags_type; 00046 int32_t flags; 00047 00048 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00049 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00050 00051 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _scale_type; 00052 ::geometry_msgs::Vector3_<ContainerAllocator> scale; 00053 00054 enum { INSERT = 0 }; 00055 enum { MODIFY = 1 }; 00056 enum { REMOVE = 2 }; 00057 00058 private: 00059 static const char* __s_getDataType_() { return "srs_env_model_msgs/PlaneDesc"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "e9bdfaad29753b34e7f3824b23ba5b04"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "int32 INSERT=0 # Clear old data, insert new one\n\ 00074 int32 MODIFY=1 # Modify plane\n\ 00075 int32 REMOVE=2 # Remove data\n\ 00076 \n\ 00077 int32 id\n\ 00078 int32 flags \n\ 00079 geometry_msgs/Pose pose\n\ 00080 geometry_msgs/Vector3 scale\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: geometry_msgs/Pose\n\ 00084 # A representation of pose in free space, composed of postion and orientation. \n\ 00085 Point position\n\ 00086 Quaternion orientation\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: geometry_msgs/Point\n\ 00090 # This contains the position of a point in free space\n\ 00091 float64 x\n\ 00092 float64 y\n\ 00093 float64 z\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: geometry_msgs/Quaternion\n\ 00097 # This represents an orientation in free space in quaternion form.\n\ 00098 \n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 float64 w\n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: geometry_msgs/Vector3\n\ 00106 # This represents a vector in free space. \n\ 00107 \n\ 00108 float64 x\n\ 00109 float64 y\n\ 00110 float64 z\n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, id); 00121 ros::serialization::serialize(stream, flags); 00122 ros::serialization::serialize(stream, pose); 00123 ros::serialization::serialize(stream, scale); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00128 { 00129 ros::serialization::IStream stream(read_ptr, 1000000000); 00130 ros::serialization::deserialize(stream, id); 00131 ros::serialization::deserialize(stream, flags); 00132 ros::serialization::deserialize(stream, pose); 00133 ros::serialization::deserialize(stream, scale); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint32_t serializationLength() const 00138 { 00139 uint32_t size = 0; 00140 size += ros::serialization::serializationLength(id); 00141 size += ros::serialization::serializationLength(flags); 00142 size += ros::serialization::serializationLength(pose); 00143 size += ros::serialization::serializationLength(scale); 00144 return size; 00145 } 00146 00147 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > Ptr; 00148 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> const> ConstPtr; 00149 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00150 }; // struct PlaneDesc 00151 typedef ::srs_env_model_msgs::PlaneDesc_<std::allocator<void> > PlaneDesc; 00152 00153 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneDesc> PlaneDescPtr; 00154 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneDesc const> PlaneDescConstPtr; 00155 00156 00157 template<typename ContainerAllocator> 00158 std::ostream& operator<<(std::ostream& s, const ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> & v) 00159 { 00160 ros::message_operations::Printer< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::stream(s, "", v); 00161 return s;} 00162 00163 } // namespace srs_env_model_msgs 00164 00165 namespace ros 00166 { 00167 namespace message_traits 00168 { 00169 template<class ContainerAllocator> struct IsMessage< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > : public TrueType {}; 00170 template<class ContainerAllocator> struct IsMessage< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> const> : public TrueType {}; 00171 template<class ContainerAllocator> 00172 struct MD5Sum< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "e9bdfaad29753b34e7f3824b23ba5b04"; 00176 } 00177 00178 static const char* value(const ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> &) { return value(); } 00179 static const uint64_t static_value1 = 0xe9bdfaad29753b34ULL; 00180 static const uint64_t static_value2 = 0xe7f3824b23ba5b04ULL; 00181 }; 00182 00183 template<class ContainerAllocator> 00184 struct DataType< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "srs_env_model_msgs/PlaneDesc"; 00188 } 00189 00190 static const char* value(const ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> &) { return value(); } 00191 }; 00192 00193 template<class ContainerAllocator> 00194 struct Definition< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > { 00195 static const char* value() 00196 { 00197 return "int32 INSERT=0 # Clear old data, insert new one\n\ 00198 int32 MODIFY=1 # Modify plane\n\ 00199 int32 REMOVE=2 # Remove data\n\ 00200 \n\ 00201 int32 id\n\ 00202 int32 flags \n\ 00203 geometry_msgs/Pose pose\n\ 00204 geometry_msgs/Vector3 scale\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: geometry_msgs/Pose\n\ 00208 # A representation of pose in free space, composed of postion and orientation. \n\ 00209 Point position\n\ 00210 Quaternion orientation\n\ 00211 \n\ 00212 ================================================================================\n\ 00213 MSG: geometry_msgs/Point\n\ 00214 # This contains the position of a point in free space\n\ 00215 float64 x\n\ 00216 float64 y\n\ 00217 float64 z\n\ 00218 \n\ 00219 ================================================================================\n\ 00220 MSG: geometry_msgs/Quaternion\n\ 00221 # This represents an orientation in free space in quaternion form.\n\ 00222 \n\ 00223 float64 x\n\ 00224 float64 y\n\ 00225 float64 z\n\ 00226 float64 w\n\ 00227 \n\ 00228 ================================================================================\n\ 00229 MSG: geometry_msgs/Vector3\n\ 00230 # This represents a vector in free space. \n\ 00231 \n\ 00232 float64 x\n\ 00233 float64 y\n\ 00234 float64 z\n\ 00235 "; 00236 } 00237 00238 static const char* value(const ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > : public TrueType {}; 00242 } // namespace message_traits 00243 } // namespace ros 00244 00245 namespace ros 00246 { 00247 namespace serialization 00248 { 00249 00250 template<class ContainerAllocator> struct Serializer< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > 00251 { 00252 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00253 { 00254 stream.next(m.id); 00255 stream.next(m.flags); 00256 stream.next(m.pose); 00257 stream.next(m.scale); 00258 } 00259 00260 ROS_DECLARE_ALLINONE_SERIALIZER; 00261 }; // struct PlaneDesc_ 00262 } // namespace serialization 00263 } // namespace ros 00264 00265 namespace ros 00266 { 00267 namespace message_operations 00268 { 00269 00270 template<class ContainerAllocator> 00271 struct Printer< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> > 00272 { 00273 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> & v) 00274 { 00275 s << indent << "id: "; 00276 Printer<int32_t>::stream(s, indent + " ", v.id); 00277 s << indent << "flags: "; 00278 Printer<int32_t>::stream(s, indent + " ", v.flags); 00279 s << indent << "pose: "; 00280 s << std::endl; 00281 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00282 s << indent << "scale: "; 00283 s << std::endl; 00284 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.scale); 00285 } 00286 }; 00287 00288 00289 } // namespace message_operations 00290 } // namespace ros 00291 00292 #endif // SRS_ENV_MODEL_MSGS_MESSAGE_PLANEDESC_H 00293