rclpy.expand_topic_name module
- rclpy.expand_topic_name.expand_topic_name(topic_name, node_name, node_namespace)
Expand a given topic name using given node name and namespace as well.
Note that this function can succeed but the expanded topic name may still be invalid. The :py:func:validate_full_topic_name(): should be used on the expanded topic name to ensure it is valid after expansion.
- Parameters:
str (namespace) – topic name to be expanded
str – name of the node that this topic is associated with
str – namespace that the topic is within
- Returns:
expanded topic name which is fully qualified
- Raises:
ValueError if the topic name, node name or namespace are invalid