def get_node_names_and_namespaces(self) -> List[Tuple[str, str]]: """ Get a list of names and namespaces for discovered nodes. :return: List of tuples containing two strings: the node name and node namespace. """ return _rclpy.rclpy_get_node_names_and_namespaces(self.handle)
def get_node_names(self) -> List[str]: """ Get a list of names for discovered nodes. :return: List of node names. """ names_ns = _rclpy.rclpy_get_node_names_and_namespaces(self.handle) return [n[0] for n in names_ns]
def get_node_names_and_namespaces(self): return _rclpy.rclpy_get_node_names_and_namespaces(self.handle)
def get_node_names(self): names_ns = _rclpy.rclpy_get_node_names_and_namespaces(self.handle) return [n[0] for n in names_ns]