9 #ifndef CGRAPHSLAMHANDLER_H
10 #define CGRAPHSLAMHANDLER_H
35 template <
class GRAPH_T = mrpt::graphs::CNetworkOfPoses2DInf>
43 const bool enable_visuals );
100 const std::string& output_dir_fname =
"graphslam_results");
Manage variables and methods related to applications executing graphSLAM using the mrpt-graphslam API...
std::string m_save_map_fname
void setResultsDirName(const std::string &dirname)
Override the results directory filename that was initially set in the .ini file.
void execute()
Method to be called for parsing the rawlog file provided and for running graphSLAM using that informa...
mrpt::graphslam::CGraphSlamEngine< GRAPH_T > * m_engine
Pointer to the engine instance.
mrpt::gui::CDisplayWindow3D * m_win
mrpt::graphslam::apps::TUserOptionsChecker< GRAPH_T > * m_options_checker
TUserOptionsChecker instance whose task is to evaluate the Registration Decider, Optimizer instances ...
void setFNames(const std::string &ini_fname, const std::string &rawlog_fname, const std::string &ground_truth_fname=std::string())
Set the relevant filenames for instantiating CGraphSlamEngine instance.
std::string m_rawlog_fname
mrpt::graphslam::CWindowObserver * m_win_observer
std::string m_save_3DScene_fname
void readConfigFname(const std::string &fname)
Read configuration variables for the current graphSLAM execution from a .ini file.
void saveResults(const std::string &output_dir_fname)
void initEngine(const std::string &node_reg_str, const std::string &edge_reg_str, const std::string &optimizer_str)
CGraphSlamHandler(mrpt::system::COutputLogger *logger, mrpt::graphslam::apps::TUserOptionsChecker< GRAPH_T > *options_checker, const bool enable_visuals)
Constructor.
void initVisualization()
Initialize visualization (e.g.
void saveMap(const std::string &fname)
void initOutputDir(const std::string &output_dir_fname="graphslam_results")
Initialize (clean up and create new files) the output directory.
std::string m_save_graph_fname
void printParams() const
Print in a formatted manner the general configuraiton variables for the current graphSLAM execution.
mrpt::graphslam::CWindowManager * m_win_manager
mrpt::system::COutputLogger * m_logger
std::string getParamsAsString() const
std::string m_output_dir_fname
~CGraphSlamHandler()
Destructor.
bool queryObserverForEvents()
Query the CWindowObserver instance for any pressed keys that might be of interest (e....
bool m_user_decides_about_output_dir
Main file for the GraphSlamEngine.
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWind...
Monitor events in the visualization window.
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.
Versatile class for consistent logging and management of output messages.
GLsizei const GLchar ** string
Class containing the declarations of supplementary methods that can be used in application-related co...