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