43 #ifndef FASTRACK_UTILS_MATLAB_FILE_READER_H 44 #define FASTRACK_UTILS_MATLAB_FILE_READER_H 64 if (!
Open(file_name)) {
65 ROS_ERROR(
"MatlabFileReader: could not load file %s.",
71 bool Open(
const std::string& file_name);
80 bool ReadString(
const std::string& field_name, std::string* value);
83 bool ReadScalar(
const std::string& field_name,
double* value);
84 bool ReadScalar(
const std::string& field_name,
size_t* value);
87 bool ReadVector(
const std::string& field_name, std::vector<double>* values);
88 bool ReadVector(
const std::string& field_name, std::vector<size_t>* values);
MatlabFileReader(const std::string &file_name)
bool ReadString(const std::string &field_name, std::string *value)
bool ReadVector(const std::string &field_name, std::vector< double > *values)
bool ReadScalar(const std::string &field_name, double *value)
bool Open(const std::string &file_name)