#include <menu_handler.h>
|
bool | apply (InteractiveMarkerServer &server, const std::string &marker_name) |
|
bool | getCheckState (EntryHandle handle, CheckState &check_state) const |
|
bool | getTitle (EntryHandle handle, std::string &title) const |
|
EntryHandle | insert (const std::string &title, const FeedbackCallback &feedback_cb) |
| Insert top-level entry with feedback function. More...
|
|
EntryHandle | insert (const std::string &title, const uint8_t command_type=visualization_msgs::MenuEntry::FEEDBACK, const std::string &command="") |
| Insert top-level entry with custom (client-side) command. More...
|
|
EntryHandle | insert (EntryHandle parent, const std::string &title, const FeedbackCallback &feedback_cb) |
| Insert second-level entry with feedback function. More...
|
|
EntryHandle | insert (EntryHandle parent, const std::string &title, const uint8_t command_type=visualization_msgs::MenuEntry::FEEDBACK, const std::string &command="") |
| Insert second-level entry with custom (client-side) command. More...
|
|
| MenuHandler () |
|
bool | reApply (InteractiveMarkerServer &server) |
| Re-apply to all markers that this was applied to previously. More...
|
|
bool | setCheckState (EntryHandle handle, CheckState check_state) |
| Specify if an entry is checked or can't be checked at all. More...
|
|
bool | setVisible (EntryHandle handle, bool visible) |
| Specify if an entry should be visible or hidden. More...
|
|
Definition at line 47 of file menu_handler.h.
◆ EntryHandle
◆ FeedbackCallback
◆ FeedbackConstPtr
◆ CheckState
Enumerator |
---|
NO_CHECKBOX | |
CHECKED | |
UNCHECKED | |
Definition at line 56 of file menu_handler.h.
◆ MenuHandler()
interactive_markers::MenuHandler::MenuHandler |
( |
| ) |
|
◆ apply()
Copy current menu state into the marker given by the specified name & divert callback for MENU_SELECT feedback to this manager
Definition at line 139 of file menu_handler.cpp.
◆ doInsert()
◆ getCheckState()
bool interactive_markers::MenuHandler::getCheckState |
( |
EntryHandle |
handle, |
|
|
CheckState & |
check_state |
|
) |
| const |
Get the current state of an entry
- Returns
- true if the entry exists
Definition at line 123 of file menu_handler.cpp.
◆ getTitle()
bool interactive_markers::MenuHandler::getTitle |
( |
EntryHandle |
handle, |
|
|
std::string & |
title |
|
) |
| const |
Get the title for the given menu entry
- Returns
- true if the entry exists
Definition at line 265 of file menu_handler.cpp.
◆ insert() [1/4]
Insert top-level entry with feedback function.
Definition at line 46 of file menu_handler.cpp.
◆ insert() [2/4]
MenuHandler::EntryHandle interactive_markers::MenuHandler::insert |
( |
const std::string & |
title, |
|
|
const uint8_t |
command_type = visualization_msgs::MenuEntry::FEEDBACK , |
|
|
const std::string & |
command = "" |
|
) |
| |
Insert top-level entry with custom (client-side) command.
Definition at line 54 of file menu_handler.cpp.
◆ insert() [3/4]
Insert second-level entry with feedback function.
Definition at line 64 of file menu_handler.cpp.
◆ insert() [4/4]
MenuHandler::EntryHandle interactive_markers::MenuHandler::insert |
( |
EntryHandle |
parent, |
|
|
const std::string & |
title, |
|
|
const uint8_t |
command_type = visualization_msgs::MenuEntry::FEEDBACK , |
|
|
const std::string & |
command = "" |
|
) |
| |
Insert second-level entry with custom (client-side) command.
Definition at line 78 of file menu_handler.cpp.
◆ makeEntry()
◆ processFeedback()
void interactive_markers::MenuHandler::processFeedback |
( |
const visualization_msgs::InteractiveMarkerFeedbackConstPtr & |
feedback | ) |
|
|
private |
◆ pushMenuEntries()
bool interactive_markers::MenuHandler::pushMenuEntries |
( |
std::vector< EntryHandle > & |
handles_in, |
|
|
std::vector< visualization_msgs::MenuEntry > & |
entries_out, |
|
|
EntryHandle |
parent_handle |
|
) |
| |
|
private |
◆ reApply()
Re-apply to all markers that this was applied to previously.
Definition at line 192 of file menu_handler.cpp.
◆ setCheckState()
Specify if an entry is checked or can't be checked at all.
Definition at line 108 of file menu_handler.cpp.
◆ setVisible()
bool interactive_markers::MenuHandler::setVisible |
( |
EntryHandle |
handle, |
|
|
bool |
visible |
|
) |
| |
Specify if an entry should be visible or hidden.
Definition at line 93 of file menu_handler.cpp.
◆ current_handle_
EntryHandle interactive_markers::MenuHandler::current_handle_ |
|
private |
◆ entry_contexts_
◆ managed_markers_
std::set<std::string> interactive_markers::MenuHandler::managed_markers_ |
|
private |
◆ top_level_handles_
std::vector<EntryHandle> interactive_markers::MenuHandler::top_level_handles_ |
|
private |
The documentation for this class was generated from the following files: