launch_ros.utilities.track_node_names module
Utility functions to help detect non-unique node names.
- launch_ros.utilities.track_node_names.add_node_name(context: launch.launch_context.LaunchContext, node_name: str) None
Add a node name to the context, indicating an occurrence of the node name.
- Parameters:
context – the context that keeps track of the node names
node_name – the node name to keep track
- launch_ros.utilities.track_node_names.get_node_name_count(context: launch.launch_context.LaunchContext, node_name: str) int
Get the number of times the node name has occurred, according to the context.
- Parameters:
context – the context that keeps track of the node names
node_name – the node name to keep track
- Returns:
number of times the node name has occurred