docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PhotosensorController

    A PhotosensorController is a device that controls a non-rotating photosensor to throw laser beams to measure the distance and/or intensity.

    Inheritance
    object
    NodeRuntime
    PhotosensorController
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    NodeRuntime.OnPortRemoved(string)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Assembly: solution.dll
    Syntax
    [NodeCategory("Controller", "Photosensor Controller", NodeTick.Synchronous, (LifeCycle)0, 0, NodeMode.Standard, false)]
    public class PhotosensorController : NodeRuntime

    Fields

    Name Description
    _relativeTimeOfFirstTrigger

    The time in seconds when the first trigger in the next sampling request occurs.

    _samplingRequest

    This structure is used to send sampling request to a photosensor

    frameHeight
    frameRate
    frameWidth
    laserConfig

    Contain all information relative to the laser configuration (orientation, offsets and firing sequence)

    laserConfigBinding

    Define where the beam are positioned, oriented and their firing sequence.

    samplingRate
    samplingRequest

    Properties

    Name Description
    BeamCount

    The number of fired beams per trigger in the trigger sequence.

    FramePeriod

    The elapsed time in seconds between consecutive frames (triggers).

    SamplingRate

    The number of samples per second.

    Methods

    Name Description
    BuildSamplingRequest(double)

    Prepare the sampling request for the next simulation sampling.

    Disable()

    Disable change event on ports

    Enable(ClockState)

    Initialize the controller and enable change event on beams port.

    FindLastTriggerIndex(double)

    Determines the index of the last (inclusive) trigger to occur strictly before the given time.

    OnLaserConfigChanged(object, EventArgs)

    Indicates the laser configuration has changed for the next OnTick call.

    OnTick(double, double, ClockState, Signal)

    OnTick event received from the scheduler for this node waveform. This is received for every rising edge of the waveform at the frequency configured in the scheduler.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)