Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
persist changes
  • Loading branch information
DTCurrie committed Sep 30, 2025
commit b61b3cc39af78059587a75b1416bccf58586cc2a
16 changes: 16 additions & 0 deletions services/worldstatestore/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,22 @@ func (worldState *WorldStateStore) updatePointCloud(elapsed time.Duration) {
return
}

worldState.mu.Lock()
if transform, exists := worldState.transforms[pointcloudUUID]; exists {
pc := transform.PhysicalObject.GetPointcloud()
if pc != nil && pc.PointCloud != nil {
for i := 0; i < count; i++ {
pointIdx := startIdx + i
srcOffset := i * stride
dstOffset := pointIdx * stride
if dstOffset+stride <= len(pc.PointCloud) && srcOffset+stride <= len(chunkData) {
copy(pc.PointCloud[dstOffset:dstOffset+stride], chunkData[srcOffset:srcOffset+stride])
}
}
}
}
worldState.mu.Unlock()

updatedFields := []string{
"physicalObject.geometryType.value.pointCloud.pointCloud",
"physicalObject.geometryType.value.pointCloud.header",
Expand Down
Loading