From 2671d38687f137d7c89e6a0c1cdb2f07b1d9cead Mon Sep 17 00:00:00 2001 From: Xiangzhong Liu Date: Fri, 24 Nov 2023 14:18:40 +0100 Subject: [PATCH] comment out log info --- bark/world/objects/agent.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bark/world/objects/agent.cpp b/bark/world/objects/agent.cpp index 3fecd2f8..f90c912e 100644 --- a/bark/world/objects/agent.cpp +++ b/bark/world/objects/agent.cpp @@ -57,10 +57,11 @@ Agent::Agent(const State& initial_state, if (!GenerateRoadCorridor(map_interface)) { LOG(ERROR) << "Failed to generate road corridor for agent " << GetAgentId() << "."; - } else { - LOG(INFO) << "Generated road corridor for agent " - << GetAgentId() << "."; - } + } + // else { + // LOG(INFO) << "Generated road corridor for agent " + // << GetAgentId() << "."; + // } } } @@ -104,13 +105,13 @@ bool Agent::GenerateRoadCorridor(const MapInterfacePtr& map_interface) { if (!map_interface->GetRoadFromCsvTable()) { // default xodr VLOG(6) << "Map Interface from XODR"; if (goal_definition_ && road_corridor_road_ids_.empty()) { - LOG(INFO) << "Agent has Goal definition but no valid road ID found! Generating road corridors"; + // LOG(INFO) << "Agent has Goal definition but no valid road ID found! Generating road corridors"; road_corridor_ = map_interface->GenerateRoadCorridor( GetCurrentPosition(), goal_definition_->GetShape()); road_corridor_road_ids_ = road_corridor_->GetRoadIds(); road_corridor_driving_direction_ = road_corridor_->GetDrivingDirection(); } else if (!road_corridor_road_ids_.empty()) { - LOG(INFO) << "Agent has valid road ID!"; + // LOG(INFO) << "Agent has valid road ID!"; VLOG(6) << "Road corridor from ids" << road_corridor_road_ids_; map_interface->GenerateRoadCorridor(road_corridor_road_ids_, road_corridor_driving_direction_);