MenuEntry.msg 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # MenuEntry message.
  2. # Each InteractiveMarker message has an array of MenuEntry messages.
  3. # A collection of MenuEntries together describe a
  4. # menu/submenu/subsubmenu/etc tree, though they are stored in a flat
  5. # array. The tree structure is represented by giving each menu entry
  6. # an ID number and a "parent_id" field. Top-level entries are the
  7. # ones with parent_id = 0. Menu entries are ordered within their
  8. # level the same way they are ordered in the containing array. Parent
  9. # entries must appear before their children.
  10. # Example:
  11. # - id = 3
  12. # parent_id = 0
  13. # title = "fun"
  14. # - id = 2
  15. # parent_id = 0
  16. # title = "robot"
  17. # - id = 4
  18. # parent_id = 2
  19. # title = "pr2"
  20. # - id = 5
  21. # parent_id = 2
  22. # title = "turtle"
  23. #
  24. # Gives a menu tree like this:
  25. # - fun
  26. # - robot
  27. # - pr2
  28. # - turtle
  29. # ID is a number for each menu entry. Must be unique within the
  30. # control, and should never be 0.
  31. uint32 id
  32. # ID of the parent of this menu entry, if it is a submenu. If this
  33. # menu entry is a top-level entry, set parent_id to 0.
  34. uint32 parent_id
  35. # menu / entry title
  36. string title
  37. # Arguments to command indicated by command_type (below)
  38. string command
  39. # Command_type stores the type of response desired when this menu
  40. # entry is clicked.
  41. # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.
  42. # ROSRUN: execute "rosrun" with arguments given in the command field (above).
  43. # ROSLAUNCH: execute "roslaunch" with arguments given in the command field (above).
  44. uint8 FEEDBACK=0
  45. uint8 ROSRUN=1
  46. uint8 ROSLAUNCH=2
  47. uint8 command_type