Skip to content

Commit

Permalink
Publish error in [rad]
Browse files Browse the repository at this point in the history
  • Loading branch information
708yamaguchi committed Nov 4, 2024
1 parent 5ec7f53 commit f7054d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ros/kxr_controller/node_scripts/rcb4_ros_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,16 +978,15 @@ def publish_joint_states(self):
if idx is None:
continue
position = np.deg2rad(av[idx])
effort = torque_vector[idx]
effort = np.deg2rad(torque_vector[idx])
msg.position.append(position)
msg.effort.append(effort)
msg.name.append(name)
servo_state_msg = ServoState(
header=msg.header,
name=name,
position=position,
error=effort,
temperature=temperatures)
error=effort)
if temperatures is not None and len(temperatures) > idx:
servo_state_msg.temperature = temperatures[idx]
if currents is not None and len(currents) > idx:
Expand Down

0 comments on commit f7054d6

Please sign in to comment.