rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Stand-ins for `rospy.names` in ROS2. More...
Functions | |
get_name () | |
Returns fully resolved name of local node. | |
get_namespace () | |
Returns namespace of local node. | |
remap_name (name, caller_id=None, resolved=True) | |
Returns a remapped topic/service name. | |
resolve_name (name, caller_id=None) | |
Resolve a ROS name to its global, canonical form. | |
Variables | |
get_caller_id = get_name | |
Backwards compatibility. | |
Stand-ins for `rospy.names` in ROS2.
rosros.rospify.names.get_name | ( | ) |
rosros.rospify.names.get_namespace | ( | ) |
rosros.rospify.names.remap_name | ( | name, | |
caller_id = None , |
|||
resolved = True |
|||
) |
Returns a remapped topic/service name.
name | name to remap |
caller_id | namespace to resolve a relative or private name under, by default current node namespace |
resolved | ignored (does nothing in ROS1 also) |
rosros.rospify.names.resolve_name | ( | name, | |
caller_id = None |
|||
) |
Resolve a ROS name to its global, canonical form.
Private ~names are resolved relative to the node name.
name | name to resolve. |
caller_id | node name to resolve relative to. To resolve to local namespace, omit this parameter (or use None) |