void Config(ptam::PC2ParamsConfig& config, uint32_t level) { publish_pc_=config.PublishPC; if(config.ExportPC) { config.ExportPC=false; exportPC(config.ExportPrefix); } }
void Config(ptam::PTAMVisualizerParamsConfig& config, uint32_t level) { show_pc_ = true;//config.ShowPC; show_kfs_ = true;//config.ShowKFs; show_all_kfs_ = true;//config.ShowAllKFs; kf_lifetime_ = config.KFLifetime; show_path_ = true;//config.ShowPath; KFFlags_ = config.KFFlags; path_length_ = config.PathLength; if(config.ExportPC) { config.ExportPC=false; exportPC(config.ExportPrefix); } if(config.SaveMap) { config.SaveMap=false; saveMap(config.ExportPrefix); } }