Skip to content

Commit

Permalink
actually latch the pub_time_initialized_ latch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan authored and bmagyar committed Oct 27, 2023
1 parent 3905e20 commit ae501ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions joint_state_controller/src/joint_state_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ namespace joint_state_controller
if (!pub_time_initialized_)
{
last_publish_time_ = time - ros::Duration(1.001/publish_rate_); //ensure publish on first cycle
pub_time_initialized_ = true;
}
}

Expand Down

0 comments on commit ae501ec

Please sign in to comment.