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 3e6b3e0 commit f1d19e5Copy full SHA for f1d19e5
src/frame_publisher.cpp
@@ -132,7 +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
- if (published_msg != published_msg_) //only publish on updated transform to avoid TF_REPEATED_DATA (noetic)
+ if (published_msg.header.stamp != published_msg_.header.stamp) //only publish on updated transform to avoid TF_REPEATED_DATA (noetic)
136
{
137
tf_broadcaster_.sendTransform(published_msg);
138
ROS_DEBUG_STREAM("FramePublisher::frameBroadcastCallback: published_msg:\n" << published_msg);
0 commit comments