@@ -246,14 +246,14 @@ AriaImageDataWithDt AriaDigitalTwinDataProvider::getAriaImageByTimestampNs(
246246 const TimeQueryOptions& timeQueryOptions) const {
247247 if (!hasAriaData ()) {
248248 XR_LOGW (" Aria Images are empty, no vrs is provided\n " );
249- return AriaImageDataWithDt () ;
249+ return {} ;
250250 }
251251
252252 bool isActive = dataProvider_->checkStreamIsActive (streamId);
253253
254254 if (!isActive) {
255255 XR_LOGW (" Stream {} is not active, no image is available\n " , streamId.getNumericName ());
256- return AriaImageDataWithDt () ;
256+ return {} ;
257257 }
258258
259259 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -265,7 +265,7 @@ AriaImageDataWithDt AriaDigitalTwinDataProvider::getAriaImageByTimestampNs(
265265 // Check if image is valid
266266 if (!imageData.first .isValid ()) {
267267 XR_LOGW (" Invalid Aria image at {}\n " , deviceTimeStampNs);
268- return AriaImageDataWithDt () ;
268+ return {} ;
269269 }
270270
271271 return AriaImageDataWithDt (
@@ -328,7 +328,7 @@ Aria3dPoseDataWithDt AriaDigitalTwinDataProvider::getAria3dPoseByTimestampNs(
328328 const TimeQueryOptions& timeQueryOptions) const {
329329 if (!hasAria3dPoses ()) {
330330 XR_LOGW (" Aria 3D trajectory is empty\n " );
331- return Aria3dPoseDataWithDt () ;
331+ return {} ;
332332 }
333333
334334 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -339,7 +339,7 @@ Aria3dPoseDataWithDt AriaDigitalTwinDataProvider::getAria3dPoseByTimestampNs(
339339 if (queryPoseIter != aria3dPoses_.end ()) {
340340 return Aria3dPoseDataWithDt (queryPoseIter->second , queryPoseIter->first - deviceTimeStampNs);
341341 } else {
342- return Aria3dPoseDataWithDt () ;
342+ return {} ;
343343 }
344344}
345345
@@ -348,7 +348,7 @@ BoundingBox3dDataWithDt AriaDigitalTwinDataProvider::getObject3dBoundingBoxesByT
348348 const TimeQueryOptions& timeQueryOptions) const {
349349 if (!hasObject3dBoundingboxes ()) {
350350 XR_LOGW (" Object 3D poses is empty\n " );
351- return BoundingBox3dDataWithDt () ;
351+ return {} ;
352352 }
353353
354354 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -374,7 +374,7 @@ BoundingBox3dDataWithDt AriaDigitalTwinDataProvider::getObject3dBoundingBoxesByT
374374 object3dBoundingBoxMap, queryDynamicObjectIter->first - deviceTimeStampNs);
375375 } else {
376376 // invalid result
377- return BoundingBox3dDataWithDt () ;
377+ return {} ;
378378 }
379379}
380380
@@ -384,13 +384,13 @@ BoundingBox2dDataWithDt AriaDigitalTwinDataProvider::getObject2dBoundingBoxesByT
384384 const TimeQueryOptions& timeQueryOptions) const {
385385 if (instance2dBoundingBoxes_.find (streamId) == instance2dBoundingBoxes_.end ()) {
386386 XR_LOGW (" Camera {} has no object 2d box data \n " , streamId.getNumericName ());
387- return BoundingBox2dDataWithDt () ;
387+ return {} ;
388388 }
389389
390390 const auto & cameraBoxes = instance2dBoundingBoxes_.at (streamId);
391391 if (instance2dBoundingBoxes_.at (streamId).empty ()) {
392392 XR_LOGW (" No object 2d boxes for camera {}\n " , streamId.getNumericName ());
393- return BoundingBox2dDataWithDt () ;
393+ return {} ;
394394 }
395395
396396 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -404,7 +404,7 @@ BoundingBox2dDataWithDt AriaDigitalTwinDataProvider::getObject2dBoundingBoxesByT
404404 deviceTimeStampNs,
405405 cameraBoxes.begin ()->first ,
406406 cameraBoxes.rbegin ()->first );
407- return BoundingBox2dDataWithDt () ;
407+ return {} ;
408408 }
409409
410410 TypeBoundingBox2dMap result;
@@ -423,13 +423,13 @@ BoundingBox2dDataWithDt AriaDigitalTwinDataProvider::getSkeleton2dBoundingBoxesB
423423 const TimeQueryOptions& timeQueryOptions) const {
424424 if (instance2dBoundingBoxes_.find (streamId) == instance2dBoundingBoxes_.end ()) {
425425 XR_LOGW (" Camera {} has no skeleton 2d box data \n " , streamId.getNumericName ());
426- return BoundingBox2dDataWithDt () ;
426+ return {} ;
427427 }
428428
429429 const auto & cameraBoxes = instance2dBoundingBoxes_.at (streamId);
430430 if (instance2dBoundingBoxes_.at (streamId).empty ()) {
431431 XR_LOGW (" No skeleton 2d boxes for camera {}\n " , streamId.getNumericName ());
432- return BoundingBox2dDataWithDt () ;
432+ return {} ;
433433 }
434434
435435 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -443,7 +443,7 @@ BoundingBox2dDataWithDt AriaDigitalTwinDataProvider::getSkeleton2dBoundingBoxesB
443443 deviceTimeStampNs,
444444 cameraBoxes.begin ()->first ,
445445 cameraBoxes.rbegin ()->first );
446- return BoundingBox2dDataWithDt () ;
446+ return {} ;
447447 }
448448 TypeBoundingBox2dMap result;
449449 for (const auto & [instanceId, bbox2d] : iter->second ) {
@@ -460,7 +460,7 @@ EyeGazeWithDt AriaDigitalTwinDataProvider::getEyeGazeByTimestampNs(
460460 const TimeQueryOptions& timeQueryOptions) const {
461461 if (eyeGazes_.empty ()) {
462462 XR_LOGW (" No eye gaze data\n " );
463- return EyeGazeWithDt () ;
463+ return {} ;
464464 }
465465
466466 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -472,7 +472,7 @@ EyeGazeWithDt AriaDigitalTwinDataProvider::getEyeGazeByTimestampNs(
472472 deviceTimeStampNs,
473473 eyeGazes_.begin ()->first ,
474474 eyeGazes_.rbegin ()->first );
475- return EyeGazeWithDt () ;
475+ return {} ;
476476 }
477477 return EyeGazeWithDt (iter->second , iter->first - deviceTimeStampNs);
478478}
@@ -483,7 +483,7 @@ SegmentationDataWithDt AriaDigitalTwinDataProvider::getSegmentationImageByTimest
483483 const TimeQueryOptions& timeQueryOptions) const {
484484 if (!hasSegmentationImages ()) {
485485 XR_LOGW (" Segmentations is not available \n " );
486- return SegmentationDataWithDt () ;
486+ return {} ;
487487 }
488488
489489 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -506,7 +506,7 @@ SegmentationDataWithDt AriaDigitalTwinDataProvider::getSegmentationImageByTimest
506506 }
507507
508508 if (!segmentationData.isValid ()) {
509- return SegmentationDataWithDt () ;
509+ return {} ;
510510 }
511511
512512 return SegmentationDataWithDt (segmentationData, gtTNs - deviceTimeStampNs);
@@ -518,7 +518,7 @@ DepthDataWithDt AriaDigitalTwinDataProvider::getDepthImageByTimestampNs(
518518 const TimeQueryOptions& timeQueryOptions) const {
519519 if (!hasDepthImages ()) {
520520 XR_LOGW (" Depth Images is empty\n " );
521- return DepthDataWithDt () ;
521+ return {} ;
522522 }
523523
524524 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -540,7 +540,7 @@ DepthDataWithDt AriaDigitalTwinDataProvider::getDepthImageByTimestampNs(
540540 }
541541
542542 if (!depthData.isValid ()) {
543- return DepthDataWithDt () ;
543+ return {} ;
544544 }
545545
546546 return DepthDataWithDt (depthData, gtTNs - deviceTimeStampNs);
@@ -552,7 +552,7 @@ SyntheticDataWithDt AriaDigitalTwinDataProvider::getSyntheticImageByTimestampNs(
552552 const TimeQueryOptions& timeQueryOptions) const {
553553 if (!hasSyntheticImages ()) {
554554 XR_LOGW (" Synthetic data is empty\n " );
555- return SyntheticDataWithDt () ;
555+ return {} ;
556556 }
557557
558558 checkQueryTimestampBounds (deviceTimeStampNs);
@@ -566,7 +566,7 @@ SyntheticDataWithDt AriaDigitalTwinDataProvider::getSyntheticImageByTimestampNs(
566566 gtTNs = sensorData.imageDataAndRecord ().second .captureTimestampNs ;
567567
568568 if (!syntheticData.isValid ()) {
569- return SyntheticDataWithDt () ;
569+ return {} ;
570570 }
571571
572572 return SyntheticDataWithDt (syntheticData, gtTNs - deviceTimeStampNs);
@@ -1152,7 +1152,7 @@ Aria3dPoseDataWithDt getInterpolatedAria3dPoseAtTimestampNs(
11521152 // Check validity
11531153 if (!provider.hasAria3dPoses ()) {
11541154 XR_LOGW (" Aria 3D trajectory is empty, query will return empty result\n " );
1155- return Aria3dPoseDataWithDt () ;
1155+ return {} ;
11561156 }
11571157
11581158 const Aria3dPoseDataWithDt poseBefore =
@@ -1197,7 +1197,7 @@ BoundingBox3dDataWithDt getInterpolatedObject3dBoundingBoxesAtTimestampNs(
11971197 // Check validity
11981198 if (!provider.hasObject3dBoundingboxes ()) {
11991199 XR_LOGW (" Object 3D poses is empty, query will return empty result\n " );
1200- return BoundingBox3dDataWithDt () ;
1200+ return {} ;
12011201 }
12021202
12031203 const BoundingBox3dDataWithDt objectsBefore =
0 commit comments