Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::srs_object_database_msgs::urdf_<std::allocator<void> > urdf;
00049
00050 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf> urdfPtr;
00051 typedef boost::shared_ptr< ::srs_object_database_msgs::urdf const> urdfConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::srs_object_database_msgs::urdf_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::srs_object_database_msgs::urdf_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::urdf_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::urdf_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::srs_object_database_msgs::urdf_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "5e0ef6153464ee9ec35b3eb8f82bc8a1";
00073 }
00074
00075 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0x5e0ef6153464ee9eULL;
00077 static const uint64_t static_value2 = 0xc35b3eb8f82bc8a1ULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::srs_object_database_msgs::urdf_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "srs_object_database_msgs/urdf";
00085 }
00086
00087 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::srs_object_database_msgs::urdf_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "int32 objectId\n\
00095 visualization_msgs/Marker[] markers\n\
00096 ================================================================================\n\
00097 MSG: visualization_msgs/Marker\n\
00098 # 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\
00099 \n\
00100 uint8 ARROW=0\n\
00101 uint8 CUBE=1\n\
00102 uint8 SPHERE=2\n\
00103 uint8 CYLINDER=3\n\
00104 uint8 LINE_STRIP=4\n\
00105 uint8 LINE_LIST=5\n\
00106 uint8 CUBE_LIST=6\n\
00107 uint8 SPHERE_LIST=7\n\
00108 uint8 POINTS=8\n\
00109 uint8 TEXT_VIEW_FACING=9\n\
00110 uint8 MESH_RESOURCE=10\n\
00111 uint8 TRIANGLE_LIST=11\n\
00112 \n\
00113 uint8 ADD=0\n\
00114 uint8 MODIFY=0\n\
00115 uint8 DELETE=2\n\
00116 \n\
00117 Header header # header for time/frame information\n\
00118 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
00119 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
00120 int32 type # Type of object\n\
00121 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\
00122 geometry_msgs/Pose pose # Pose of the object\n\
00123 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
00124 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
00125 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
00126 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
00127 \n\
00128 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00129 geometry_msgs/Point[] points\n\
00130 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00131 #number of colors must either be 0 or equal to the number of points\n\
00132 #NOTE: alpha is not yet used\n\
00133 std_msgs/ColorRGBA[] colors\n\
00134 \n\
00135 # NOTE: only used for text markers\n\
00136 string text\n\
00137 \n\
00138 # NOTE: only used for MESH_RESOURCE markers\n\
00139 string mesh_resource\n\
00140 bool mesh_use_embedded_materials\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: std_msgs/Header\n\
00144 # Standard metadata for higher-level stamped data types.\n\
00145 # This is generally used to communicate timestamped data \n\
00146 # in a particular coordinate frame.\n\
00147 # \n\
00148 # sequence ID: consecutively increasing ID \n\
00149 uint32 seq\n\
00150 #Two-integer timestamp that is expressed as:\n\
00151 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00152 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00153 # time-handling sugar is provided by the client library\n\
00154 time stamp\n\
00155 #Frame this data is associated with\n\
00156 # 0: no frame\n\
00157 # 1: global frame\n\
00158 string frame_id\n\
00159 \n\
00160 ================================================================================\n\
00161 MSG: geometry_msgs/Pose\n\
00162 # A representation of pose in free space, composed of postion and orientation. \n\
00163 Point position\n\
00164 Quaternion orientation\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: geometry_msgs/Point\n\
00168 # This contains the position of a point in free space\n\
00169 float64 x\n\
00170 float64 y\n\
00171 float64 z\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: geometry_msgs/Quaternion\n\
00175 # This represents an orientation in free space in quaternion form.\n\
00176 \n\
00177 float64 x\n\
00178 float64 y\n\
00179 float64 z\n\
00180 float64 w\n\
00181 \n\
00182 ================================================================================\n\
00183 MSG: geometry_msgs/Vector3\n\
00184 # This represents a vector in free space. \n\
00185 \n\
00186 float64 x\n\
00187 float64 y\n\
00188 float64 z\n\
00189 ================================================================================\n\
00190 MSG: std_msgs/ColorRGBA\n\
00191 float32 r\n\
00192 float32 g\n\
00193 float32 b\n\
00194 float32 a\n\
00195 \n\
00196 ";
00197 }
00198
00199 static const char* value(const ::srs_object_database_msgs::urdf_<ContainerAllocator> &) { return value(); }
00200 };
00201
00202 }
00203 }
00204
00205 namespace ros
00206 {
00207 namespace serialization
00208 {
00209
00210 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::urdf_<ContainerAllocator> >
00211 {
00212 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00213 {
00214 stream.next(m.objectId);
00215 stream.next(m.markers);
00216 }
00217
00218 ROS_DECLARE_ALLINONE_SERIALIZER;
00219 };
00220 }
00221 }
00222
00223 namespace ros
00224 {
00225 namespace message_operations
00226 {
00227
00228 template<class ContainerAllocator>
00229 struct Printer< ::srs_object_database_msgs::urdf_<ContainerAllocator> >
00230 {
00231 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_object_database_msgs::urdf_<ContainerAllocator> & v)
00232 {
00233 s << indent << "objectId: ";
00234 Printer<int32_t>::stream(s, indent + " ", v.objectId);
00235 s << indent << "markers[]" << std::endl;
00236 for (size_t i = 0; i < v.markers.size(); ++i)
00237 {
00238 s << indent << " markers[" << i << "]: ";
00239 s << std::endl;
00240 s << indent;
00241 Printer< ::visualization_msgs::Marker_<ContainerAllocator> >::stream(s, indent + " ", v.markers[i]);
00242 }
00243 }
00244 };
00245
00246
00247 }
00248 }
00249
00250 #endif // SRS_OBJECT_DATABASE_MSGS_MESSAGE_URDF_H
00251