Skip to content

Commit 86f0569

Browse files
urfeexmergify[bot]
authored andcommitted
rqt_jtc: Check for interface type when adding joint names (#2231)
(cherry picked from commit 3e66d39)
1 parent 06a647c commit 86f0569

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rqt_joint_trajectory_controller/rqt_joint_trajectory_controller/joint_trajectory_controller.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,10 @@ def _jtc_joint_names(jtc_info):
465465
joint_names = []
466466
for interface in jtc_info.required_state_interfaces:
467467
name = "/".join(interface.split("/")[:-1])
468+
interface_type = interface.split("/")[-1]
468469
if name not in joint_names:
469-
joint_names.append(name)
470+
if interface_type == "position":
471+
joint_names.append(name)
470472

471473
return joint_names
472474

0 commit comments

Comments
 (0)