Skip to content

Commit

Permalink
rqt_joint_controller plugin needs to subscribe to a different topic a…
Browse files Browse the repository at this point in the history
…nd get feedback from the actual joint states
  • Loading branch information
tstoyanov committed Dec 9, 2023
1 parent 960e073 commit 58cf203
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def _load_jtc(self):

# Setup ROS interfaces
jtc_ns = _resolve_controller_ns(self._cm_ns, self._jtc_name)
state_topic = jtc_ns + "/controller_state"
state_topic = jtc_ns + "/state"
cmd_topic = jtc_ns + "/joint_trajectory"
self._state_sub = self._node.create_subscription(
JointTrajectoryControllerState, state_topic, self._state_cb, 1
Expand Down Expand Up @@ -410,7 +410,7 @@ def _state_cb(self, msg):
current_pos = {}
for i in range(len(msg.joint_names)):
joint_name = msg.joint_names[i]
joint_pos = msg.feedback.positions[i]
joint_pos = msg.actual.positions[i]
current_pos[joint_name] = joint_pos
self.jointStateChanged.emit(current_pos)

Expand Down

0 comments on commit 58cf203

Please sign in to comment.