Skip to content

Commit

Permalink
comment out log info
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangzhong Liu committed Nov 24, 2023
1 parent b9d4a70 commit 2671d38
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bark/world/objects/agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() << ".";
// }
}
}

Expand Down Expand Up @@ -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_);
Expand Down

0 comments on commit 2671d38

Please sign in to comment.