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