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