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

PlayerVehPoseSource.cc

Go to the documentation of this file.
00001 00005 #include <iostream> 00006 00007 #include <utils/ConfigFile.h> 00008 #include <utils/Player.h> 00009 #include <TimeSource/TimeSource.h> 00010 00011 #include "VehPoseSource.h" 00012 #include "VehPosePlayer.h" 00013 00016 class PlayerVehPoseSource : public VehPoseSource { 00017 public: 00019 virtual bool getCurPose(utils::Time& time, 00020 VehPose& pose, bool blocking = true); 00021 00023 virtual bool getPose(utils::Time time, VehPose& pose); 00024 00026 bool init(utils::ConfigFile& params, utils::SymbolTable* globals); 00027 00028 private: 00029 VehPosePlayer _player; 00030 }; 00031 00033 VehPoseSource* create_VehPoseSource_player(VehPoseSourceGenerator* gen, 00034 utils::ConfigFile* params, 00035 utils::SymbolTable* globals) 00036 { 00037 PlayerVehPoseSource* intf = new PlayerVehPoseSource(); 00038 if (!intf->init(*params, globals)) { 00039 delete intf; 00040 return NULL; 00041 } 00042 return intf; 00043 } 00044 00045 bool PlayerVehPoseSource::init(utils::ConfigFile& params, 00046 utils::SymbolTable* globals) 00047 { 00048 return _player.open(params, globals); 00049 } 00050 00051 bool PlayerVehPoseSource::getCurPose(utils::Time& time, VehPose& pose, 00052 bool blocking) 00053 { 00054 return _player.nextPose(time, pose, blocking); 00055 } 00056 00057 bool PlayerVehPoseSource::getPose(utils::Time time, VehPose& pose) 00058 { 00059 return _player.getPose(time, pose); 00060 } 00061 00062

Generated on Tue Sep 7 20:37:49 2004 for ModUtils by doxygen 1.3.8