Found a way to unify the hdr_output_folder so that it's set across both

the publisher and the camera_simulator with just the flag
This commit is contained in:
Arnaud Fauconnet
2023-07-19 17:37:16 +02:00
parent 30950151dd
commit e27602488d
6 changed files with 23 additions and 14 deletions

View File

@ -9,10 +9,12 @@ catkin_simple()
set(HEADERS
include/esim/common/types.hpp
include/esim/common/utils.hpp
include/esim/common/hdr.hpp
)
set(SOURCES
src/utils.cpp
src/hdr.cpp
)
cs_add_library(${PROJECT_NAME} ${SOURCES} ${HEADERS})

View File

@ -0,0 +1,5 @@
#pragma once
#include <gflags/gflags.h>
extern std::string hdr_output_folder;

View File

@ -0,0 +1,9 @@
#include "esim/common/hdr.hpp"
DEFINE_string(
hdr_output_folder,
"/home/arno/sim_ws/out",
"Folder in which to output the events."
);
std::string hdr_output_folder = FLAGS_hdr_output_folder;