We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee40d7 commit 6c3575cCopy full SHA for 6c3575c
src/frame_publisher.cpp
@@ -132,6 +132,7 @@ void FramePublisher::frameBroadcastCallback(const ros::TimerEvent& event)
132
// Broadcast new frame
133
geometry_msgs::TransformStamped published_msg = tf2::toMsg(published_tf);
134
published_msg.child_frame_id = frame_name_;
135
+ published_msg.header.stamp = ros::Time::now(); //update stamp to avoid TF_REPEATED_DATA (noetic)
136
tf_broadcaster_.sendTransform(published_msg);
137
ROS_DEBUG_STREAM("FramePublisher::frameBroadcastCallback: published_msg:\n" << published_msg);
138
}
0 commit comments