d5ae26dfef
This commit changes the parameters reading. It introduces getopt to read input parameters from command line and it uses a configuration yaml file to read the input parameters for the network, the map and the cameras. This commit fixes a bug in message sending to the aggregator. Signed-off-by: Davide Sapienza <sapienza.dav@gmail.com>
21 lines
422 B
C++
21 lines
422 B
C++
#ifndef CONFIGURATION_H
|
|
#define CONFIGURATION_H
|
|
|
|
#include "cameraUtils.h"
|
|
#include <iostream>
|
|
#include <cstring>
|
|
|
|
#include <yaml-cpp/yaml.h>
|
|
|
|
struct Parameters_t
|
|
{
|
|
char *net;
|
|
char *tiffile;
|
|
int n_cameras;
|
|
Camera_t *cameras;
|
|
};
|
|
|
|
void readCamerasParametersYaml(const std::string &camerasParams, Parameters_t *par);
|
|
bool read_parameters(int argc, char *argv[], Parameters_t *par);
|
|
|
|
#endif /*CONFIGURATION_H*/ |