Skip to content

Commit

Permalink
Avoid serial error in velocity command callback
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Dec 22, 2024
1 parent e5371ce commit 4ae34f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ros/kxr_controller/node_scripts/rcb4_ros_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ def velocity_command_joint_state_callback(self, msg):
self._prev_velocity_command, av
):
return
ret = self.interface.angle_vector(av, servo_ids, velocity=self.wheel_frame_count)
ret = serial_call_with_retry(
self.interface.angle_vector, av, servo_ids,
velocity=self.wheel_frame_count)
if ret is None:
return
self._prev_velocity_command = av
Expand Down

0 comments on commit 4ae34f1

Please sign in to comment.