MCPcopy Create free account
hub / github.com/ACFR-RPG/DynOSAM / FrontendModule

Method FrontendModule

dynosam/src/frontend/FrontendModule.cc:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace dyno {
38
39FrontendModule::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
55FrontendModule::~FrontendModule() {
56 VLOG(5) << "Destructing frontend module";

Callers

nothing calls this directly

Calls 2

getFrameIdMethod · 0.45
getTimestampMethod · 0.45

Tested by

no test coverage detected