From b365da40937af1c0bc653f55678bfe8691c25d79 Mon Sep 17 00:00:00 2001 From: Yuki Onishi Date: Mon, 18 Mar 2024 02:29:43 +0900 Subject: [PATCH] [BodyROS2] Use joint names for joint states surely --- src/plugin/BodyROS2Item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/BodyROS2Item.cpp b/src/plugin/BodyROS2Item.cpp index daa3c0b..e5f567a 100644 --- a/src/plugin/BodyROS2Item.cpp +++ b/src/plugin/BodyROS2Item.cpp @@ -120,7 +120,7 @@ bool BodyROS2Item::start() for (size_t i = 0; i < body()->numAllJoints(); i++) { Link *joint = body()->joint(i); - jointState.name[i] = joint->name(); + jointState.name[i] = joint->jointName(); jointState.position[i] = joint->q(); jointState.velocity[i] = joint->dq(); jointState.effort[i] = joint->u();