[Documentation] [TitleIndex] [WordIndex

Nodes

nodes

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:

NodeNS instances

nodes.foo()

info(nodes.foo)

kill(nodes.foo)

NodeInfo instances

NodeInfo instances are returned when you call info() on a NodeNS instance.

str(node_info)

node_info.pubs

node_info.subs

node_info.srvs

list(node_info.pubs), list(node_info.subs), list(node_info.srvs)


2024-11-30 17:52