Skip to content

Commit f1d19e5

Browse files
committed
only check stamp
1 parent 3e6b3e0 commit f1d19e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frame_publisher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +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-
if (published_msg != published_msg_) //only publish on updated transform to avoid TF_REPEATED_DATA (noetic)
135+
if (published_msg.header.stamp != published_msg_.header.stamp) //only publish on updated transform to avoid TF_REPEATED_DATA (noetic)
136136
{
137137
tf_broadcaster_.sendTransform(published_msg);
138138
ROS_DEBUG_STREAM("FramePublisher::frameBroadcastCallback: published_msg:\n" << published_msg);

0 commit comments

Comments
 (0)