Has helper functions to load text files from disk and process them.
More...
#include <Loader.h>
|
| 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 > ×, 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 > ×, 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 > ×, 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 > ×, std::vector< Eigen::Vector3d > &summed_values, std::vector< Eigen::VectorXd > &node_values) |
| | Load space separated timing file from pid_ros.py file. More...
|
| |
Has helper functions to load text files from disk and process them.
Definition at line 40 of file Loader.h.
◆ 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.
◆ 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
-
| poses | Pose 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_traj | Path to the trajectory file that we want to read in. |
| times | Timesteps in seconds for each pose |
| poses | Pose at every timestep [pos,quat] |
| cov_ori | Vector of orientation covariances at each timestep (empty if we can't load) |
| cov_pos | Vector 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_traj | Path to the trajectory file that we want to read in. |
| times | Timesteps in seconds for each pose |
| poses | Pose at every timestep [pos,quat] |
| cov_ori | Vector of orientation covariances at each timestep (empty if we can't load) |
| cov_pos | Vector 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
-
| path | Path to our text file to load |
| values | Each 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
-
| path | Path to our text file to load |
| names | Names of each timing category |
| times | Timesteps in seconds for each measurement |
| timing_values | Component 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
-
| path | Path to our text file to load |
| times | Timesteps in seconds for each measurement |
| summed_values | Summed node values [cpu,mem,num_threads] |
| node_values | Values 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: