コード例 #1
0
    def _compute_md5_text(self, f):
        from roslib.gentools import compute_md5_text, get_dependencies
        from roslib.msgs import load_from_string

        text = open(f, 'r').read()
        spec = load_from_string(text, package_context=TEST_CTX)
        get_deps_dict = get_dependencies(spec, TEST_CTX, compute_files=False)
        return compute_md5_text(get_deps_dict, spec)
コード例 #2
0
ファイル: test_roslib_gentools.py プロジェクト: Aand1/ROSCH
    def _compute_md5_text(self, f):
        from roslib.gentools import compute_md5_text, get_dependencies
        from roslib.msgs import load_from_string

        text = open(f, 'r').read()
        spec = load_from_string(text, package_context=TEST_CTX)
        get_deps_dict = get_dependencies(spec, TEST_CTX, compute_files=False)
        return compute_md5_text(get_deps_dict, spec)