Package rocon_gateway_graph :: Module dotcode :: Class RosGraphDotcodeGenerator
[frames] | no frames]

Class RosGraphDotcodeGenerator

source code

Instance Methods
 
__init__(self) source code
 
generate_namespaces(self, graph, graph_mode)
Determine the namespaces of the nodes being displayed
source code
 
generate_dotgraph(self, rosgraphinst, ns_filter, topic_filter, graph_mode, dotcode_factory, show_all_advertisements=False, hide_dead_end_topics=False, cluster_namespaces_level=0, orientation='LR', rank='same', ranksep=0.2, rankdir='TB', simplify=True)
See generate_dotcode
source code
str
generate_dotcode(self, rosgraphinst, ns_filter, topic_filter, graph_mode, dotcode_factory, show_all_advertisements=False, hide_dead_end_topics=False, cluster_namespaces_level=0, orientation='LR', rank='same', ranksep=0.2, rankdir='TB', simplify=True)
Returns: dotcode generated from graph singleton
source code
Method Details

generate_dotcode(self, rosgraphinst, ns_filter, topic_filter, graph_mode, dotcode_factory, show_all_advertisements=False, hide_dead_end_topics=False, cluster_namespaces_level=0, orientation='LR', rank='same', ranksep=0.2, rankdir='TB', simplify=True)

source code 
Parameters:
  • rosgraphinst - RosGraph instance
  • ns_filter (string) - nodename filter
  • topic_filter - topicname filter
  • graph_mode (str), str - GATEWAY_GATEWAY_GRAPH | GATEWAY_PULLED_GRAPH | GATEWAY_FLIPPED_GRAPH
  • orientation - rankdir value (see ORIENTATIONS dict)
  • dotcode_factory (object) - abstract factory manipulating dot language objects
  • hide_single_connection_topics - if true remove topics with just one connection
  • hide_dead_end_topics - if true remove topics with publishers only
  • cluster_namespaces_level - if > 0 places box around members of same namespace (TODO: multiple namespace layers)
Returns: str
dotcode generated from graph singleton