diff --git a/src/eal.cpp b/src/eal.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a8b101a90eef3758e59965fb91d7686c253e92f4 --- /dev/null +++ b/src/eal.cpp @@ -0,0 +1,19 @@ + +#include + +using json = nlohmann::json; + + +std::string eal::constructStateFromIsd(const std::string positionRotationData) const +{ + // Parse the position and rotation data from isd + json isd = json::parse(positionRotationData); + json state; + + state["m_w"] = isd.at("w"); + state["m_x"] = isd.at("x"); + state["m_y"] = isd.at("y"); + state["m_z"] = isd.at("z"); + + return state.dump(); +}