Static Public Member Functions | Private Member Functions | List of all members
ov_eval::Loader Class Reference

Has helper functions to load text files from disk and process them. More...

#include <Loader.h>

Static Public Member Functions

static double get_total_length (const std::vector< Eigen::Matrix< double, 7, 1 >> &poses)
 Will calculate the total trajectory distance. More...
 
static void load_data (std::string path_traj, std::vector< double > &times, std::vector< Eigen::Matrix< double, 7, 1 >> &poses, std::vector< Eigen::Matrix3d > &cov_ori, std::vector< Eigen::Matrix3d > &cov_pos)
 This will load space separated trajectory into memory. More...
 
static void load_data_csv (std::string path_traj, std::vector< double > &times, std::vector< Eigen::Matrix< double, 7, 1 >> &poses, std::vector< Eigen::Matrix3d > &cov_ori, std::vector< Eigen::Matrix3d > &cov_pos)
 This will load comma separated trajectory into memory (ASL/ETH format) More...
 
static void load_simulation (std::string path, std::vector< Eigen::VectorXd > &values)
 Load an arbitrary sized row of space separated values, used for our simulation. More...
 
static void load_timing_flamegraph (std::string path, std::vector< std::string > &names, std::vector< double > &times, std::vector< Eigen::VectorXd > &timing_values)
 Load comma separated timing file from pid_ros.py file. More...
 
static void load_timing_percent (std::string path, std::vector< double > &times, std::vector< Eigen::Vector3d > &summed_values, std::vector< Eigen::VectorXd > &node_values)
 Load space separated timing file from pid_ros.py file. More...
 

Private Member Functions

 Loader ()
 

Detailed Description

Has helper functions to load text files from disk and process them.

Definition at line 40 of file Loader.h.

Constructor & Destructor Documentation

◆ Loader()

ov_eval::Loader::Loader ( )
inlineprivate

All function in this class should be static. Thus an instance of this class cannot be created.

Definition at line 104 of file Loader.h.

Member Function Documentation

◆ get_total_length()

double Loader::get_total_length ( const std::vector< Eigen::Matrix< double, 7, 1 >> &  poses)
static

Will calculate the total trajectory distance.

Parameters
posesPose at every timestep [pos,quat]
Returns
Distance travels (meters)

Definition at line 388 of file Loader.cpp.

◆ load_data()

void Loader::load_data ( std::string  path_traj,
std::vector< double > &  times,
std::vector< Eigen::Matrix< double, 7, 1 >> &  poses,
std::vector< Eigen::Matrix3d > &  cov_ori,
std::vector< Eigen::Matrix3d > &  cov_pos 
)
static

This will load space separated trajectory into memory.

Parameters
path_trajPath to the trajectory file that we want to read in.
timesTimesteps in seconds for each pose
posesPose at every timestep [pos,quat]
cov_oriVector of orientation covariances at each timestep (empty if we can't load)
cov_posVector of position covariances at each timestep (empty if we can't load)

Definition at line 26 of file Loader.cpp.

◆ load_data_csv()

void Loader::load_data_csv ( std::string  path_traj,
std::vector< double > &  times,
std::vector< Eigen::Matrix< double, 7, 1 >> &  poses,
std::vector< Eigen::Matrix3d > &  cov_ori,
std::vector< Eigen::Matrix3d > &  cov_pos 
)
static

This will load comma separated trajectory into memory (ASL/ETH format)

Parameters
path_trajPath to the trajectory file that we want to read in.
timesTimesteps in seconds for each pose
posesPose at every timestep [pos,quat]
cov_oriVector of orientation covariances at each timestep (empty if we can't load)
cov_posVector of position covariances at each timestep (empty if we can't load)

Definition at line 109 of file Loader.cpp.

◆ load_simulation()

void Loader::load_simulation ( std::string  path,
std::vector< Eigen::VectorXd > &  values 
)
static

Load an arbitrary sized row of space separated values, used for our simulation.

Parameters
pathPath to our text file to load
valuesEach row of values

Definition at line 179 of file Loader.cpp.

◆ load_timing_flamegraph()

void Loader::load_timing_flamegraph ( std::string  path,
std::vector< std::string > &  names,
std::vector< double > &  times,
std::vector< Eigen::VectorXd > &  timing_values 
)
static

Load comma separated timing file from pid_ros.py file.

Parameters
pathPath to our text file to load
namesNames of each timing category
timesTimesteps in seconds for each measurement
timing_valuesComponent timing values for the given timestamp

Definition at line 240 of file Loader.cpp.

◆ load_timing_percent()

void Loader::load_timing_percent ( std::string  path,
std::vector< double > &  times,
std::vector< Eigen::Vector3d > &  summed_values,
std::vector< Eigen::VectorXd > &  node_values 
)
static

Load space separated timing file from pid_ros.py file.

Parameters
pathPath to our text file to load
timesTimesteps in seconds for each measurement
summed_valuesSummed node values [cpu,mem,num_threads]
node_valuesValues for each separate node [cpu,mem,num_threads]

Definition at line 321 of file Loader.cpp.


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


ov_eval
Author(s): Patrick Geneva , Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Dec 16 2024 03:06:50