rospy overview: Initialization and Shutdown | Messages | Publishers and Subscribers | Services | Parameter Server | Logging | Names and Node Information | Time | Exceptions

The most common API routines for getting information about your node and working with names are described below.

Accessing node information

rospy.get_name()

  • Get the fully-qualified name of this node

rospy.get_namespace()

  • Get the namespace of this node

rospy.get_node_uri()

  • Get the XMLRPC URI of this node

Manipulating Names

Advanced users: For a node-independent library for manipulating ROS names, please see roslib.names.

rospy.resolve_name(name, caller_id=None, remap=True)

  • Resolve a name, including remapping, unless remap is False. To resolve a name relative to a different node name (aka "caller ID"), use the caller_id parameter.

Wiki: rospy/Overview/Names and Node Information (last edited 2009-10-27 18:20:48 by KenConley)