예제 #1
0
        IEnumerator SetLidarConfig(float offset_x, float offset_y, float offset_z, float rot_x,
                                   int degPerSweepInc, float degAngDown, float degAngDelta, float maxRange, float noise, int numSweepsLevels)
        {
            if (lidar != null)
            {
                if (!lidar.gameObject.activeInHierarchy)
                {
                    lidar.gameObject.SetActive(true);
                }

                lidar.SetConfig(offset_x, offset_y, offset_z, rot_x, degPerSweepInc, degAngDown, degAngDelta, maxRange, noise, numSweepsLevels);
            }

            yield return(null);
        }