The nodes object provides you access to all active ROS nodes in your system. This object follows the general ROSH convention for converting ROS names, i.e. to access the node /foo/bar/driver, you would use:
You can also use mapping-style lookups on nodes, which is useful if you are dealing with string names:
Returns True if the node is up. Equivalent to rosnode ping foo.
Returns a NodeInfo object. Equivalent to rosnode info foo.
Kill node. Equivalent to rosnode kill foo.
NodeInfo instances are returned when you call info() on a NodeNS instance.
- Print user-friendly information on Node publications, subscriptions, and services.
Topics that the node publishes. These can be used like normal topic instances. Example:
Topics that the node subscribes to. These can be used like normal topic instances.
Services that the node subscribes to. These can be used like normal service instances.
list(node_info.pubs), list(node_info.subs), list(node_info.srvs)
- Convert to list.