Velodyne Acoustics HDL-64E S2.1 user manual APPendix f duaL tWo Point caLiBration MethodoLoGy

Page 34

aPPendix f: duaL tWo Point caLiBration MethodoLoGy

HDL-64E S2 and S2.1 User’s Manual

float cosRotCorrection = cal->getCosRotCorrection(); float sinRotCorrection = cal->getSinRotCorrection();

float cosRotAngle = rotCosTable[data->position]*cosRotCorrection + rotSinTable[data->position]*sinRotCorrection;

float sinRotAngle = rotSinTable[data->position]*cosRotCorrection - rotCosTable[data->position]*sinRotCorrection;

float hOffsetCorr = cal->getHorizOffsetCorrection()/VLS_DIM_SCALE; float vOffsetCorr = cal->getVertOffsetCorrection()/VLS_DIM_SCALE;

;//Convert distance to X-Y plane, formular is: xyDistance = distance * cosVertAngle float xyDistance = distance * cosVertAngle

// Calculate temporal X, use absolute value.

float xx = xyDistance * sinRotAngle - hOffsetCorr * cosRotAngle + pos.getX(); // Calculate temporal Y, use absolute value

float yy = xyDistance * cosRotAngle + hOffsetCorr * sinRotAngle + pos.getY(); if (xx<0) xx=-xx;

if (yy<0) yy=-yy;

//Get 2points calibration values,Linear interpolation to get distance correction for X and Y, that means distance correction use different value at different distance

float distanceCorrX = (cal->getDistCorrection()-cal->getDistCorrectionX())*(xx- 240)/(2504-240)+cal->getDistCorrectionX();

float distanceCorrY = (cal->getDistCorrection()-cal->getDistCorrectionY())*(yy- 193)/(2504-193)+cal->getDistCorrectionY(); //fix in V2.0

//Unit convert: cm converts to meter distance1 /= VLS_DIM_SCALE; distanceCorrX /= VLS_DIM_SCALE; distanceCorrY /= VLS_DIM_SCALE;

//Measured distance add distance correction in X. distance = distance1+distanceCorrX;

xyDistance = distance * cosVertAngle; // Convert to X-Y plane

//Calculate X coordinate

coords[idx].setX(xyDistance * sinRotAngle - hOffsetCorr * cosRotAngle + pos.getX()/VLS_DIM_SCALE);

//Measured distance add distance correction in Y. distance = distance1+distanceCorrY;

xyDistance = distance * cosVertAngle; //Convert to X-Y plane

//Calculate Y coordinate

coords[idx].setY(xyDistance * cosRotAngle + hOffsetCorr * sinRotAngle + pos.getY()/VLS_DIM_SCALE);

//Calculate Z coordinate, formula is : setZ(distance * sinVertAngle + vOffsetCorr

coords[idx].setZ(distance * sinVertAngle + vOffsetCorr + pos.getZ()/VLS_DIM_SCALE);

}

[ 31 ]

Image 34 Contents
HDL-64E S2 and S2.1 E R ’ S M a N U a L a N DReading Calibration and Sensor Parameter Data Front/Back Mounting Side Mounting Top Mounting WiringBox Last Six Bytes ExamplesPage S2.1 IntroductionBox PrinciPLes of oPeration HDL-64E S2 design overviewInstaLLation oVerVieW Front/Back MountingSide Mounting Side HDL mounting illustrationTop Mounting Top HDL mounting illustrationUse the Included Point-cloud Viewer WiringUsaGe Develop Your Own Application-specific Point-cloud ViewerDb.xml Calibration Parameters Establish communication with the sensorParameter Unit Description Values Sample Batch File .bat Change Run-Time ParametersSample SERCMD.txt file Available commands Command Description ParametersControl Spin Rate Limit Horizontal FOV Data CollectedUpload Calibration Data Define Sensor Memory IP Source and Destination AddressesDestination External GPS Time SynchronizationGPS Equipment GPS Connection Timestamp Info Accuracy Packet Format and Status Byte for GPS Time StampingTime Stamping Accuracy Rules Laser Firing Sequence and TimingFirMWare uPdate HDL software update screen captureIsometric View APPendix a MechanicaL draWinGsAPPendix B WirinG diaGraM APPendix c diGitaL sensor recorder dsr InstallDigital Sensor Recorder DSR APPendix c diGitaL sensor recorder dsr Click the Record buttonShift ZoomAxis Rotation RotationalAPPendix d MatLaB saMPLe code APPendix d MatLaB saMPLe code Status Type Ascii Value Interpretation and Scaling APPendix e data PacKet forMat Data Packet FormatFirmware version 4.07 sheet 1 Firmware version 4.07 sheet 2 Firmware version 4.07 sheet 3 Last Six Bytes Examples 40 = Ver Packet #7657 Packet #7658Dual Two Point Calibration Methodology and Code Samples APPendix f duaL tWo Point caLiBration MethodoLoGyCoordinate Calculation Algorithm Sample Code APPendix f duaL tWo Point caLiBration MethodoLoGy Calibration Window Intensity Compensation vs DistanceIntensity Value Corrected by Distance Code APPendix f duaL tWo Point caLiBration MethodoLoGy APPendix G ethernet transit tiMinG taBLe HDL-64E Ethernet Timing Table OverviewHow to use this table The table represents a sensor Laser Numbers 0-7 & 32-39 Lower,UpperAPPendix h Laser and detector arranGeMent APPendix i anGuLar resoLution RPM RPSProblem Resolution TrouBLeshootinGSerVice and Maintenance SPecifications Velodyne LiDAR, Inc