java.lang.Object
org.eclipse.mosaic.fed.application.ambassador.simulation.perception.errormodels.DimensionsModifier
All Implemented Interfaces:
PerceptionModifier

public class DimensionsModifier extends Object implements PerceptionModifier
Adjusts the dimensions of perceived VehicleObjects. Since the position of vehicles is assumed to refer to their front bumper instead of bounding box center, their position is adjusted accordingly when the length of the vehicle was changed.
  • Constructor Details

    • DimensionsModifier

      public DimensionsModifier(RandomNumberGenerator rng, double lengthDeviation, double widthDeviation, double heightDeviation)
      Constructor for DimensionsModifier given the sigma values for the gaussian distribution applied to different dimensions.
      Parameters:
      rng - RandomNumberGenerator used to generate pseudo-random gaussian numbers
      lengthDeviation - sigma value for the length
      widthDeviation - sigma value for the width
      heightDeviation - sigma value for the height
    • DimensionsModifier

      public DimensionsModifier(RandomNumberGenerator rng)
      Constructor for DimensionsModifier using default values of 0.2 for the sigma value of the dimensions
      Parameters:
      rng -
  • Method Details