$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/urdf.msg */ 00002 #ifndef SRS_OBJECT_DATABASE_MSGS_MESSAGE_URDF_H 00003 #define SRS_OBJECT_DATABASE_MSGS_MESSAGE_URDF_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 "visualization_msgs/Marker.h" 00018 00019 namespace srs_object_database_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct urdf_ { 00023 typedef urdf_<ContainerAllocator> Type; 00024 00025 urdf_() 00026 : objectId(0) 00027 , markers() 00028 { 00029 } 00030 00031 urdf_(const ContainerAllocator& _alloc) 00032 : objectId(0) 00033 , markers(_alloc) 00034 { 00035 } 00036 00037 typedef int32_t _objectId_type; 00038 int32_t objectId; 00039 00040 typedef std::vector< ::visualization_msgs::Marker_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visualization_msgs::Marker_<ContainerAllocator> >::other > _markers_type; 00041 std::vector< ::visualization_msgs::Marker_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visualization_msgs::Marker_<ContainerAllocator> >::other > markers; 00042 00043 00044 ROS_DEPRECATED uint32_t get_markers_size() const { return (uint32_t)markers.size(); } 00045 ROS_DEPRECATED void set_markers_size(uint32_t size) { markers.resize((size_t)size); } 00046 ROS_DEPRECATED void get_markers_vec(std::vector< ::visualization_msgs::Marker_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visualization_msgs::Marker_<ContainerAllocator> >::other > & vec) const { vec = this->markers; } 00047 ROS_DEPRECATED void set_markers_vec(const std::vector< ::visualization_msgs::Marker_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visualization_msgs::Marker_<ContainerAllocator> >::other > & vec) { this->markers = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "srs_object_database_msgs/urdf"; } 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 "5e0ef6153464ee9ec35b3eb8f82bc8a1"; } 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 "int32 objectId\n\ 00064 visualization_msgs/Marker[] markers\n\ 00065 ================================================================================\n\ 00066 MSG: visualization_msgs/Marker\n\ 00067 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\ 00068 \n\ 00069 uint8 ARROW=0\n\ 00070 uint8 CUBE=1\n\ 00071 uint8 SPHERE=2\n\ 00072 uint8 CYLINDER=3\n\ 00073 uint8 LINE_STRIP=4\n\ 00074 uint8 LINE_LIST=5\n\ 00075 uint8 CUBE_LIST=6\n\ 00076 uint8 SPHERE_LIST=7\n\ 00077 uint8 POINTS=8\n\ 00078 uint8 TEXT_VIEW_FACING=9\n\ 00079 uint8 MESH_RESOURCE=10\n\ 00080 uint8 TRIANGLE_LIST=11\n\ 00081 \n\ 00082 uint8 ADD=0\n\ 00083 uint8 MODIFY=0\n\ 00084 uint8 DELETE=2\n\ 00085 \n\ 00086 Header header # header for time/frame information\n\ 00087 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\ 00088 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\ 00089 int32 type # Type of object\n\ 00090 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\ 00091 geometry_msgs/Pose pose # Pose of the object\n\ 00092 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\ 00093 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\ 00094 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\ 00095 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\ 00096 \n\ 00097 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\ 00098 geometry_msgs/Point[] points\n\ 00099 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\ 00100 #number of colors must either be 0 or equal to the number of points\n\ 00101 #NOTE: alpha is not yet used\n\ 00102 std_msgs/ColorRGBA[] colors\n\ 00103 \n\ 00104 # NOTE: only used for text markers\n\ 00105 string text\n\ 00106 \n\ 00107 # NOTE: only used for MESH_RESOURCE markers\n\ 00108 string mesh_resource\n\ 00109 bool mesh_use_embedded_materials\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: std_msgs/Header\n\ 00113 # Standard metadata for higher-level stamped data types.\n\ 00114 # This is generally used to communicate timestamped data \n\ 00115 # in a particular coordinate frame.\n\ 00116 # \n\ 00117 # sequence ID: consecutively increasing ID \n\ 00118 uint32 seq\n\ 00119 #Two-integer timestamp that is expressed as:\n\ 00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00122 # time-handling sugar is provided by the client library\n\ 00123 time stamp\n\ 00124 #Frame this data is associated with\n\ 00125 # 0: no frame\n\ 00126 # 1: global frame\n\ 00127 string frame_id\n\ 00128 \n\ 00129 ================================================================================\n\ 00130 MSG: geometry_msgs/Pose\n\ 00131 # A representation of pose in free space, composed of postion and orientation. \n\ 00132 Point position\n\ 00133 Quaternion orientation\n\ 00134 \n\ 00135 ================================================================================\n\ 00136 MSG: geometry_msgs/Point\n\ 00137 # This contains the position of a point in free space\n\ 00138 float64 x\n\ 00139 float64 y\n\ 00140 float64 z\n\ 00141 \n\ 00142 ================================================================================\n\ 00143 MSG: geometry_msgs/Quaternion\n\ 00144 # This represents an orientation in free space in quaternion form.\n\ 00145 \n\ 00146 float64 x\n\ 00147 float64 y\n\ 00148 float64 z\n\ 00149 float64 w\n\ 00150 \n\ 00151 ================================================================================\n\ 00152 MSG: geometry_msgs/Vector3\n\ 00153 # This represents a vector in free space. \n\ 00154 \n\ 00155 float64 x\n\ 00156 float64 y\n\ 00157 float64 z\n\ 00158 ================================================================================\n\ 00159 MSG: std_msgs/ColorRGBA\n\ 00160 float32 r\n\ 00161 float32 g\n\ 00162 float32 b\n\ 00163 float32 a\n\ 00164 \n\ 00165 "; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00168 00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00170 00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00172 { 00173 ros::serialization::OStream stream(write_ptr, 1000000000); 00174 ros::serialization::serialize(stream, objectId); 00175 ros::serialization::serialize(stream, markers); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, objectId); 00183 ros::serialization::deserialize(stream, markers); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 size += ros::serialization::serializationLength(objectId); 00191 size += ros::serialization::serializationLength(markers); 00192 return size; 00193 } 00194 00195 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf_<ContainerAllocator> > Ptr; 00196 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf_<ContainerAllocator> const> ConstPtr; 00197 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00198 }; // struct urdf 00199 typedef ::srs_object_database_msgs::urdf_<std::allocator<void> > urdf; 00200 00201 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf> urdfPtr; 00202 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf const> urdfConstPtr; 00203 00204 00205 template<typename ContainerAllocator> 00206 std::ostream& operator<<(std::ostream& s, const ::srs_object_database_msgs::urdf_<ContainerAllocator> & v) 00207 { 00208 ros::message_operations::Printer< ::srs_object_database_msgs::urdf_<ContainerAllocator> >::stream(s, "", v); 00209 return s;} 00210 00211 } // namespace srs_object_database_msgs 00212 00213 namespace ros 00214 { 00215 namespace message_traits 00216 { 00217 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::urdf_<ContainerAllocator> > : public TrueType {}; 00218 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::urdf_<ContainerAllocator> const> : public TrueType {}; 00219 template<class ContainerAllocator> 00220 struct MD5Sum< ::srs_object_database_msgs::urdf_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "5e0ef6153464ee9ec35b3eb8f82bc8a1"; 00224 } 00225 00226 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); } 00227 static const uint64_t static_value1 = 0x5e0ef6153464ee9eULL; 00228 static const uint64_t static_value2 = 0xc35b3eb8f82bc8a1ULL; 00229 }; 00230 00231 template<class ContainerAllocator> 00232 struct DataType< ::srs_object_database_msgs::urdf_<ContainerAllocator> > { 00233 static const char* value() 00234 { 00235 return "srs_object_database_msgs/urdf"; 00236 } 00237 00238 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct Definition< ::srs_object_database_msgs::urdf_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "int32 objectId\n\ 00246 visualization_msgs/Marker[] markers\n\ 00247 ================================================================================\n\ 00248 MSG: visualization_msgs/Marker\n\ 00249 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\ 00250 \n\ 00251 uint8 ARROW=0\n\ 00252 uint8 CUBE=1\n\ 00253 uint8 SPHERE=2\n\ 00254 uint8 CYLINDER=3\n\ 00255 uint8 LINE_STRIP=4\n\ 00256 uint8 LINE_LIST=5\n\ 00257 uint8 CUBE_LIST=6\n\ 00258 uint8 SPHERE_LIST=7\n\ 00259 uint8 POINTS=8\n\ 00260 uint8 TEXT_VIEW_FACING=9\n\ 00261 uint8 MESH_RESOURCE=10\n\ 00262 uint8 TRIANGLE_LIST=11\n\ 00263 \n\ 00264 uint8 ADD=0\n\ 00265 uint8 MODIFY=0\n\ 00266 uint8 DELETE=2\n\ 00267 \n\ 00268 Header header # header for time/frame information\n\ 00269 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\ 00270 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\ 00271 int32 type # Type of object\n\ 00272 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\ 00273 geometry_msgs/Pose pose # Pose of the object\n\ 00274 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\ 00275 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\ 00276 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\ 00277 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\ 00278 \n\ 00279 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\ 00280 geometry_msgs/Point[] points\n\ 00281 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\ 00282 #number of colors must either be 0 or equal to the number of points\n\ 00283 #NOTE: alpha is not yet used\n\ 00284 std_msgs/ColorRGBA[] colors\n\ 00285 \n\ 00286 # NOTE: only used for text markers\n\ 00287 string text\n\ 00288 \n\ 00289 # NOTE: only used for MESH_RESOURCE markers\n\ 00290 string mesh_resource\n\ 00291 bool mesh_use_embedded_materials\n\ 00292 \n\ 00293 ================================================================================\n\ 00294 MSG: std_msgs/Header\n\ 00295 # Standard metadata for higher-level stamped data types.\n\ 00296 # This is generally used to communicate timestamped data \n\ 00297 # in a particular coordinate frame.\n\ 00298 # \n\ 00299 # sequence ID: consecutively increasing ID \n\ 00300 uint32 seq\n\ 00301 #Two-integer timestamp that is expressed as:\n\ 00302 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00303 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00304 # time-handling sugar is provided by the client library\n\ 00305 time stamp\n\ 00306 #Frame this data is associated with\n\ 00307 # 0: no frame\n\ 00308 # 1: global frame\n\ 00309 string frame_id\n\ 00310 \n\ 00311 ================================================================================\n\ 00312 MSG: geometry_msgs/Pose\n\ 00313 # A representation of pose in free space, composed of postion and orientation. \n\ 00314 Point position\n\ 00315 Quaternion orientation\n\ 00316 \n\ 00317 ================================================================================\n\ 00318 MSG: geometry_msgs/Point\n\ 00319 # This contains the position of a point in free space\n\ 00320 float64 x\n\ 00321 float64 y\n\ 00322 float64 z\n\ 00323 \n\ 00324 ================================================================================\n\ 00325 MSG: geometry_msgs/Quaternion\n\ 00326 # This represents an orientation in free space in quaternion form.\n\ 00327 \n\ 00328 float64 x\n\ 00329 float64 y\n\ 00330 float64 z\n\ 00331 float64 w\n\ 00332 \n\ 00333 ================================================================================\n\ 00334 MSG: geometry_msgs/Vector3\n\ 00335 # This represents a vector in free space. \n\ 00336 \n\ 00337 float64 x\n\ 00338 float64 y\n\ 00339 float64 z\n\ 00340 ================================================================================\n\ 00341 MSG: std_msgs/ColorRGBA\n\ 00342 float32 r\n\ 00343 float32 g\n\ 00344 float32 b\n\ 00345 float32 a\n\ 00346 \n\ 00347 "; 00348 } 00349 00350 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); } 00351 }; 00352 00353 } // namespace message_traits 00354 } // namespace ros 00355 00356 namespace ros 00357 { 00358 namespace serialization 00359 { 00360 00361 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::urdf_<ContainerAllocator> > 00362 { 00363 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00364 { 00365 stream.next(m.objectId); 00366 stream.next(m.markers); 00367 } 00368 00369 ROS_DECLARE_ALLINONE_SERIALIZER; 00370 }; // struct urdf_ 00371 } // namespace serialization 00372 } // namespace ros 00373 00374 namespace ros 00375 { 00376 namespace message_operations 00377 { 00378 00379 template<class ContainerAllocator> 00380 struct Printer< ::srs_object_database_msgs::urdf_<ContainerAllocator> > 00381 { 00382 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_object_database_msgs::urdf_<ContainerAllocator> & v) 00383 { 00384 s << indent << "objectId: "; 00385 Printer<int32_t>::stream(s, indent + " ", v.objectId); 00386 s << indent << "markers[]" << std::endl; 00387 for (size_t i = 0; i < v.markers.size(); ++i) 00388 { 00389 s << indent << " markers[" << i << "]: "; 00390 s << std::endl; 00391 s << indent; 00392 Printer< ::visualization_msgs::Marker_<ContainerAllocator> >::stream(s, indent + " ", v.markers[i]); 00393 } 00394 } 00395 }; 00396 00397 00398 } // namespace message_operations 00399 } // namespace ros 00400 00401 #endif // SRS_OBJECT_DATABASE_MSGS_MESSAGE_URDF_H 00402