修复joint名字错误的问题
Some checks failed
Lint / pre-commit (push) Has been cancelled

This commit is contained in:
shen 2026-04-17 15:55:09 +08:00
parent 3298016e2d
commit 1d2f62935c

View File

@ -161,7 +161,7 @@ class JointStateUdpBroadcaster(Node):
def _alias_joint_name(name: str) -> str:
match_joint = re.match(r"^openarm_(left|right)_joint([1-7])$", name)
if match_joint:
return f"jont_{match_joint.group(2)}"
return f"joint_{match_joint.group(2)}"
match_gripper = re.match(r"^openarm_(left|right)_finger_joint1$", name)
if match_gripper: