Class SimulatedScanner25D


  • public class SimulatedScanner25D
    extends SimulatedSensor

    a simulated range scanner for 2.5D images, that is basically
    pointclouds without color information.
    • Constructor Detail

      • SimulatedScanner25D

        public SimulatedScanner25D​(long cPtr,
                                   boolean cMemoryOwn)
      • SimulatedScanner25D

        public SimulatedScanner25D​(java.lang.String name,
                                   FramePtr frame,
                                   FrameGrabber25DPtr framegrabber)
        constructor
        Parameters:
        name - [in] name of this simulated scanner
        frame - [in] the frame the scanner is attached to.
        framegrabber - [in] the framegrabber used for grabbing 2.5D images
      • SimulatedScanner25D

        public SimulatedScanner25D​(java.lang.String name,
                                   java.lang.String desc,
                                   FramePtr frame,
                                   FrameGrabber25DPtr framegrabber)
        constructor
        Parameters:
        name - [in] name of this simulated scanner
        desc - [in] description of this scanner
        frame - [in] the frame the scanner is attached to.
        framegrabber - [in] the framegrabber used for grabbing 2.5D images
    • Method Detail

      • setFrameRate

        public void setFrameRate​(double rate)
        set the framerate in frames per sec.
        Parameters:
        rate - [in] frames per sec
      • open

        public void open()
      • isOpen

        public boolean isOpen()
      • close

        public void close()
      • acquire

        public void acquire()
      • isScanReady

        public boolean isScanReady()
      • getFrameRate

        public double getFrameRate()
      • update

        public void update​(Simulator.UpdateInfo info,
                           State state)
        Description copied from class: SimulatedSensor
        steps the the SimulatedSensor with time dt and saves any state
        changes in state.
        Overrides:
        update in class SimulatedSensor
        Parameters:
        info - [in] update information related to the time step.
        state - [out] changes of the SimulatedSensor is saved in state.
      • reset

        public void reset​(State state)
        Description copied from class: SimulatedSensor
        Resets the state of the SimulatedSensor to that of state
        Overrides:
        reset in class SimulatedSensor
        Parameters:
        state - [in] the state that the sensor is reset too.
      • getSensorHandle

        public SensorPtr getSensorHandle​(SimulatorPtr instance)
        get a handle to controlling an instance of the simulated sensor in a specific
        simulator
        Overrides:
        getSensorHandle in class SimulatedSensor
        Parameters:
        instance - [in] the simulator in which the handle is active