$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/MenuEntry.msg */ 00002 #ifndef VISUALIZATION_MSGS_MESSAGE_MENUENTRY_H 00003 #define VISUALIZATION_MSGS_MESSAGE_MENUENTRY_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 00018 namespace visualization_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct MenuEntry_ { 00022 typedef MenuEntry_<ContainerAllocator> Type; 00023 00024 MenuEntry_() 00025 : id(0) 00026 , parent_id(0) 00027 , title() 00028 , command() 00029 , command_type(0) 00030 { 00031 } 00032 00033 MenuEntry_(const ContainerAllocator& _alloc) 00034 : id(0) 00035 , parent_id(0) 00036 , title(_alloc) 00037 , command(_alloc) 00038 , command_type(0) 00039 { 00040 } 00041 00042 typedef uint32_t _id_type; 00043 uint32_t id; 00044 00045 typedef uint32_t _parent_id_type; 00046 uint32_t parent_id; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _title_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > title; 00050 00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _command_type; 00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > command; 00053 00054 typedef uint8_t _command_type_type; 00055 uint8_t command_type; 00056 00057 enum { FEEDBACK = 0 }; 00058 enum { ROSRUN = 1 }; 00059 enum { ROSLAUNCH = 2 }; 00060 00061 private: 00062 static const char* __s_getDataType_() { return "visualization_msgs/MenuEntry"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "b90ec63024573de83b57aa93eb39be2d"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# MenuEntry message.\n\ 00077 \n\ 00078 # Each InteractiveMarker message has an array of MenuEntry messages.\n\ 00079 # A collection of MenuEntries together describe a\n\ 00080 # menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\ 00081 # array. The tree structure is represented by giving each menu entry\n\ 00082 # an ID number and a \"parent_id\" field. Top-level entries are the\n\ 00083 # ones with parent_id = 0. Menu entries are ordered within their\n\ 00084 # level the same way they are ordered in the containing array. Parent\n\ 00085 # entries must appear before their children.\n\ 00086 \n\ 00087 # Example:\n\ 00088 # - id = 3\n\ 00089 # parent_id = 0\n\ 00090 # title = \"fun\"\n\ 00091 # - id = 2\n\ 00092 # parent_id = 0\n\ 00093 # title = \"robot\"\n\ 00094 # - id = 4\n\ 00095 # parent_id = 2\n\ 00096 # title = \"pr2\"\n\ 00097 # - id = 5\n\ 00098 # parent_id = 2\n\ 00099 # title = \"turtle\"\n\ 00100 #\n\ 00101 # Gives a menu tree like this:\n\ 00102 # - fun\n\ 00103 # - robot\n\ 00104 # - pr2\n\ 00105 # - turtle\n\ 00106 \n\ 00107 # ID is a number for each menu entry. Must be unique within the\n\ 00108 # control, and should never be 0.\n\ 00109 uint32 id\n\ 00110 \n\ 00111 # ID of the parent of this menu entry, if it is a submenu. If this\n\ 00112 # menu entry is a top-level entry, set parent_id to 0.\n\ 00113 uint32 parent_id\n\ 00114 \n\ 00115 # menu / entry title\n\ 00116 string title\n\ 00117 \n\ 00118 # Arguments to command indicated by command_type (below)\n\ 00119 string command\n\ 00120 \n\ 00121 # Command_type stores the type of response desired when this menu\n\ 00122 # entry is clicked.\n\ 00123 # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\ 00124 # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\ 00125 # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\ 00126 uint8 FEEDBACK=0\n\ 00127 uint8 ROSRUN=1\n\ 00128 uint8 ROSLAUNCH=2\n\ 00129 uint8 command_type\n\ 00130 \n\ 00131 "; } 00132 public: 00133 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00134 00135 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00136 00137 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00138 { 00139 ros::serialization::OStream stream(write_ptr, 1000000000); 00140 ros::serialization::serialize(stream, id); 00141 ros::serialization::serialize(stream, parent_id); 00142 ros::serialization::serialize(stream, title); 00143 ros::serialization::serialize(stream, command); 00144 ros::serialization::serialize(stream, command_type); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00149 { 00150 ros::serialization::IStream stream(read_ptr, 1000000000); 00151 ros::serialization::deserialize(stream, id); 00152 ros::serialization::deserialize(stream, parent_id); 00153 ros::serialization::deserialize(stream, title); 00154 ros::serialization::deserialize(stream, command); 00155 ros::serialization::deserialize(stream, command_type); 00156 return stream.getData(); 00157 } 00158 00159 ROS_DEPRECATED virtual uint32_t serializationLength() const 00160 { 00161 uint32_t size = 0; 00162 size += ros::serialization::serializationLength(id); 00163 size += ros::serialization::serializationLength(parent_id); 00164 size += ros::serialization::serializationLength(title); 00165 size += ros::serialization::serializationLength(command); 00166 size += ros::serialization::serializationLength(command_type); 00167 return size; 00168 } 00169 00170 typedef boost::shared_ptr< ::visualization_msgs::MenuEntry_<ContainerAllocator> > Ptr; 00171 typedef boost::shared_ptr< ::visualization_msgs::MenuEntry_<ContainerAllocator> const> ConstPtr; 00172 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00173 }; // struct MenuEntry 00174 typedef ::visualization_msgs::MenuEntry_<std::allocator<void> > MenuEntry; 00175 00176 typedef boost::shared_ptr< ::visualization_msgs::MenuEntry> MenuEntryPtr; 00177 typedef boost::shared_ptr< ::visualization_msgs::MenuEntry const> MenuEntryConstPtr; 00178 00179 00180 template<typename ContainerAllocator> 00181 std::ostream& operator<<(std::ostream& s, const ::visualization_msgs::MenuEntry_<ContainerAllocator> & v) 00182 { 00183 ros::message_operations::Printer< ::visualization_msgs::MenuEntry_<ContainerAllocator> >::stream(s, "", v); 00184 return s;} 00185 00186 } // namespace visualization_msgs 00187 00188 namespace ros 00189 { 00190 namespace message_traits 00191 { 00192 template<class ContainerAllocator> struct IsMessage< ::visualization_msgs::MenuEntry_<ContainerAllocator> > : public TrueType {}; 00193 template<class ContainerAllocator> struct IsMessage< ::visualization_msgs::MenuEntry_<ContainerAllocator> const> : public TrueType {}; 00194 template<class ContainerAllocator> 00195 struct MD5Sum< ::visualization_msgs::MenuEntry_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "b90ec63024573de83b57aa93eb39be2d"; 00199 } 00200 00201 static const char* value(const ::visualization_msgs::MenuEntry_<ContainerAllocator> &) { return value(); } 00202 static const uint64_t static_value1 = 0xb90ec63024573de8ULL; 00203 static const uint64_t static_value2 = 0x3b57aa93eb39be2dULL; 00204 }; 00205 00206 template<class ContainerAllocator> 00207 struct DataType< ::visualization_msgs::MenuEntry_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "visualization_msgs/MenuEntry"; 00211 } 00212 00213 static const char* value(const ::visualization_msgs::MenuEntry_<ContainerAllocator> &) { return value(); } 00214 }; 00215 00216 template<class ContainerAllocator> 00217 struct Definition< ::visualization_msgs::MenuEntry_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "# MenuEntry message.\n\ 00221 \n\ 00222 # Each InteractiveMarker message has an array of MenuEntry messages.\n\ 00223 # A collection of MenuEntries together describe a\n\ 00224 # menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\ 00225 # array. The tree structure is represented by giving each menu entry\n\ 00226 # an ID number and a \"parent_id\" field. Top-level entries are the\n\ 00227 # ones with parent_id = 0. Menu entries are ordered within their\n\ 00228 # level the same way they are ordered in the containing array. Parent\n\ 00229 # entries must appear before their children.\n\ 00230 \n\ 00231 # Example:\n\ 00232 # - id = 3\n\ 00233 # parent_id = 0\n\ 00234 # title = \"fun\"\n\ 00235 # - id = 2\n\ 00236 # parent_id = 0\n\ 00237 # title = \"robot\"\n\ 00238 # - id = 4\n\ 00239 # parent_id = 2\n\ 00240 # title = \"pr2\"\n\ 00241 # - id = 5\n\ 00242 # parent_id = 2\n\ 00243 # title = \"turtle\"\n\ 00244 #\n\ 00245 # Gives a menu tree like this:\n\ 00246 # - fun\n\ 00247 # - robot\n\ 00248 # - pr2\n\ 00249 # - turtle\n\ 00250 \n\ 00251 # ID is a number for each menu entry. Must be unique within the\n\ 00252 # control, and should never be 0.\n\ 00253 uint32 id\n\ 00254 \n\ 00255 # ID of the parent of this menu entry, if it is a submenu. If this\n\ 00256 # menu entry is a top-level entry, set parent_id to 0.\n\ 00257 uint32 parent_id\n\ 00258 \n\ 00259 # menu / entry title\n\ 00260 string title\n\ 00261 \n\ 00262 # Arguments to command indicated by command_type (below)\n\ 00263 string command\n\ 00264 \n\ 00265 # Command_type stores the type of response desired when this menu\n\ 00266 # entry is clicked.\n\ 00267 # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\ 00268 # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\ 00269 # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\ 00270 uint8 FEEDBACK=0\n\ 00271 uint8 ROSRUN=1\n\ 00272 uint8 ROSLAUNCH=2\n\ 00273 uint8 command_type\n\ 00274 \n\ 00275 "; 00276 } 00277 00278 static const char* value(const ::visualization_msgs::MenuEntry_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 } // namespace message_traits 00282 } // namespace ros 00283 00284 namespace ros 00285 { 00286 namespace serialization 00287 { 00288 00289 template<class ContainerAllocator> struct Serializer< ::visualization_msgs::MenuEntry_<ContainerAllocator> > 00290 { 00291 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00292 { 00293 stream.next(m.id); 00294 stream.next(m.parent_id); 00295 stream.next(m.title); 00296 stream.next(m.command); 00297 stream.next(m.command_type); 00298 } 00299 00300 ROS_DECLARE_ALLINONE_SERIALIZER; 00301 }; // struct MenuEntry_ 00302 } // namespace serialization 00303 } // namespace ros 00304 00305 namespace ros 00306 { 00307 namespace message_operations 00308 { 00309 00310 template<class ContainerAllocator> 00311 struct Printer< ::visualization_msgs::MenuEntry_<ContainerAllocator> > 00312 { 00313 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visualization_msgs::MenuEntry_<ContainerAllocator> & v) 00314 { 00315 s << indent << "id: "; 00316 Printer<uint32_t>::stream(s, indent + " ", v.id); 00317 s << indent << "parent_id: "; 00318 Printer<uint32_t>::stream(s, indent + " ", v.parent_id); 00319 s << indent << "title: "; 00320 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.title); 00321 s << indent << "command: "; 00322 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.command); 00323 s << indent << "command_type: "; 00324 Printer<uint8_t>::stream(s, indent + " ", v.command_type); 00325 } 00326 }; 00327 00328 00329 } // namespace message_operations 00330 } // namespace ros 00331 00332 #endif // VISUALIZATION_MSGS_MESSAGE_MENUENTRY_H 00333