Skip to content

Commit

Permalink
Merge branch 'Field-Robotics-Japan:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
RyodoTanaka authored Feb 13, 2024
2 parents b6ffed0 + 9de5f80 commit 3486c1d
Show file tree
Hide file tree
Showing 10 changed files with 345,669 additions and 26 deletions.
3 changes: 1 addition & 2 deletions Assets/UnitySensors/Editor/LiDAR/ScanPatternGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ private void GenerateFromSpecification()
int index = 0;
for (int azimuth = 0; azimuth < _azimuthAngleResolution; azimuth++)
{
if (_direction == Direction.CCW) azimuth = _azimuthAngleResolution - 1 - azimuth;
float azimuthAngle = Mathf.Lerp(_minAzimuthAngle, _maxAzimuthAngle, (float)azimuth / _azimuthAngleResolution);
float azimuthAngle = Mathf.Lerp(_minAzimuthAngle, _maxAzimuthAngle, (float)(_direction == Direction.CW ? azimuth : _azimuthAngleResolution - 1 - azimuth) / _azimuthAngleResolution);
foreach (float zenithAngle in _zenithAngles)
{
scan.scans[index] = Quaternion.Euler(-zenithAngle, azimuthAngle, 0) * Vector3.forward;
Expand Down
Loading

0 comments on commit 3486c1d

Please sign in to comment.