This commit is contained in:
PodmogilnyjIvan
2021-12-03 03:34:31 -08:00
commit ff4acf84be
542 changed files with 136810 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include <pangolin/log/playback_session.h>
#include <pangolin/utils/params.h>
namespace pangolin {
std::shared_ptr<PlaybackSession> PlaybackSession::Default()
{
static std::shared_ptr<PlaybackSession> instance = std::make_shared<PlaybackSession>();
return instance;
}
std::shared_ptr<PlaybackSession> PlaybackSession::ChooseFromParams(const Params& params)
{
bool use_ordered_playback = params.Get<bool>("OrderedPlayback", false);
std::shared_ptr<pangolin::PlaybackSession> playback_session;
if(use_ordered_playback)
{
return Default();
}
else
{
return std::make_shared<PlaybackSession>();
}
}
}