docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method CompareObservation

    CompareObservation(ISensor, float[], out string)

    Generates the observations for the provided sensor, and returns true if they equal the expected values. If they are unequal, errorMessage is also set. This should not generally be used in production code. It is only intended for simplifying unit tests.

    Declaration
    public static bool CompareObservation(ISensor sensor, float[] expected, out string errorMessage)
    Parameters
    Type Name Description
    ISensor sensor
    float[] expected
    string errorMessage
    Returns
    Type Description
    bool

    CompareObservation(ISensor, float[,,], out string)

    Generates the observations for the provided sensor, and returns true if they equal the expected values. If they are unequal, errorMessage is also set. This should not generally be used in production code. It is only intended for simplifying unit tests.

    Declaration
    public static bool CompareObservation(ISensor sensor, float[,,] expected, out string errorMessage)
    Parameters
    Type Name Description
    ISensor sensor
    float[,,] expected
    string errorMessage
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023