class mrpt::apps::CRawlogProcessorOnEachObservation

Overview

A virtual class that implements the common stuff around parsing a rawlog file and (optionally) display a progress indicator to the console.

#include <mrpt/apps/CRawlogProcessor.h>

class CRawlogProcessorOnEachObservation: public mrpt::apps::CRawlogProcessor
{
public:
    // fields

    uint64_t m_filSize;
    size_t m_rawlogEntry;
    double m_timToParse;

    // construction

    CRawlogProcessorOnEachObservation(
        mrpt::io::CFileGZInputStream& in_rawlog,
        TCLAP::CmdLine& cmdline,
        bool enable_verbose
        );

    // methods

    virtual bool processOneEntry(
        mrpt::obs::CActionCollection::Ptr& actions,
        mrpt::obs::CSensoryFrame::Ptr& SF,
        mrpt::obs::CObservation::Ptr& obs
        );

    virtual bool processOneObservation(mrpt::obs::CObservation::Ptr& obs) = 0;
    virtual bool processOneAction(mrpt::obs::CAction::Ptr&);
    void doProcessRawlog();

    virtual void OnPostProcess(
        ] mrpt::obs::CActionCollection::Ptr& actions,
        ] mrpt::obs::CSensoryFrame::Ptr& SF,
        ] mrpt::obs::CObservation::Ptr& obs
        );
};

// direct descendants

class CRawlogProcessorFilterObservations;

Inherited Members

public:
    // methods

    virtual bool processOneEntry(mrpt::obs::CActionCollection::Ptr& actions, mrpt::obs::CSensoryFrame::Ptr& SF, mrpt::obs::CObservation::Ptr& obs) = 0;