Function squiggles::deserialize_pathfinder_path¶
Defined in File io.hpp
Function Documentation¶
-
std::optional<std::vector<ProfilePoint>> squiggles::deserialize_pathfinder_path(std::istream &left, std::istream &right)¶
Converts CSV data from the Pathfinder library’s format to a Squiggles path.
NOTE: this code translates data from Jaci Brunning’s Pathfinder library. The source for that library can be found at: https://github.com/JaciBrunning/Pathfinder/
- Parameters
left – The input stream containing the left wheels’ CSV data. This is usually a file.
right – The input stream containing the right wheels’ CSV data. This is usually a file.
- Returns
The path specified by the CSV data or std::nullopt if de-serializing the path was unsuccessful.