Go to the documentation of this file.
3 #include <RobotAPI/libraries/armem_vision/aron/OccupancyGrid.aron.generated.h>
12 const std::string& frame,
13 const std::string& providerName,
14 const std::int64_t& timestamp)
16 std::lock_guard g{writeMutex};
20 if (not result.success)
31 const auto entityID = providerId.withEntityName(frame).withTimestamp(iceTimestamp);
34 update.entityID = entityID;
36 arondto::OccupancyGrid aronGrid;
40 auto dict = aronGrid.toAron();
43 update.instancesData = {dict};
44 update.referencedTime = iceTimestamp;
51 if (not updateResult.success)
56 return updateResult.success;
62 return "mem.vision.occupancy_grid.";
65 armarx::armem::client::util::SimpleWriterBase::SimpleWriterBase::Properties
69 return SimpleWriterBase::Properties{.
memoryName =
"Vision",
70 .coreSegmentName =
"OccupancyGrid"};
void toAron(arondto::OccupancyGrid &dto, const OccupancyGrid &bo)
data::AddSegmentResult addSegment(const std::string &coreSegmentName, const std::string &providerSegmentName, bool clearWhenExists=false) const
Result of an EntityUpdate.
Properties defaultProperties() const override
armem::client::Writer & memoryWriter()
An update of an entity for a specific point in time.
CommitResult commit(const Commit &commit) const
Writes a Commit to the memory.
armarx::core::time::DateTime Time
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
bool store(const OccupancyGrid &grid, const std::string &frame, const std::string &providerName, const std::int64_t ×tamp)
std::string propertyPrefix() const override
const Properties & properties() const
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
const armem::MemoryID MemoryID