Skip to content

Commit

Permalink
Fix rqt_jtc with num_cmd<dof
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 10, 2023
1 parent 23146d8 commit ea50f0f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,9 @@ def _joint_widgets(self): # TODO: Cache instead of compute every time?


def _jtc_joint_names(jtc_info):
# NOTE: We assume that there is at least one hardware interface that
# claims resources (there should be), and the resource list is fetched
# from the first available interface

joint_names = []
for interface in jtc_info.claimed_interfaces:
for interface in jtc_info.required_state_interfaces:
name = interface.split("/")[-2]
if name not in joint_names:
joint_names.append(name)
Expand Down

0 comments on commit ea50f0f

Please sign in to comment.