From ae501ec4179c75181c6efa5c9e74ed251dcbf85a Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 30 May 2023 13:32:02 -0400 Subject: [PATCH] actually latch the pub_time_initialized_ latch --- joint_state_controller/src/joint_state_controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/joint_state_controller/src/joint_state_controller.cpp b/joint_state_controller/src/joint_state_controller.cpp index c0c4b44a0..9fb23b0a3 100644 --- a/joint_state_controller/src/joint_state_controller.cpp +++ b/joint_state_controller/src/joint_state_controller.cpp @@ -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; } }