Skip to content

Commit

Permalink
Build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
malban committed Jul 28, 2022
1 parent e8bd9b1 commit b352c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laser_scan_matcher/src/laser_scan_matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ void LaserScanMatcher::processScan(LDP& curr_ldp_scan, const ros::Time& time)
yaw_cov = gsl_matrix_get(output_.cov_x_m, 2, 2);

// rotate xy covariance from the keyframe into odom frame
auto rotation = getLaserRotation(f2b_kf_);
auto rotation = getLaserRotation(keyframe_base_in_fixed_);
xy_cov = rotation * xy_cov * rotation.transpose();
}
else {
Expand Down Expand Up @@ -859,7 +859,7 @@ void LaserScanMatcher::createTfFromXYTheta(
}

Eigen::Matrix2f LaserScanMatcher::getLaserRotation(const tf::Transform& odom_pose) const {
tf::Transform laser_in_fixed = odom_pose * laser_to_base_;
tf::Transform laser_in_fixed = odom_pose * laser_from_base_;
tf::Matrix3x3 fixed_from_laser_rot(laser_in_fixed.getRotation());
double r,p,y;
fixed_from_laser_rot.getRPY(r, p, y);
Expand Down

0 comments on commit b352c8e

Please sign in to comment.