Public Member Functions | |
| def | __init__ |
| def | add_to_tree |
| def | append_tree |
| def | on_set_initial_state |
| def | OnExit |
| def | OnIdle |
| def | OnQuit |
| def | select_cb |
| def | selection_changed |
| def | set_depth |
| def | set_dotcode |
| def | set_filter |
| def | set_label_width |
| def | set_path |
| def | ShowControlsDialog |
| def | toggle_all_transitions |
| def | update_graph |
Public Attributes | |
| content_splitter | |
| depth_spinner | |
| is_button | |
| path_combo | |
| path_input | |
| statusbar | |
| tree | |
| ud_gs | |
| ud_txt | |
| ud_win | |
| widget | |
| width_spinner | |
Private Member Functions | |
| def | _status_msg_update |
| def | _structure_msg_update |
| def | _update_graph |
| def | _update_server_list |
| def | _update_tree |
Private Attributes | |
| _client | |
| _containers | |
| _keep_running | |
| _label_wrapper | |
| _max_depth | |
| _needs_refresh | |
| _needs_zoom | |
| _path | |
| _selected_paths | |
| _server_list_thread | |
| _show_all_transitions | |
| _status_subs | |
| _structure_changed | |
| _structure_subs | |
| _top_containers | |
| _tree_nodes | |
| _update_cond | |
| _update_graph_thread | |
| _update_tree_thread | |
This class provides a GUI application for viewing SMACH plans.
Definition at line 435 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.__init__ | ( | self | ) |
Definition at line 439 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame._status_msg_update | ( | self, | |
| msg | |||
| ) | [private] |
Process status messages.
Definition at line 762 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame._structure_msg_update | ( | self, | |
| msg, | |||
| server_name | |||
| ) | [private] |
Update the structure of the SMACH plan (re-generate the dotcode).
Definition at line 713 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame._update_graph | ( | self | ) | [private] |
This thread continuously updates the graph when it changes. The graph gets updated in one of two ways: 1: The structure of the SMACH plans has changed, or the display settings have been changed. In this case, the dotcode needs to be regenerated. 2: The status of the SMACH plans has changed. In this case, we only need to change the styles of the graph.
Definition at line 788 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame._update_server_list | ( | self | ) | [private] |
Update the list of known SMACH introspection servers.
Definition at line 915 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame._update_tree | ( | self | ) | [private] |
Update the tree view.
Definition at line 876 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.add_to_tree | ( | self, | |
| path, | |||
| parent | |||
| ) |
Add a path to the tree view.
Definition at line 886 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.append_tree | ( | self, | |
| container, | |||
parent = None |
|||
| ) |
Append an item to the tree view.
Definition at line 901 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.on_set_initial_state | ( | self, | |
| event | |||
| ) |
Event: Change the initial state of the server.
Definition at line 618 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.OnExit | ( | self, | |
| event | |||
| ) |
Definition at line 955 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.OnIdle | ( | self, | |
| event | |||
| ) |
Event: On Idle, refresh the display if necessary, then un-set the flag.
Definition at line 908 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.OnQuit | ( | self, | |
| event | |||
| ) |
Quit Event: kill threads and wait for join.
Definition at line 601 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.select_cb | ( | self, | |
| item, | |||
| event | |||
| ) |
Event: Click to select a graph node to display user data and update the graph.
Definition at line 651 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.selection_changed | ( | self, | |
| event | |||
| ) |
Event: Selection dropdown changed.
Definition at line 665 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.set_depth | ( | self, | |
| event | |||
| ) |
Event: Change the maximum depth and update the graph.
Definition at line 633 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.set_dotcode | ( | self, | |
| dotcode, | |||
zoom = True |
|||
| ) |
Set the xdot view's dotcode and refresh the display.
Definition at line 863 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.set_filter | ( | self, | |
| filter | |||
| ) |
Definition at line 958 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.set_label_width | ( | self, | |
| event | |||
| ) |
Event: Change the label wrapper width and update the graph.
Definition at line 639 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.set_path | ( | self, | |
| event | |||
| ) |
Event: Change the viewable path and update the graph.
Definition at line 627 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.ShowControlsDialog | ( | self, | |
| event | |||
| ) |
Definition at line 949 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.toggle_all_transitions | ( | self, | |
| event | |||
| ) |
Event: Change whether automatic transitions are hidden and update the graph.
Definition at line 645 of file smach_viewer.py.
| def smach_viewer.SmachViewerFrame.update_graph | ( | self | ) |
Notify all that the graph needs to be updated.
Definition at line 613 of file smach_viewer.py.
smach_viewer.SmachViewerFrame::_client [private] |
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
smach_viewer.SmachViewerFrame::_path [private] |
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 876 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.
Definition at line 439 of file smach_viewer.py.