Skip to content
Snippets Groups Projects
Commit cf76538c authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

replace min/max by fmin/fmax

parent 5f0a3762
No related branches found
No related tags found
No related merge requests found
...@@ -67,8 +67,8 @@ icpOutput ICP::align(const LaserScan &_current_ls, const LaserScan &_ref_ls, con ...@@ -67,8 +67,8 @@ icpOutput ICP::align(const LaserScan &_current_ls, const LaserScan &_ref_ls, con
sm_params csm_input{}; sm_params csm_input{};
sm_result csm_output{}; sm_result csm_output{};
csm_input.min_reading = max(_current_scan_params.range_min_, _ref_scan_params.range_min_); csm_input.min_reading = fmax(_current_scan_params.range_min_, _ref_scan_params.range_min_);
csm_input.max_reading = min(_current_scan_params.range_max_, _ref_scan_params.range_max_); csm_input.max_reading = fmin(_current_scan_params.range_max_, _ref_scan_params.range_max_);
csm_input.sigma = _ref_scan_params.range_std_dev_; csm_input.sigma = _ref_scan_params.range_std_dev_;
csm_input.laser_ref = laser_scan_ref.laser_data; csm_input.laser_ref = laser_scan_ref.laser_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment