Skip to content

Commit

Permalink
Fix issue ros2#749
Browse files Browse the repository at this point in the history
Signed-off-by: Sukhvansh2004 <[email protected]>
  • Loading branch information
Sukhvansh2004 committed Jan 15, 2025
1 parent b269fb9 commit 1fb6d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf2/src/buffer_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1613,11 +1613,11 @@ void BufferCore::_chainAsVector(
}
// Erase all duplicate items from frame_chain
if (n > 0u) {
source_frame_chain.erase(source_frame_chain.begin() + (n - 1u), source_frame_chain.end());
source_frame_chain.erase(source_frame_chain.begin() + (n + 1u), source_frame_chain.end());
}

if (m < target_frame_chain.size()) {
for (size_t i = 0u; i <= m; ++i) {
for (size_t i = m; i >= 0; --i) {
source_frame_chain.push_back(target_frame_chain[i]);
}
}
Expand Down

0 comments on commit 1fb6d46

Please sign in to comment.