Skip to content

Commit

Permalink
feat(behavior_velocity_planner): add instrument type and id to virtua…
Browse files Browse the repository at this point in the history
…l_traffic_light logger

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Feb 1, 2022
1 parent 04343b6 commit 1d395b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ VirtualTrafficLightModule::VirtualTrafficLightModule(
command_.type = map_data_.instrument_type;
command_.id = map_data_.instrument_id;
command_.custom_tags = map_data_.custom_tags;

// Add instrument information to the logger
logger_ = logger_.get_child((map_data_.instrument_type + "_" + map_data_.instrument_id).c_str());
}

bool VirtualTrafficLightModule::modifyPathVelocity(
Expand Down

0 comments on commit 1d395b3

Please sign in to comment.