From 5afbcff9491a4ccca47fe9a5431387bf38ee3821 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 11 Nov 2022 05:43:16 +0600 Subject: [PATCH] vpe_publisher: fix a bug when the first pose arrives at the start of clock (simulation) --- clover/src/vpe_publisher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clover/src/vpe_publisher.cpp b/clover/src/vpe_publisher.cpp index 4a7778d7..988afb17 100644 --- a/clover/src/vpe_publisher.cpp +++ b/clover/src/vpe_publisher.cpp @@ -25,7 +25,7 @@ using std::string; using namespace geometry_msgs; -bool reset_flag = false; +bool reset_flag = true; // offset should be reset on the start string local_frame_id, frame_id, child_frame_id, offset_frame_id; tf2_ros::Buffer tf_buffer; ros::Publisher vpe_pub;