Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

ShmemPublishVehPoseSource.cc

Go to the documentation of this file.
00001 
00006 #include <utils/ConfigFile.h>
00007 
00008 #include "OutputVehPoseSource.h"
00009 
00012 UTILS_INTF_CREATOR(VehPoseSource, shmemPublish, gen, params, globals)
00013 {
00014   UTILS_INTF_REPORT(VehPoseSource, shmemPublish);
00015   // pose output specification inherited from params for the most part
00016   utils::ConfigFile output_params;
00017   utils::ConfigFile::copy(*params, output_params);
00018   output_params.setString("tag", "shmem");  // set up shmem tag
00019   output_params.set("contained", "{}"); //we clear contained to avoid confusion
00020   
00021   // get the contained specification
00022   utils::ConfigFile contained_params;
00023   params->getStruct("contained", contained_params);
00024 
00025   // now create the output instance parameters
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 

Generated on Fri Jun 16 13:21:19 2006 for ModUtils by  doxygen 1.4.4