PoseExtrapolator::GetLastExtrapolatedTime (#626)

This prepares the API for #623 and #616.
master
gaschler 2017-11-03 11:56:31 +01:00 committed by Wolfgang Hess
parent 9be15466d3
commit 5a3bb14083
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,10 @@ common::Time PoseExtrapolator::GetLastPoseTime() const {
return timed_pose_queue_.back().time; return timed_pose_queue_.back().time;
} }
common::Time PoseExtrapolator::GetLastExtrapolatedTime() const {
return GetLastPoseTime();
}
void PoseExtrapolator::AddPose(const common::Time time, void PoseExtrapolator::AddPose(const common::Time time,
const transform::Rigid3d& pose) { const transform::Rigid3d& pose) {
if (imu_tracker_ == nullptr) { if (imu_tracker_ == nullptr) {

View File

@ -47,6 +47,7 @@ class PoseExtrapolator {
// Returns the time of the last added pose or Time::min() if no pose was added // Returns the time of the last added pose or Time::min() if no pose was added
// yet. // yet.
common::Time GetLastPoseTime() const; common::Time GetLastPoseTime() const;
common::Time GetLastExtrapolatedTime() const;
void AddPose(common::Time time, const transform::Rigid3d& pose); void AddPose(common::Time time, const transform::Rigid3d& pose);
void AddImuData(const sensor::ImuData& imu_data); void AddImuData(const sensor::ImuData& imu_data);