$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_common/doc_stacks/2013-03-02_13-44-44.967682/srs_common/srs_object_database_msgs/msg/mesh.msg */ 00002 #ifndef SRS_OBJECT_DATABASE_MSGS_MESSAGE_MESH_H 00003 #define SRS_OBJECT_DATABASE_MSGS_MESSAGE_MESH_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 "arm_navigation_msgs/Shape.h" 00018 00019 namespace srs_object_database_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct mesh_ { 00023 typedef mesh_<ContainerAllocator> Type; 00024 00025 mesh_() 00026 : objectId(0) 00027 , mesh() 00028 , type() 00029 , data() 00030 { 00031 } 00032 00033 mesh_(const ContainerAllocator& _alloc) 00034 : objectId(0) 00035 , mesh(_alloc) 00036 , type(_alloc) 00037 , data(_alloc) 00038 { 00039 } 00040 00041 typedef int32_t _objectId_type; 00042 int32_t objectId; 00043 00044 typedef ::arm_navigation_msgs::Shape_<ContainerAllocator> _mesh_type; 00045 ::arm_navigation_msgs::Shape_<ContainerAllocator> mesh; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type; 00049 00050 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type; 00051 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > data; 00052 00053 00054 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00055 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00056 ROS_DEPRECATED void get_data_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->data; } 00057 ROS_DEPRECATED void set_data_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->data = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "srs_object_database_msgs/mesh"; } 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 "1730abcb9e222ac87717c4ce8068089b"; } 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 objectId\n\ 00074 arm_navigation_msgs/Shape mesh\n\ 00075 string type\n\ 00076 uint8[] data\n\ 00077 ================================================================================\n\ 00078 MSG: arm_navigation_msgs/Shape\n\ 00079 byte SPHERE=0\n\ 00080 byte BOX=1\n\ 00081 byte CYLINDER=2\n\ 00082 byte MESH=3\n\ 00083 \n\ 00084 byte type\n\ 00085 \n\ 00086 \n\ 00087 #### define sphere, box, cylinder ####\n\ 00088 # the origin of each shape is considered at the shape's center\n\ 00089 \n\ 00090 # for sphere\n\ 00091 # radius := dimensions[0]\n\ 00092 \n\ 00093 # for cylinder\n\ 00094 # radius := dimensions[0]\n\ 00095 # length := dimensions[1]\n\ 00096 # the length is along the Z axis\n\ 00097 \n\ 00098 # for box\n\ 00099 # size_x := dimensions[0]\n\ 00100 # size_y := dimensions[1]\n\ 00101 # size_z := dimensions[2]\n\ 00102 float64[] dimensions\n\ 00103 \n\ 00104 \n\ 00105 #### define mesh ####\n\ 00106 \n\ 00107 # list of triangles; triangle k is defined by tre vertices located\n\ 00108 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00109 int32[] triangles\n\ 00110 geometry_msgs/Point[] vertices\n\ 00111 \n\ 00112 ================================================================================\n\ 00113 MSG: geometry_msgs/Point\n\ 00114 # This contains the position of a point in free space\n\ 00115 float64 x\n\ 00116 float64 y\n\ 00117 float64 z\n\ 00118 \n\ 00119 "; } 00120 public: 00121 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00124 00125 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00126 { 00127 ros::serialization::OStream stream(write_ptr, 1000000000); 00128 ros::serialization::serialize(stream, objectId); 00129 ros::serialization::serialize(stream, mesh); 00130 ros::serialization::serialize(stream, type); 00131 ros::serialization::serialize(stream, data); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00136 { 00137 ros::serialization::IStream stream(read_ptr, 1000000000); 00138 ros::serialization::deserialize(stream, objectId); 00139 ros::serialization::deserialize(stream, mesh); 00140 ros::serialization::deserialize(stream, type); 00141 ros::serialization::deserialize(stream, data); 00142 return stream.getData(); 00143 } 00144 00145 ROS_DEPRECATED virtual uint32_t serializationLength() const 00146 { 00147 uint32_t size = 0; 00148 size += ros::serialization::serializationLength(objectId); 00149 size += ros::serialization::serializationLength(mesh); 00150 size += ros::serialization::serializationLength(type); 00151 size += ros::serialization::serializationLength(data); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::srs_object_database_msgs::mesh_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::srs_object_database_msgs::mesh_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct mesh 00159 typedef ::srs_object_database_msgs::mesh_<std::allocator<void> > mesh; 00160 00161 typedef boost::shared_ptr< ::srs_object_database_msgs::mesh> meshPtr; 00162 typedef boost::shared_ptr< ::srs_object_database_msgs::mesh const> meshConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::srs_object_database_msgs::mesh_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::srs_object_database_msgs::mesh_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace srs_object_database_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::mesh_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::mesh_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::srs_object_database_msgs::mesh_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "1730abcb9e222ac87717c4ce8068089b"; 00184 } 00185 00186 static const char* value(const ::srs_object_database_msgs::mesh_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0x1730abcb9e222ac8ULL; 00188 static const uint64_t static_value2 = 0x7717c4ce8068089bULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::srs_object_database_msgs::mesh_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "srs_object_database_msgs/mesh"; 00196 } 00197 00198 static const char* value(const ::srs_object_database_msgs::mesh_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::srs_object_database_msgs::mesh_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "int32 objectId\n\ 00206 arm_navigation_msgs/Shape mesh\n\ 00207 string type\n\ 00208 uint8[] data\n\ 00209 ================================================================================\n\ 00210 MSG: arm_navigation_msgs/Shape\n\ 00211 byte SPHERE=0\n\ 00212 byte BOX=1\n\ 00213 byte CYLINDER=2\n\ 00214 byte MESH=3\n\ 00215 \n\ 00216 byte type\n\ 00217 \n\ 00218 \n\ 00219 #### define sphere, box, cylinder ####\n\ 00220 # the origin of each shape is considered at the shape's center\n\ 00221 \n\ 00222 # for sphere\n\ 00223 # radius := dimensions[0]\n\ 00224 \n\ 00225 # for cylinder\n\ 00226 # radius := dimensions[0]\n\ 00227 # length := dimensions[1]\n\ 00228 # the length is along the Z axis\n\ 00229 \n\ 00230 # for box\n\ 00231 # size_x := dimensions[0]\n\ 00232 # size_y := dimensions[1]\n\ 00233 # size_z := dimensions[2]\n\ 00234 float64[] dimensions\n\ 00235 \n\ 00236 \n\ 00237 #### define mesh ####\n\ 00238 \n\ 00239 # list of triangles; triangle k is defined by tre vertices located\n\ 00240 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00241 int32[] triangles\n\ 00242 geometry_msgs/Point[] vertices\n\ 00243 \n\ 00244 ================================================================================\n\ 00245 MSG: geometry_msgs/Point\n\ 00246 # This contains the position of a point in free space\n\ 00247 float64 x\n\ 00248 float64 y\n\ 00249 float64 z\n\ 00250 \n\ 00251 "; 00252 } 00253 00254 static const char* value(const ::srs_object_database_msgs::mesh_<ContainerAllocator> &) { return value(); } 00255 }; 00256 00257 } // namespace message_traits 00258 } // namespace ros 00259 00260 namespace ros 00261 { 00262 namespace serialization 00263 { 00264 00265 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::mesh_<ContainerAllocator> > 00266 { 00267 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00268 { 00269 stream.next(m.objectId); 00270 stream.next(m.mesh); 00271 stream.next(m.type); 00272 stream.next(m.data); 00273 } 00274 00275 ROS_DECLARE_ALLINONE_SERIALIZER; 00276 }; // struct mesh_ 00277 } // namespace serialization 00278 } // namespace ros 00279 00280 namespace ros 00281 { 00282 namespace message_operations 00283 { 00284 00285 template<class ContainerAllocator> 00286 struct Printer< ::srs_object_database_msgs::mesh_<ContainerAllocator> > 00287 { 00288 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_object_database_msgs::mesh_<ContainerAllocator> & v) 00289 { 00290 s << indent << "objectId: "; 00291 Printer<int32_t>::stream(s, indent + " ", v.objectId); 00292 s << indent << "mesh: "; 00293 s << std::endl; 00294 Printer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >::stream(s, indent + " ", v.mesh); 00295 s << indent << "type: "; 00296 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type); 00297 s << indent << "data[]" << std::endl; 00298 for (size_t i = 0; i < v.data.size(); ++i) 00299 { 00300 s << indent << " data[" << i << "]: "; 00301 Printer<uint8_t>::stream(s, indent + " ", v.data[i]); 00302 } 00303 } 00304 }; 00305 00306 00307 } // namespace message_operations 00308 } // namespace ros 00309 00310 #endif // SRS_OBJECT_DATABASE_MSGS_MESSAGE_MESH_H 00311