Skip to content

Commit

Permalink
refactor: Remove redundant code for updating tf cache in Odometry::up…
Browse files Browse the repository at this point in the history
…dateTfCache
  • Loading branch information
technolojin committed Jan 14, 2025
1 parent bc86320 commit c6e980a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions perception/autoware_multi_object_tracker/lib/odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ Odometry::Odometry(
void Odometry::updateTfCache(
const rclcpp::Time & time, const geometry_msgs::msg::Transform & tf) const
{
// remove cache if time is same
if (tf_cache_.find(time) != tf_cache_.end()) {
tf_cache_.erase(time);
}
// update the tf buffer
tf_cache_.emplace(time, tf);

Expand Down

0 comments on commit c6e980a

Please sign in to comment.