Skip to content
Snippets Groups Projects
Commit 4cb27def authored by Fabian Reister's avatar Fabian Reister
Browse files

fix: used memoryName property instead of coreSegmentName

parent 79e2e7ce
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -57,4 +57,6 @@ namespace armarx::armem::vision::occupancy_grid::client
Properties defaultProperties() const override;
};
} // namespace armarx::armem::vision::occupancy_grid::client
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment