Skip to content

Commit

Permalink
Merge pull request #82 from malban/build-fixes
Browse files Browse the repository at this point in the history
Build fixes for ros1
  • Loading branch information
130s committed Feb 19, 2023
2 parents 3f80919 + b352c8e commit 62833e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laser_scan_matcher/src/laser_scan_matcher.cpp
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 62833e8

Please sign in to comment.