Skip to content

Commit

Permalink
Merge pull request #134 from iory/velocity
Browse files Browse the repository at this point in the history
Avoid serial error in velocity command callback
  • Loading branch information
iory authored Dec 22, 2024
2 parents e5371ce + 4ae34f1 commit 7d23c9e
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 7d23c9e

Please sign in to comment.