Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
efahnestock committed Dec 16, 2024
1 parent ac5cbbc commit 5b2bc4e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ SpectacularDataProviderInterface::SpectacularDataProviderInterface(const std::st
}
ROBOT_CHECK(final_k_ <= spec_log_.num_frames());

ROBOT_CHECK(final_k_ > current_k_, "Value for final_k is smaller than value for current_k (initial value)",
final_k_, current_k_);
ROBOT_CHECK(final_k_ > current_k_,
"Value for final_k is smaller than value for current_k (initial value)", final_k_,
current_k_);
}

SpectacularDataProviderInterface::~SpectacularDataProviderInterface() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SpectacularDataProviderInterface : public VIO::DataProviderInterface {
std::string dataset_path_;

VIO::FrameId current_k_;
VIO::FrameId final_k_; // end frame
VIO::FrameId final_k_; // end frame

//! Flag to signal if the IMU data has been sent to the VIO pipeline
bool is_imu_data_sent_ = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ bool compare_imu_samples(const robot::experimental::overhead_matching::ImuSample
const VIO::ImuMeasurement& kimera_imu) {
// timestamp
if (kimera_imu.timestamp_ != robot_imu.time_of_validity.time_since_epoch().count()) {
fmt::print("Kimera timestamp: {} | robot timestamp: {}", kimera_imu.timestamp_, robot_imu.time_of_validity.time_since_epoch().count());
fmt::print("diff {}", robot_imu.time_of_validity.time_since_epoch().count() - kimera_imu.timestamp_);
fmt::print("Kimera timestamp: {} | robot timestamp: {}", kimera_imu.timestamp_,
robot_imu.time_of_validity.time_since_epoch().count());
fmt::print("diff {}",
robot_imu.time_of_validity.time_since_epoch().count() - kimera_imu.timestamp_);
return false;
}
// accel and gyro values
Expand Down

0 comments on commit 5b2bc4e

Please sign in to comment.