import re


def has_depth_topic(filename):
    """See if a depth topic is in the file."""
    with open(filename, "r") as f:
        for line in f:
            prog = re.compile("^\s*rostopic:\s*/hw/depth")
            m = re.match(prog, line)
            if m:
                return True

    return False