Skip to content

Commit

Permalink
Merge pull request #1130 from prclibo/hdl_fix
Browse files Browse the repository at this point in the history
fixed hdl grabber according to velodyne manual
  • Loading branch information
taketwo committed Mar 9, 2015
2 parents 37c60c4 + 922b257 commit d1ea2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/src/hdl_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ pcl::HDLGrabber::computeXYZI (pcl::PointXYZI& point, int azimuth,

distanceM += correction.distanceCorrection;

double xyDistance = distanceM * correction.cosVertCorrection - correction.sinVertOffsetCorrection;
double xyDistance = distanceM * correction.cosVertCorrection;

point.x = static_cast<float> (xyDistance * sinAzimuth - correction.horizontalOffsetCorrection * cosAzimuth);
point.y = static_cast<float> (xyDistance * cosAzimuth + correction.horizontalOffsetCorrection * sinAzimuth);
point.z = static_cast<float> (distanceM * correction.sinVertCorrection + correction.cosVertOffsetCorrection);
point.z = static_cast<float> (distanceM * correction.sinVertCorrection + correction.verticalOffsetCorrection);
point.intensity = static_cast<float> (laserReturn.intensity);
}

Expand Down

0 comments on commit d1ea2fd

Please sign in to comment.