Skip to content

Commit

Permalink
Merge pull request #443 from mbeutelspacher/fix/scan_unifier_negative…
Browse files Browse the repository at this point in the history
…_angle_increment

fix(cob_scan_unifier): fix handeling of negative angle_increments
  • Loading branch information
fmessmer authored Dec 14, 2023
2 parents 1f45be2 + 30e9b22 commit 4d3eb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cob_scan_unifier/src/scan_unifier_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool ScanUnifierNode::unifyLaserScans(const std::vector<sensor_msgs::LaserScan::
ROS_DEBUG("Creating message header");
unified_scan.header = current_scans.front()->header;
unified_scan.header.frame_id = frame_;
unified_scan.angle_increment = current_scans.front()->angle_increment;
unified_scan.angle_increment = std::abs(current_scans.front()->angle_increment);
unified_scan.angle_min = -M_PI + unified_scan.angle_increment*0.01;
unified_scan.angle_max = M_PI - unified_scan.angle_increment*0.01;
unified_scan.time_increment = current_scans.front()->time_increment;
Expand Down

0 comments on commit 4d3eb30

Please sign in to comment.