src/tools/benchmark_tool/benchmark_tool/rqt_graph/dotcode.py
def _filter_orphaned_topics(self, nt_nodes, edges):
        """Remove topic graphnodes without connected ROS nodes."""
        removal_nodes = []
        for n in nt_nodes:
            keep = False
            for e in edges:
                if e.start.strip() == unicode(n).strip() or e.end.strip() == unicode(n).strip():
                    keep = True
                    break
            if not keep:
                removal_nodes.append(n)
        for n in removal_nodes:
            nt_nodes.remove(n)
        return nt_nodes
Remove topic graphnodes without connected ROS nodes.
Remove topic graphnodes without connected ROS nodes.
Remove topic graphnodes without connected ROS nodes .
def _filter_orphaned_topics(self, nt_nodes, edges):
        removal_nodes = []
        for n in nt_nodes:
            keep = False
            for e in edges:
                if e.start.strip() == unicode(n).strip() or e.end.strip() == unicode(n).strip():
                    keep = True
                    break
            if not keep:
                removal_nodes.append(n)
        for n in removal_nodes:
            nt_nodes.remove(n)
        return nt_nodes
def _filter_orphaned_topics ( self , nt_nodes , edges ) : removal_nodes = [ ] for n in nt_nodes : keep = False for e in edges : if e . start . strip ( ) == unicode ( n ) . strip ( ) or e . end . strip ( ) == unicode ( n ) . strip ( ) : keep = True break if not keep : removal_nodes . append ( n ) for n in removal_nodes : nt_nodes . remove ( n ) return nt_nodes
Remove topic graphnodes without connected ROS nodes.
Remove topic graphnodes without connected ROS nodes .
"""Remove topic graphnodes without connected ROS nodes."""
self
nt_nodes
edges