Skip to content

Commit

Permalink
Add missing previous_joints_stamp update statement
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkHedleyJones committed Jan 9, 2024
1 parent 3bb8a5d commit 23d20f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ypspur_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,10 @@ class YpspurRosNode
joint.header.stamp = ros::Time(t);
}

if (!avoid_publishing_duplicated_joints_ || (joint.header.stamp > previous_joint_stamp_))
if (!avoid_publishing_duplicated_joints_ || (joint.header.stamp > previous_joints_stamp_))
{
pubs_["joint"].publish(joint);
previous_joints_stamp_ = joint.header.stamp;
}


Expand Down

0 comments on commit 23d20f8

Please sign in to comment.