#ifndef __VIEWPOINT_H_ #define __VIEWPOINT_H_ #include using std::vector; #include using std::pair; #include "grid/scanGrid.h" #include using std::string; /** * The class manages a list of viewpoints from which the * roboter has taken the scans. * It provides methods for adding a new viewpoint, saving and loading the * list. * * @author Sebastian Stock, Uwe Hebbelmann, Andre Schemschat * @date 22.02.08 */ class viewpointinfo { private: /** Typedef for a viewpoint */ typedef pair viewpoint; /** Internal vector for storing the viewpoints */ vector viewpoints; /** The path where the file is created */ string path; public: /** @brief CTor */ viewpointinfo(string path); /** @brief Adds the viewpoint information of a scanGrid */ void addGrid(const scanGrid *grid); /** @brief Writes the internal list to file */ void write(string filename); }; #endif