scenario_simulator_v2 C++ API
Public Member Functions | Static Public Member Functions | List of all members
CSVLoader Class Reference

#include <sim_model_delay_steer_map_acc_geared.hpp>

Public Member Functions

 CSVLoader (const std::string &csv_path)
 
bool readCSV (Table &result, const char delim=',')
 

Static Public Member Functions

static bool validateData (const Table &table, const std::string &csv_path)
 
static bool validateMap (const Map &map, const bool is_col_decent)
 
static Map getMap (const Table &table)
 
static std::vector< double > getRowIndex (const Table &table)
 
static std::vector< double > getColumnIndex (const Table &table)
 
static double clampValue (const double val, const std::vector< double > &ranges, const std::string &name)
 

Detailed Description

Note
copied from https://github.com/autowarefoundation/autoware.universe/blob/main/simulator/simple_planning_simulator/include/simple_planning_simulator/utils/csv_loader.hpp

Constructor & Destructor Documentation

◆ CSVLoader()

CSVLoader::CSVLoader ( const std::string &  csv_path)
explicit

Member Function Documentation

◆ clampValue()

double CSVLoader::clampValue ( const double  val,
const std::vector< double > &  ranges,
const std::string &  name 
)
static

◆ getColumnIndex()

std::vector< double > CSVLoader::getColumnIndex ( const Table table)
static

◆ getMap()

Map CSVLoader::getMap ( const Table table)
static

◆ getRowIndex()

std::vector< double > CSVLoader::getRowIndex ( const Table table)
static

◆ readCSV()

bool CSVLoader::readCSV ( Table result,
const char  delim = ',' 
)

◆ validateData()

bool CSVLoader::validateData ( const Table table,
const std::string &  csv_path 
)
static

◆ validateMap()

bool CSVLoader::validateMap ( const Map map,
const bool  is_col_decent 
)
static

The documentation for this class was generated from the following files: