Skip to content

Commit

Permalink
コメントアウトの仕方が悪く、大量のメモリを消費してしまっていたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Mar 8, 2025
1 parent 4ff9a7a commit 7f96685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crane_world_model_publisher/src/world_model_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ void WorldModelPublisherComponent::postProcessWorldModel(WorldModelWrapper::Shar
ranges::for_each(score_grid, [&](const auto & pair) {
SvgCircleBuilder circle;
circle.center(pair.first).radius(pair.second * 0.05).stroke("red").strokeWidth(2.);
pass_score_visualizer->add(circle.getSvgString());
// pass_score_visualizer->add(circle.getSvgString());
});
// pass_score_visualizer->flush();
pass_score_visualizer->flush();

auto score_with_bots = our_robots | ranges::views::transform([&](const auto & robot) {
return std::make_pair(robot, calc_score(robot->pose.pos));
Expand Down

0 comments on commit 7f96685

Please sign in to comment.