Curves
A library for curves generation.
helpers.hpp File Reference
#include <stdlib.h>
#include <vector>
#include <iostream>
#include <fstream>
#include <glog/logging.h>
#include <Eigen/Core>
Include dependency graph for helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 curves
 

Functions

template<typename T >
static std::string curves::toString (const T &t)
 
static std::vector< std::vector< std::string > > curves::loadCSV (std::string fileName)
 Helper function to read CSV files into 'matrix' of strings. More...
 
static void curves::writeCSV (std::string fileName, const std::vector< std::vector< std::string > > &strMatrix)
 Helper function to write 'matrix' of strings into CSV file. More...
 
static void curves::loadTimeVectorCSV (std::string fileName, std::vector< curves::Time > *outTimes, std::vector< Eigen::VectorXd > *outValues)
 Helper function to read CSV files formatted in: time, vectorEntry0, vectorEntry1, ... More...
 
static void curves::writeTimeVectorCSV (std::string fileName, const std::vector< curves::Time > &times, const std::vector< Eigen::VectorXd > &values)
 Helper function to write CSV file formatted in: time, vectorEntry0, vectorEntry1, ... More...
 
static void curves::loadTimeTimeVectorCSV (std::string fileName, std::vector< curves::Time > *outTimes0, std::vector< curves::Time > *outTimes1, std::vector< Eigen::VectorXd > *outValues)
 Helper function to read CSV files formatted in: time0, time1, vectorEntry0, vectorEntry1, ... More...