4#include <nlohmann/json.hpp>
7#include <ompl/control/PathControl.h>
15 static void log(
const nlohmann::json &stats);
19 static void save(std::string
filename =
"",
const std::string &path =
"log/");
24 const std::vector<Point> &path);
26 const ompl::geometric::PathGeometric &traj,
bool interpolate =
true);
29 const ompl::control::PathControl &traj,
bool interpolate =
true);
32 static nlohmann::json _json;
33 static nlohmann::json _currentRun;
static void instantiateRun()
Definition: Log.cpp:11
static void save(std::string filename="", const std::string &path="log/")
Definition: Log.cpp:39
static std::vector< std::array< double, 3 > > serializeTrajectory(const ompl::geometric::PathGeometric &traj, bool interpolate=true)
Definition: Log.cpp:76
static std::vector< std::array< double, 2 > > serializePath(const std::vector< Point > &path)
Definition: Log.cpp:69
static void log(const PathStatistics &stats)
Definition: Log.cpp:29
static std::string filename()
Definition: Log.cpp:57
static void storeRun()
Definition: Log.cpp:47
Definition: PathStatistics.hpp:16