16 lines
502 B
C++
16 lines
502 B
C++
#include "app/lidar_manager_app.hpp"
|
|
|
|
#include <cstdlib>
|
|
#include <filesystem>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
const int port = (argc >= 2) ? std::atoi(argv[1]) : 8080;
|
|
const std::filesystem::path www_root = (argc >= 3) ? std::filesystem::path(argv[2]) : std::filesystem::path("www");
|
|
const std::filesystem::path data_path =
|
|
(argc >= 4) ? std::filesystem::path(argv[3]) : std::filesystem::path("data/RBS.db");
|
|
|
|
lm::LidarManagerApp app(port, www_root, data_path);
|
|
return app.run();
|
|
}
|