Skip to content

Commit

Permalink
Restored gyro_bias_pub_, which had been deleted due to a mistake
Browse files Browse the repository at this point in the history
Signed-off-by: Shintaro Sakoda <[email protected]>
  • Loading branch information
SakodaShintaro committed Oct 12, 2023
1 parent b012405 commit b762f90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sensing/imu_corrector/src/gyro_bias_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ void GyroBiasEstimator::callback_imu(const Imu::ConstSharedPtr imu_msg_ptr)
gyro.vector = transform_vector3(imu_msg_ptr->angular_velocity, *tf_imu2base_ptr);

Check warning on line 78 in sensing/imu_corrector/src/gyro_bias_estimator.cpp

View check run for this annotation

Codecov / codecov/patch

sensing/imu_corrector/src/gyro_bias_estimator.cpp#L77-L78

Added lines #L77 - L78 were not covered by tests

gyro_all_.push_back(gyro);

Check warning on line 80 in sensing/imu_corrector/src/gyro_bias_estimator.cpp

View check run for this annotation

Codecov / codecov/patch

sensing/imu_corrector/src/gyro_bias_estimator.cpp#L80

Added line #L80 was not covered by tests

// Publish results for debugging
if (gyro_bias_ != std::nullopt) {
Vector3Stamped gyro_bias_msg;

gyro_bias_msg.header.stamp = this->now();
gyro_bias_msg.vector = gyro_bias_.value();

gyro_bias_pub_->publish(gyro_bias_msg);
}
}

void GyroBiasEstimator::callback_pose(const PoseWithCovarianceStamped::ConstSharedPtr pose_msg_ptr)

Check warning on line 93 in sensing/imu_corrector/src/gyro_bias_estimator.cpp

View check run for this annotation

Codecov / codecov/patch

sensing/imu_corrector/src/gyro_bias_estimator.cpp#L93

Added line #L93 was not covered by tests
Expand Down

0 comments on commit b762f90

Please sign in to comment.