Skip to content

Commit

Permalink
[BodyROS2] Use joint names for joint states surely
Browse files Browse the repository at this point in the history
  • Loading branch information
ssr-yuki committed Mar 19, 2024
1 parent b52bdf0 commit c2d039f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/BodyROS2Item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c2d039f

Please sign in to comment.