Velodyne DIGITAL DRIVE - REV G Dokumentacja Strona 44

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 54
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 43
HDL64ES3
High DefinitionLiDARSensor Page44
Velodyne,Inc.
©
2013
63HDL64ES3REV G
float xyDistance = distance * cosVertAngle;// — vOffsetCorr * sinVertAngle;
float xx = xyDistance * sinRotAngle;// — hOffsetCorr * cosRotAngle + pos.getX();
float yy = xyDistance * cosRotAngle;// + hOffsetCorr * sinRotAngle + pos.getY();
if (xx<0) xx=—xx;
if (yy<0) yy=—yy;
float distanceCorrX = (cal—>getDistCorrection()—cal—>getDistCorrectionX())*(xx—
240)/(2504—240)+cal—>getDistCorrectionX();
float distanceCorrY = (cal—>getDistCorrection()—cal—>getDistCorrectionY())*(yy—
l93)/(2504—l93)+cal—>getDistCorrectionY();
if (distancel > 2500) // if larger than 25m, no interpolation.
{ distanceCorrX = cal—>getDistCorrection();
distanceCorrY = distanceCorrX ;
}
distancel /= VLS_DIM_SCALE;
distanceCorrX /= VLS_DIM_SCALE;
distanceCorrY /= VLS_DIM_SCALE;
distance = distancel+distanceCorrX;
xyDistance = distance * cosVertAngle;// — vOffsetCorr * sinVertAngle;
coords[idx].setX(xyDistance * sinRotAngle — hOffsetCorr * cosRotAngle +
pos.getX()/VLS_DIM_SCALE);
distance = distancel+distanceCorrY;
xyDistance = distance * cosVertAngle;// — vOffsetCorr * sinVertAngle;
coords[idx].setY(xyDistance * cosRotAngle + hOffsetCorr * sinRotAngle +
pos.getY()/VLS_DIM_SCALE);
//coords[idx].setX(xyDistance * sinRotAngle — hOffsetCorr * cosRotAngle +
pos.getX()/VLS_DIM_SCALE);
//coords[idx].setY(xyDistance * cosRotAngle + hOffsetCorr * sinRotAngle +
pos.getY()/VLS_DIM_SCALE);
// coords[idx].setZ(distance * sinVertAngle + vOffsetCorr * cosVertAngle +
pos.getZ()/VLS_DIM_SCALE);
coords[idx].setZ(distance * sinVertAngle + vOffsetCorr + pos.getZ()/VLS_DIM_SCALE);
}
Przeglądanie stron 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 53 54

Komentarze do niniejszej Instrukcji

Brak uwag