Skip to content

Commit 9e01142

Browse files
authored
fix rqt_joint_trajectory_controller for robots with namespace (#1792)
1 parent 851f10a commit 9e01142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rqt_joint_trajectory_controller/rqt_joint_trajectory_controller/joint_trajectory_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def _jtc_joint_names(jtc_info):
464464

465465
joint_names = []
466466
for interface in jtc_info.required_state_interfaces:
467-
name = interface.split("/")[-2]
467+
name = "/".join(interface.split("/")[:-1])
468468
if name not in joint_names:
469469
joint_names.append(name)
470470

0 commit comments

Comments
 (0)