$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/visualization_msgs/msg/InteractiveMarkerFeedback.msg */ 00002 #ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_H 00003 #define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_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 "geometry_msgs/Pose.h" 00019 #include "geometry_msgs/Point.h" 00020 00021 namespace visualization_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct InteractiveMarkerFeedback_ { 00025 typedef InteractiveMarkerFeedback_<ContainerAllocator> Type; 00026 00027 InteractiveMarkerFeedback_() 00028 : header() 00029 , client_id() 00030 , marker_name() 00031 , control_name() 00032 , event_type(0) 00033 , pose() 00034 , menu_entry_id(0) 00035 , mouse_point() 00036 , mouse_point_valid(false) 00037 { 00038 } 00039 00040 InteractiveMarkerFeedback_(const ContainerAllocator& _alloc) 00041 : header(_alloc) 00042 , client_id(_alloc) 00043 , marker_name(_alloc) 00044 , control_name(_alloc) 00045 , event_type(0) 00046 , pose(_alloc) 00047 , menu_entry_id(0) 00048 , mouse_point(_alloc) 00049 , mouse_point_valid(false) 00050 { 00051 } 00052 00053 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00054 ::std_msgs::Header_<ContainerAllocator> header; 00055 00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _client_id_type; 00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > client_id; 00058 00059 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _marker_name_type; 00060 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > marker_name; 00061 00062 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _control_name_type; 00063 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > control_name; 00064 00065 typedef uint8_t _event_type_type; 00066 uint8_t event_type; 00067 00068 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00069 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00070 00071 typedef uint32_t _menu_entry_id_type; 00072 uint32_t menu_entry_id; 00073 00074 typedef ::geometry_msgs::Point_<ContainerAllocator> _mouse_point_type; 00075 ::geometry_msgs::Point_<ContainerAllocator> mouse_point; 00076 00077 typedef uint8_t _mouse_point_valid_type; 00078 uint8_t mouse_point_valid; 00079 00080 enum { KEEP_ALIVE = 0 }; 00081 enum { POSE_UPDATE = 1 }; 00082 enum { MENU_SELECT = 2 }; 00083 enum { BUTTON_CLICK = 3 }; 00084 enum { MOUSE_DOWN = 4 }; 00085 enum { MOUSE_UP = 5 }; 00086 00087 private: 00088 static const char* __s_getDataType_() { return "visualization_msgs/InteractiveMarkerFeedback"; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00091 00092 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00093 00094 private: 00095 static const char* __s_getMD5Sum_() { return "ab0f1eee058667e28c19ff3ffc3f4b78"; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00098 00099 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00100 00101 private: 00102 static const char* __s_getMessageDefinition_() { return "# Time/frame info.\n\ 00103 Header header\n\ 00104 \n\ 00105 # Identifying string. Must be unique in the topic namespace.\n\ 00106 string client_id\n\ 00107 \n\ 00108 # Feedback message sent back from the GUI, e.g.\n\ 00109 # when the status of an interactive marker was modified by the user.\n\ 00110 \n\ 00111 # Specifies which interactive marker and control this message refers to\n\ 00112 string marker_name\n\ 00113 string control_name\n\ 00114 \n\ 00115 # Type of the event\n\ 00116 # KEEP_ALIVE: sent while dragging to keep up control of the marker\n\ 00117 # MENU_SELECT: a menu entry has been selected\n\ 00118 # BUTTON_CLICK: a button control has been clicked\n\ 00119 # POSE_UPDATE: the pose has been changed using one of the controls\n\ 00120 uint8 KEEP_ALIVE = 0\n\ 00121 uint8 POSE_UPDATE = 1\n\ 00122 uint8 MENU_SELECT = 2\n\ 00123 uint8 BUTTON_CLICK = 3\n\ 00124 \n\ 00125 uint8 MOUSE_DOWN = 4\n\ 00126 uint8 MOUSE_UP = 5\n\ 00127 \n\ 00128 uint8 event_type\n\ 00129 \n\ 00130 # Current pose of the marker\n\ 00131 # Note: Has to be valid for all feedback types.\n\ 00132 geometry_msgs/Pose pose\n\ 00133 \n\ 00134 # Contains the ID of the selected menu entry\n\ 00135 # Only valid for MENU_SELECT events.\n\ 00136 uint32 menu_entry_id\n\ 00137 \n\ 00138 # If event_type is BUTTON_CLICK, MOUSE_DOWN, or MOUSE_UP, mouse_point\n\ 00139 # may contain the 3 dimensional position of the event on the\n\ 00140 # control. If it does, mouse_point_valid will be true. mouse_point\n\ 00141 # will be relative to the frame listed in the header.\n\ 00142 geometry_msgs/Point mouse_point\n\ 00143 bool mouse_point_valid\n\ 00144 \n\ 00145 ================================================================================\n\ 00146 MSG: std_msgs/Header\n\ 00147 # Standard metadata for higher-level stamped data types.\n\ 00148 # This is generally used to communicate timestamped data \n\ 00149 # in a particular coordinate frame.\n\ 00150 # \n\ 00151 # sequence ID: consecutively increasing ID \n\ 00152 uint32 seq\n\ 00153 #Two-integer timestamp that is expressed as:\n\ 00154 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00155 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00156 # time-handling sugar is provided by the client library\n\ 00157 time stamp\n\ 00158 #Frame this data is associated with\n\ 00159 # 0: no frame\n\ 00160 # 1: global frame\n\ 00161 string frame_id\n\ 00162 \n\ 00163 ================================================================================\n\ 00164 MSG: geometry_msgs/Pose\n\ 00165 # A representation of pose in free space, composed of postion and orientation. \n\ 00166 Point position\n\ 00167 Quaternion orientation\n\ 00168 \n\ 00169 ================================================================================\n\ 00170 MSG: geometry_msgs/Point\n\ 00171 # This contains the position of a point in free space\n\ 00172 float64 x\n\ 00173 float64 y\n\ 00174 float64 z\n\ 00175 \n\ 00176 ================================================================================\n\ 00177 MSG: geometry_msgs/Quaternion\n\ 00178 # This represents an orientation in free space in quaternion form.\n\ 00179 \n\ 00180 float64 x\n\ 00181 float64 y\n\ 00182 float64 z\n\ 00183 float64 w\n\ 00184 \n\ 00185 "; } 00186 public: 00187 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00188 00189 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00190 00191 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00192 { 00193 ros::serialization::OStream stream(write_ptr, 1000000000); 00194 ros::serialization::serialize(stream, header); 00195 ros::serialization::serialize(stream, client_id); 00196 ros::serialization::serialize(stream, marker_name); 00197 ros::serialization::serialize(stream, control_name); 00198 ros::serialization::serialize(stream, event_type); 00199 ros::serialization::serialize(stream, pose); 00200 ros::serialization::serialize(stream, menu_entry_id); 00201 ros::serialization::serialize(stream, mouse_point); 00202 ros::serialization::serialize(stream, mouse_point_valid); 00203 return stream.getData(); 00204 } 00205 00206 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00207 { 00208 ros::serialization::IStream stream(read_ptr, 1000000000); 00209 ros::serialization::deserialize(stream, header); 00210 ros::serialization::deserialize(stream, client_id); 00211 ros::serialization::deserialize(stream, marker_name); 00212 ros::serialization::deserialize(stream, control_name); 00213 ros::serialization::deserialize(stream, event_type); 00214 ros::serialization::deserialize(stream, pose); 00215 ros::serialization::deserialize(stream, menu_entry_id); 00216 ros::serialization::deserialize(stream, mouse_point); 00217 ros::serialization::deserialize(stream, mouse_point_valid); 00218 return stream.getData(); 00219 } 00220 00221 ROS_DEPRECATED virtual uint32_t serializationLength() const 00222 { 00223 uint32_t size = 0; 00224 size += ros::serialization::serializationLength(header); 00225 size += ros::serialization::serializationLength(client_id); 00226 size += ros::serialization::serializationLength(marker_name); 00227 size += ros::serialization::serializationLength(control_name); 00228 size += ros::serialization::serializationLength(event_type); 00229 size += ros::serialization::serializationLength(pose); 00230 size += ros::serialization::serializationLength(menu_entry_id); 00231 size += ros::serialization::serializationLength(mouse_point); 00232 size += ros::serialization::serializationLength(mouse_point_valid); 00233 return size; 00234 } 00235 00236 typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > Ptr; 00237 typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> const> ConstPtr; 00238 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00239 }; // struct InteractiveMarkerFeedback 00240 typedef ::visualization_msgs::InteractiveMarkerFeedback_<std::allocator<void> > InteractiveMarkerFeedback; 00241 00242 typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback> InteractiveMarkerFeedbackPtr; 00243 typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback const> InteractiveMarkerFeedbackConstPtr; 00244 00245 00246 template<typename ContainerAllocator> 00247 std::ostream& operator<<(std::ostream& s, const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> & v) 00248 { 00249 ros::message_operations::Printer< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> >::stream(s, "", v); 00250 return s;} 00251 00252 } // namespace visualization_msgs 00253 00254 namespace ros 00255 { 00256 namespace message_traits 00257 { 00258 template<class ContainerAllocator> struct IsMessage< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct IsMessage< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> const> : public TrueType {}; 00260 template<class ContainerAllocator> 00261 struct MD5Sum< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "ab0f1eee058667e28c19ff3ffc3f4b78"; 00265 } 00266 00267 static const char* value(const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> &) { return value(); } 00268 static const uint64_t static_value1 = 0xab0f1eee058667e2ULL; 00269 static const uint64_t static_value2 = 0x8c19ff3ffc3f4b78ULL; 00270 }; 00271 00272 template<class ContainerAllocator> 00273 struct DataType< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "visualization_msgs/InteractiveMarkerFeedback"; 00277 } 00278 00279 static const char* value(const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct Definition< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "# Time/frame info.\n\ 00287 Header header\n\ 00288 \n\ 00289 # Identifying string. Must be unique in the topic namespace.\n\ 00290 string client_id\n\ 00291 \n\ 00292 # Feedback message sent back from the GUI, e.g.\n\ 00293 # when the status of an interactive marker was modified by the user.\n\ 00294 \n\ 00295 # Specifies which interactive marker and control this message refers to\n\ 00296 string marker_name\n\ 00297 string control_name\n\ 00298 \n\ 00299 # Type of the event\n\ 00300 # KEEP_ALIVE: sent while dragging to keep up control of the marker\n\ 00301 # MENU_SELECT: a menu entry has been selected\n\ 00302 # BUTTON_CLICK: a button control has been clicked\n\ 00303 # POSE_UPDATE: the pose has been changed using one of the controls\n\ 00304 uint8 KEEP_ALIVE = 0\n\ 00305 uint8 POSE_UPDATE = 1\n\ 00306 uint8 MENU_SELECT = 2\n\ 00307 uint8 BUTTON_CLICK = 3\n\ 00308 \n\ 00309 uint8 MOUSE_DOWN = 4\n\ 00310 uint8 MOUSE_UP = 5\n\ 00311 \n\ 00312 uint8 event_type\n\ 00313 \n\ 00314 # Current pose of the marker\n\ 00315 # Note: Has to be valid for all feedback types.\n\ 00316 geometry_msgs/Pose pose\n\ 00317 \n\ 00318 # Contains the ID of the selected menu entry\n\ 00319 # Only valid for MENU_SELECT events.\n\ 00320 uint32 menu_entry_id\n\ 00321 \n\ 00322 # If event_type is BUTTON_CLICK, MOUSE_DOWN, or MOUSE_UP, mouse_point\n\ 00323 # may contain the 3 dimensional position of the event on the\n\ 00324 # control. If it does, mouse_point_valid will be true. mouse_point\n\ 00325 # will be relative to the frame listed in the header.\n\ 00326 geometry_msgs/Point mouse_point\n\ 00327 bool mouse_point_valid\n\ 00328 \n\ 00329 ================================================================================\n\ 00330 MSG: std_msgs/Header\n\ 00331 # Standard metadata for higher-level stamped data types.\n\ 00332 # This is generally used to communicate timestamped data \n\ 00333 # in a particular coordinate frame.\n\ 00334 # \n\ 00335 # sequence ID: consecutively increasing ID \n\ 00336 uint32 seq\n\ 00337 #Two-integer timestamp that is expressed as:\n\ 00338 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00339 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00340 # time-handling sugar is provided by the client library\n\ 00341 time stamp\n\ 00342 #Frame this data is associated with\n\ 00343 # 0: no frame\n\ 00344 # 1: global frame\n\ 00345 string frame_id\n\ 00346 \n\ 00347 ================================================================================\n\ 00348 MSG: geometry_msgs/Pose\n\ 00349 # A representation of pose in free space, composed of postion and orientation. \n\ 00350 Point position\n\ 00351 Quaternion orientation\n\ 00352 \n\ 00353 ================================================================================\n\ 00354 MSG: geometry_msgs/Point\n\ 00355 # This contains the position of a point in free space\n\ 00356 float64 x\n\ 00357 float64 y\n\ 00358 float64 z\n\ 00359 \n\ 00360 ================================================================================\n\ 00361 MSG: geometry_msgs/Quaternion\n\ 00362 # This represents an orientation in free space in quaternion form.\n\ 00363 \n\ 00364 float64 x\n\ 00365 float64 y\n\ 00366 float64 z\n\ 00367 float64 w\n\ 00368 \n\ 00369 "; 00370 } 00371 00372 static const char* value(const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> &) { return value(); } 00373 }; 00374 00375 template<class ContainerAllocator> struct HasHeader< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > : public TrueType {}; 00376 template<class ContainerAllocator> struct HasHeader< const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > : public TrueType {}; 00377 } // namespace message_traits 00378 } // namespace ros 00379 00380 namespace ros 00381 { 00382 namespace serialization 00383 { 00384 00385 template<class ContainerAllocator> struct Serializer< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > 00386 { 00387 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00388 { 00389 stream.next(m.header); 00390 stream.next(m.client_id); 00391 stream.next(m.marker_name); 00392 stream.next(m.control_name); 00393 stream.next(m.event_type); 00394 stream.next(m.pose); 00395 stream.next(m.menu_entry_id); 00396 stream.next(m.mouse_point); 00397 stream.next(m.mouse_point_valid); 00398 } 00399 00400 ROS_DECLARE_ALLINONE_SERIALIZER; 00401 }; // struct InteractiveMarkerFeedback_ 00402 } // namespace serialization 00403 } // namespace ros 00404 00405 namespace ros 00406 { 00407 namespace message_operations 00408 { 00409 00410 template<class ContainerAllocator> 00411 struct Printer< ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> > 00412 { 00413 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visualization_msgs::InteractiveMarkerFeedback_<ContainerAllocator> & v) 00414 { 00415 s << indent << "header: "; 00416 s << std::endl; 00417 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00418 s << indent << "client_id: "; 00419 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.client_id); 00420 s << indent << "marker_name: "; 00421 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.marker_name); 00422 s << indent << "control_name: "; 00423 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.control_name); 00424 s << indent << "event_type: "; 00425 Printer<uint8_t>::stream(s, indent + " ", v.event_type); 00426 s << indent << "pose: "; 00427 s << std::endl; 00428 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00429 s << indent << "menu_entry_id: "; 00430 Printer<uint32_t>::stream(s, indent + " ", v.menu_entry_id); 00431 s << indent << "mouse_point: "; 00432 s << std::endl; 00433 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.mouse_point); 00434 s << indent << "mouse_point_valid: "; 00435 Printer<uint8_t>::stream(s, indent + " ", v.mouse_point_valid); 00436 } 00437 }; 00438 00439 00440 } // namespace message_operations 00441 } // namespace ros 00442 00443 #endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_H 00444