Class SimulatedScanner2D


  • public class SimulatedScanner2D
    extends SimulatedSensor

    Simulated scanner in 2D.
    • Constructor Detail

      • SimulatedScanner2D

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

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

        public SimulatedScanner2D​(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 sensor frame.
        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.
      • getScanner2DSensor

        public Scanner2DPtr getScanner2DSensor​(Simulator instance)
        returns a handle to what represents a statefull interface.
        The handle will be locked to the simulator
        Returns:
      • getAngularRange

        public double getAngularRange()
      • getMeasurementCount

        public long getMeasurementCount()