3 #ifndef GRAIL_PLANNER_SNAPSHOT_H
4 #define GRAIL_PLANNER_SNAPSHOT_H
6 #include "Flatbuffers/PlannerWorldObjectSnapshot_generated.h"
7 #include "Flatbuffers/PlannerActionSnapshot_generated.h"
8 #include "Flatbuffers/PlannerIterationSnapshot_generated.h"
9 #include "Flatbuffers/PlannerReasonerSnapshot_generated.h"
23 class ParametrizedObject;
33 unsigned int objectId = 0;
39 flatbuffers::Offset<generated::PlannerWorldObjectSnapshot> Pack(flatbuffers::FlatBufferBuilder& builder,
40 const PlannerWorldObjectSnapshot& snapshot);
41 PlannerWorldObjectSnapshot Unpack(
const generated::PlannerWorldObjectSnapshot& snapshot);
48 std::vector<std::string> parametrization{};
49 std::vector<PlannerWorldObjectSnapshot> resultingWorldState{};
58 unsigned int objectId,
59 const std::string& objectName);
62 flatbuffers::Offset<generated::PlannerActionSnapshot> Pack(flatbuffers::FlatBufferBuilder& builder,
76 bool goalReached =
false;
80 double totalCost = std::numeric_limits<double>::max();
85 flatbuffers::Offset<generated::PlannerIterationSnapshot> Pack(flatbuffers::FlatBufferBuilder& builder,
94 std::vector<PlannerIterationSnapshot> iterations = {};
96 float absoluteTime = 0;
97 float relativeTime = 0;
98 std::size_t entityId = 0;
101 flatbuffers::Offset<generated::PlannerReasonerSnapshot> Pack(flatbuffers::FlatBufferBuilder& builder,