Skip to content

Commit 49bede6

Browse files
Felix Exnerfmauch
authored andcommitted
Reset the controller also when non-blocking read is used
I don't see a reason why this should not happen there, as well.
1 parent 59f3bd1 commit 49bede6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_robot_driver/src/ros/hardware_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ void HardwareInterface::read(const ros::Time& time, const ros::Duration& period)
464464
}
465465
else
466466
{
467+
controller_reset_necessary_ = true;
467468
if (!non_blocking_read_)
468469
{
469-
controller_reset_necessary_ = true;
470470
ROS_ERROR("Could not get fresh data package from robot");
471471
}
472472
}

0 commit comments

Comments
 (0)