1
0
forked from zbw/yiliao2026

feat: add mtran ROS2 translation service

This commit is contained in:
2026-07-30 19:34:49 +08:00
parent 0c09a97e7f
commit 8de4e20046
400 changed files with 137442 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from pathlib import Path
root = Path(__file__).resolve().parents[1]
source = (root / "launch" / "translator.launch.py").read_text(encoding="utf-8")
assert 'get_package_prefix("mtran")' in source
assert 'get_package_share_directory("mtran")' in source
assert 'get_package_share_directory("mtran_ros2")' not in source
assert "_find_workspace_root" not in source
assert 'package="mtran"' in source
assert 'package_prefix / "lib" / "mtran" / "mtranserver"' in source
assert 'package_share / "models"' in source
assert 'package_share / "mtranserver_config"' in source
assert 'Path.cwd()' not in source
assert "/home/hikos/" not in source