Skip to content

Commit

Permalink
Clear previously sent markers from vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenZephyr committed Nov 22, 2024
1 parent 4f8c0b5 commit 9ddf339
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pose_graph_tools_ros/src/visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ void Visualizer::PoseGraphCallback(
// update frame id
frame_id_ = msg->header.frame_id;

odometry_edges_.clear();
loop_edges_.clear();
rejected_loop_edges_.clear();
// iterate through edges in pose graph
for (const auto& msg_edge : msg->edges) {
Node from = std::make_pair(msg_edge.robot_from, msg_edge.key_from);
Expand Down

0 comments on commit 9ddf339

Please sign in to comment.