| 37 | namespace dyno { |
| 38 | |
| 39 | FrontendModule::FrontendModule(const FrontendParams& params, |
| 40 | ImageDisplayQueue* display_queue) |
| 41 | : Base("frontend"), base_params_(params), display_queue_(display_queue) { |
| 42 | // create callback to update gt_packet_map_ values so the derived classes dont |
| 43 | // need to manage this |
| 44 | registerInputCallback([=](FrontendInputPacketBase::ConstPtr input) { |
| 45 | // if(input->optional_gt_) gt_packet_map_.insert2(input->getFrameId(), |
| 46 | // *input->optional_gt_); |
| 47 | if (input->optional_gt_) |
| 48 | shared_module_info.updateGroundTruthPacket(input->getFrameId(), |
| 49 | *input->optional_gt_); |
| 50 | shared_module_info.updateTimestampMapping(input->getFrameId(), |
| 51 | input->getTimestamp()); |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | FrontendModule::~FrontendModule() { |
| 56 | VLOG(5) << "Destructing frontend module"; |
nothing calls this directly
no test coverage detected