00001
00006 #include <utils/ConfigFile.h>
00007
00008 #include "OutputVehPoseSource.h"
00009
00012 UTILS_INTF_CREATOR(VehPoseSource, logger, gen, params, globals)
00013 {
00014 UTILS_INTF_REPORT(VehPoseSource, logger);
00015
00016 utils::ConfigFile output_params;
00017 utils::ConfigFile::copy(*params, output_params);
00018 output_params.setString("tag", "logger");
00019 output_params.set("contained", "{}");
00020
00021
00022 utils::ConfigFile contained_params;
00023 params->getStruct("contained", contained_params);
00024
00025
00026 utils::ConfigFile final_params;
00027 final_params.setString("tag", "output");
00028 final_params.setStruct("contained", contained_params);
00029 final_params.setStruct("output", output_params);
00030
00031 OutputVehPoseSource* intf = new OutputVehPoseSource();
00032 if (!intf->init(final_params, gen, globals)) {
00033 delete intf;
00034 return NULL;
00035 }
00036 return intf;
00037 }
00038