We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7528e0 commit ebc3290Copy full SHA for ebc3290
joint_state_broadcaster/src/joint_state_broadcaster.cpp
@@ -405,9 +405,8 @@ controller_interface::return_type JointStateBroadcaster::update(
405
{
406
for (auto i = 0u; i < state_interfaces_.size(); ++i)
407
408
- /// @note should we limit the number of retries here? does it even
409
- /// make sense to try to get the latest value on every iteration?
410
- const auto & opt = state_interfaces_[i].get_optional();
+ // no retries, just try to get the latest value once
+ const auto & opt = state_interfaces_[i].get_optional(0);
411
if (opt.has_value())
412
413
*mapped_values_[i] = opt.value();
0 commit comments