Skip to content

Commit 6c3575c

Browse files
committed
update stamp to avoid TF_REPEATED_DATA
1 parent 8ee40d7 commit 6c3575c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frame_publisher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ void FramePublisher::frameBroadcastCallback(const ros::TimerEvent& event)
132132
// Broadcast new frame
133133
geometry_msgs::TransformStamped published_msg = tf2::toMsg(published_tf);
134134
published_msg.child_frame_id = frame_name_;
135+
published_msg.header.stamp = ros::Time::now(); //update stamp to avoid TF_REPEATED_DATA (noetic)
135136
tf_broadcaster_.sendTransform(published_msg);
136137
ROS_DEBUG_STREAM("FramePublisher::frameBroadcastCallback: published_msg:\n" << published_msg);
137138
}

0 commit comments

Comments
 (0)