diff --git a/source/RobotAPI/libraries/armem/client/query/query_fns.h b/source/RobotAPI/libraries/armem/client/query/query_fns.h index f08ae23bc6b8b6bc7fb4ed99f9ac51ed570f556c..35203a014fa423cec4f8ef0f4d09759bc54385a9 100644 --- a/source/RobotAPI/libraries/armem/client/query/query_fns.h +++ b/source/RobotAPI/libraries/armem/client/query/query_fns.h @@ -156,7 +156,7 @@ namespace armarx::armem::client::query_fns inline std::function<void(query::SnapshotSelector&)> - beforeTime(Time time, long nElements) + beforeTime(Time time, long nElements = 1) { return [ = ](query::SnapshotSelector & selector) { diff --git a/source/RobotAPI/libraries/armem/client/query/selectors.h b/source/RobotAPI/libraries/armem/client/query/selectors.h index a1c314232099438f9498fbabb763e52c00abe862..df642ded9a70ea2688eaca5865f730e8e99ee6de 100644 --- a/source/RobotAPI/libraries/armem/client/query/selectors.h +++ b/source/RobotAPI/libraries/armem/client/query/selectors.h @@ -28,7 +28,7 @@ namespace armarx::armem::client::query SnapshotSelector& atTime(Time timestamp); SnapshotSelector& atTimeApprox(Time timestamp, Duration eps); - SnapshotSelector& beforeTime(Time timestamp, long maxEntries); + SnapshotSelector& beforeTime(Time timestamp, long maxEntries = 1); SnapshotSelector& beforeOrAtTime(Time timestamp); SnapshotSelector& timeRange(Time min, Time max);