Skip to content
/ csm Public
forked from AndreaCensi/csm

Commit

Permalink
Suppress strange FOV check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mruizve committed Aug 12, 2020
1 parent 07ed911 commit 7e5d4ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/csm/laser_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ int ld_valid_fields(LDP ld) {
ld->min_theta, ld->max_theta);
return 0;
}
double min_fov = deg2rad(20.0);
double max_fov = 2.01 * M_PI;
double fov = ld->max_theta - ld->min_theta;
if( fov < min_fov || fov > max_fov) {
sm_error("Strange FOV: %f rad = %f deg \n", fov, rad2deg(fov));
return 0;
}
//double min_fov = deg2rad(20.0);
//double max_fov = 2.01 * M_PI;
//double fov = ld->max_theta - ld->min_theta;
//if( fov < min_fov || fov > max_fov) {
// sm_error("Strange FOV: %f rad = %f deg \n", fov, rad2deg(fov));
// return 0;
//}
if(fabs(ld->min_theta - ld->theta[0]) > 1e-8) {
sm_error("Min_theta (%f) should be theta[0] (%f)\n",
ld->min_theta, ld->theta[0]);
Expand Down

0 comments on commit 7e5d4ca

Please sign in to comment.