LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
io.hpp
Go to the documentation of this file.
1
7#ifndef _SQUIGGLES_IO_HPP_
8#define _SQUIGGLES_IO_HPP_
9
10#include <optional>
11#include <vector>
12
14
15namespace squiggles {
25int serialize_path(std::ostream& out, std::vector<ProfilePoint> path);
26
35std::optional<std::vector<ProfilePoint>> deserialize_path(std::istream& in);
36
52std::optional<std::vector<ProfilePoint>>
53deserialize_pathfinder_path(std::istream& left, std::istream& right);
54} // namespace squiggles
55
56#endif
Copyright 2020 Jonathan Bayless.
int serialize_path(std::ostream &out, std::vector< ProfilePoint > path)
Writes the path data to a CSV file.
std::optional< std::vector< ProfilePoint > > deserialize_path(std::istream &in)
Converts CSV data into a path.
std::optional< std::vector< ProfilePoint > > deserialize_pathfinder_path(std::istream &left, std::istream &right)
Converts CSV data from the Pathfinder library's format to a Squiggles path.