rosnode implements the rosnode command-line tool and also provides a library for retrieving ROS Node information.
From __init__.py
:
Exception |
|
rosnode base exception type |
Exception |
|
Exceptions for communication-related (i/o) errors, generally due to Master or Node network communication issues. |
Function | cleanup |
Remove registrations from ROS Master and node cache (_caller_apis) that match blacklist. @param master: rosgraph Master instance @type master: rosgraph.Master @param blacklist: list of nodes to scrub @type blacklist: [str]... |
Function | cleanup |
Remove registrations from ROS Master that do not match whitelist. @param master: rosgraph Master instance @type master: rosgraph.Master @param whitelist: list of nodes to keep @type whitelist: list of nodes to keep... |
Function | get |
@param master: rosgraph Master instance @type master: rosgraph.Master @param caller_id: node name @type caller_id: str @param skip_cache: flag to skip cached data and force to lookup node from master @type skip_cache: bool @return: xmlrpc URI of caller_id @rtype: str @raise ROSNodeIOException: if unable to communicate with master... |
Function | get |
Find machines connected to nodes. This is a very costly procedure as it must do N lookups with the Master, where N is the number of nodes. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
@param namespace: optional namespace to scope return values by. Namespace must already be resolved. @type namespace: str @return: list of node caller IDs @rtype: [str] @raise ROSNodeIOException: if unable to communicate with master... |
Function | get |
Find nodes by machine name. This is a very costly procedure as it must do N lookups with the Master, where N is the number of nodes. |
Function | kill |
Call shutdown on the specified nodes |
Function | lookup |
Undocumented |
Function | rosnode |
This is a semi-hidden routine for cleaning up stale node registration information on the ROS Master. The intent is to remove this method once Master TTLs are properly implemented. |
Function | rosnode |
Print information about node, including subscriptions and other debugging information. This will query the node over the network. |
Function | rosnode |
Print list of all ROS nodes to screen. |
Function | rosnode |
Test connectivity to node by calling its XMLRPC API @param node_name: name of node to ping @type node_name: str @param max_count: number of ping requests to make @type max_count: int @param verbose: print ping information to screen @type verbose: bool @param skip_cache: flag to skip cached data and force to lookup from master @type skip_cache: bool @return: True if node pinged @rtype: bool @raise ROSNodeIOException: if unable to communicate with master... |
Function | rosnode |
Ping all running nodes @return [str], [str]: pinged nodes, un-pingable nodes @raise ROSNodeIOException: if unable to communicate with master |
Function | rosnodemain |
Prints rosnode main entrypoint. @param argv: override sys.argv @param argv: [str] |
Constant | CONNECTION |
Undocumented |
Constant | ID |
Undocumented |
Constant | NAME |
Undocumented |
Function | _fullusage |
Prints rosnode usage information. @param return_error whether to exit with error code os.EX_USAGE |
Function | _rosnode |
Implements rosnode 'cleanup' command. @param argv: command-line args @type argv: [str] |
Function | _rosnode |
Implements rosnode 'info' command. |
Function | _rosnode |
Implements rosnode 'kill' command. |
Function | _rosnode |
Implements rosnode 'list' command. |
Function | _rosnode |
Implements rosnode 'machine' command. |
Function | _rosnode |
Implements rosnode 'ping' command. @param argv: command-line args @type argv: [str] |
Function | _sub |
Subroutine for rosnode_listnodes(). Composes list of strings to print to screen. |
Function | _succeed |
Undocumented |
Variable | _caller |
Undocumented |
Undocumented
Value |
|
@param master: rosgraph Master instance @type master: rosgraph.Master @param caller_id: node name @type caller_id: str @param skip_cache: flag to skip cached data and force to lookup node from master @type skip_cache: bool @return: xmlrpc URI of caller_id @rtype: str @raise ROSNodeIOException: if unable to communicate with master
@param namespace: optional namespace to scope return values by. Namespace must already be resolved. @type namespace: str @return: list of node caller IDs @rtype: [str] @raise ROSNodeIOException: if unable to communicate with master
Find machines connected to nodes. This is a very costly procedure as it must do N lookups with the Master, where N is the number of nodes.
@return: list of machines connected @rtype: [str] @raise ROSNodeIOException: if unable to communicate with master
Find nodes by machine name. This is a very costly procedure as it must do N lookups with the Master, where N is the number of nodes.
@return: list of nodes on the specified machine @rtype: [str] @raise ROSNodeException: if machine name cannot be resolved to an address @raise ROSNodeIOException: if unable to communicate with master
Call shutdown on the specified nodes
@return: list of nodes that shutdown was called on successfully and list of failures @rtype: ([str], [str])
Subroutine for rosnode_listnodes(). Composes list of strings to print to screen.
@param namespace: (default None) namespace to scope list to. @type namespace: str @param list_uri: (default False) return uris of nodes instead of names. @type list_uri: bool @param list_all: (default False) return names and uris of nodes as combined strings @type list_all: bool @return: new-line separated string containing list of all nodes @rtype: str
Print list of all ROS nodes to screen.
@param namespace: namespace to scope list to @type namespace: str @param list_uri: print uris of nodes instead of names @type list_uri: bool @param list_all: print node names and uris @param list_all: bool
Test connectivity to node by calling its XMLRPC API @param node_name: name of node to ping @type node_name: str @param max_count: number of ping requests to make @type max_count: int @param verbose: print ping information to screen @type verbose: bool @param skip_cache: flag to skip cached data and force to lookup from master @type skip_cache: bool @return: True if node pinged @rtype: bool @raise ROSNodeIOException: if unable to communicate with master
Ping all running nodes @return [str], [str]: pinged nodes, un-pingable nodes @raise ROSNodeIOException: if unable to communicate with master
Remove registrations from ROS Master and node cache (_caller_apis) that match blacklist. @param master: rosgraph Master instance @type master: rosgraph.Master @param blacklist: list of nodes to scrub @type blacklist: [str]
Remove registrations from ROS Master that do not match whitelist. @param master: rosgraph Master instance @type master: rosgraph.Master @param whitelist: list of nodes to keep @type whitelist: list of nodes to keep
This is a semi-hidden routine for cleaning up stale node registration information on the ROS Master. The intent is to remove this method once Master TTLs are properly implemented.
Print information about node, including subscriptions and other debugging information. This will query the node over the network.
@param node_name: name of ROS node @type node_name: str @raise ROSNodeIOException: if unable to communicate with master
Implements rosnode 'machine' command.
@raise ROSNodeException: if user enters in unrecognized machine name