diff --git a/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.cpp b/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.cpp index e74d3a1408dbabc8b98260618636491efb59f576..f2930f14f479d9ae68ee222f2643edf327392a43 100644 --- a/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.cpp +++ b/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.cpp @@ -5,6 +5,8 @@ namespace armarx::armem::vision::occupancy_grid::client { + Writer::~Writer() = default; + bool Writer::store(const OccupancyGrid& grid, const std::string& frame, const std::string& agentName, @@ -12,7 +14,7 @@ namespace armarx::armem::vision::occupancy_grid::client { std::lock_guard g{memoryWriterMutex()}; - const auto result = memoryWriter().addSegment(properties().memoryName, agentName); + const auto result = memoryWriter().addSegment(properties().coreSegmentName, agentName); if (not result.success) { @@ -25,8 +27,7 @@ namespace armarx::armem::vision::occupancy_grid::client const auto iceTimestamp = Time::microSeconds(timestamp); const auto providerId = armem::MemoryID(result.segmentID); - const auto entityID = - providerId.withEntityName(frame).withTimestamp(iceTimestamp); + const auto entityID = providerId.withEntityName(frame).withTimestamp(iceTimestamp); armem::EntityUpdate update; update.entityID = entityID; diff --git a/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.h b/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.h index 4239520cf659523385dfb15371277b8c85848c91..bf1268444c333d10bb3c2f9efb68da11fe697cc8 100644 --- a/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.h +++ b/source/RobotAPI/libraries/armem_vision/client/occupancy_grid/Writer.h @@ -57,4 +57,6 @@ namespace armarx::armem::vision::occupancy_grid::client Properties defaultProperties() const override; }; + + } // namespace armarx::armem::vision::occupancy_grid::client