Static Public Member Functions | Static Public Attributes
rqt_py_common.rqt_ros_graph.RqtRosGraph Class Reference

List of all members.

Static Public Member Functions

def get_full_grn
def get_lower_grn_dfs
def get_upper_grn

Static Public Attributes

string DELIM_GRN = '/'

Detailed Description

Definition at line 41 of file rqt_ros_graph.py.


Member Function Documentation

@deprecated: Not completed.

Create full path format of GRN (Graph Resource Names, see
http://www.ros.org/wiki/Names). Build GRN by recursively transcending
parents & children of a given QModelIndex instance.

A complete example of GRN: /wide_stereo/left/image_color/compressed

Upon its very 1st call, the argument is the index where user clicks on
on the view object (here QTreeView is used but should work with other
View too. Not tested yet though). str_grn can be 0-length string.

:type model_index: QModelIndex
:type str_grn: str
:param str_grn: This could be an incomplete or a complete GRN format.
:rtype: str

Definition at line 46 of file rqt_ros_graph.py.

def rqt_py_common.rqt_ros_graph.RqtRosGraph.get_lower_grn_dfs (   model_index,
  grn_prev = '' 
) [static]
Traverse all children treenodes and returns a list of "partial"
GRNs. Partial means that this method returns names under current level.

Ex. Consider a tree like this:

Root
 |--TopitemA
 |    |--1
 |      |--2
 |        |--3
 |          |--4
 |          |--5
 |            |--6
 |            |--7
 |--TopitemB

Re-formatted in GRN (omitting root):

  TopitemA/1/2/3/4
  TopitemA/1/2/3/5/6
  TopitemA/1/2/3/5/7
  TopitemB

 Might not be obvious from tree representation but there are 4 nodes as
 GRN form suggests.

 (doc from here TBD)

:type model_index: QModelIndex
:type grn_prev: str
:rtype: str[]

Definition at line 88 of file rqt_ros_graph.py.

def rqt_py_common.rqt_ros_graph.RqtRosGraph.get_upper_grn (   model_index,
  str_grn 
) [static]

Definition at line 156 of file rqt_ros_graph.py.


Member Data Documentation

Definition at line 43 of file rqt_ros_graph.py.


The documentation for this class was generated from the following file:


rqt_py_common
Author(s): Dorian Scholz, Isaac Saito
autogenerated on Mon Oct 6 2014 07:15:13