rqt_graph.dotcode module

class rqt_graph.dotcode.NodeConnections(incoming=None, outgoing=None)

Bases: object

class rqt_graph.dotcode.RosGraphDotcodeGenerator(node)

Bases: object

edges = {}
generate_dotcode(rosgraphinst, ns_filter, topic_filter, graph_mode, dotcode_factory, hide_single_connection_topics=False, hide_dead_end_topics=False, cluster_namespaces_level=0, accumulate_actions=True, orientation='LR', rank='same', ranksep=0.2, rankdir='TB', simplify=False, quiet=False, unreachable=False, hide_tf_nodes=False, group_tf_nodes=False, group_image_nodes=False, hide_dynamic_reconfigure=False)

Generate the dotcode.

@param rosgraphinst: RosGraph instance @param ns_filter: nodename filter @type ns_filter: string @param topic_filter: topicname filter @type ns_filter: string @param graph_mode str: NODE_NODE_GRAPH | NODE_TOPIC_GRAPH | NODE_TOPIC_ALL_GRAPH @type graph_mode: str @param orientation: rankdir value (see ORIENTATIONS dict) @type dotcode_factory: object @param dotcode_factory: abstract factory manipulating dot language objects @param hide_single_connection_topics: if true remove topics with just one connection @param hide_dead_end_topics: if true remove topics with publishers only @param cluster_namespaces_level: if > 0 places box around members of same namespace

(TODO: multiple namespace layers)

@param accumulate_actions: if true each 5 action topic graph nodes are shown as single

graph node

@return: dotcode generated from graph singleton @rtype: str

generate_dotgraph(rosgraphinst, ns_filter, topic_filter, graph_mode, dotcode_factory, hide_single_connection_topics=False, hide_dead_end_topics=False, cluster_namespaces_level=0, accumulate_actions=True, orientation='LR', rank='same', ranksep=0.2, rankdir='TB', simplify=False, quiet=False, unreachable=False, group_tf_nodes=False, hide_tf_nodes=False, group_image_nodes=False, hide_dynamic_reconfigure=False)

See generate_dotcode.

generate_namespaces(graph, graph_mode, quiet=False)

Determine the namespaces of the nodes being displayed.

nodes = {}
quiet_filter_topic_edge(edge)
rqt_graph.dotcode.matches_any(name, patternlist)