Class DimensionsModifier
- 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 perceivedVehicleObject
s. 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 Summary
Constructors Constructor Description DimensionsModifier(RandomNumberGenerator rng)
DimensionsModifier(RandomNumberGenerator rng, double lengthDeviation, double widthDeviation, double heightDeviation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends SpatialObject>
List<T>apply(PerceptionModuleOwner owner, List<T> spatialObjects)
Applies the implemented filter/modifier.
-
-
-
Constructor Detail
-
DimensionsModifier
public DimensionsModifier(RandomNumberGenerator rng, double lengthDeviation, double widthDeviation, double heightDeviation)
-
DimensionsModifier
public DimensionsModifier(RandomNumberGenerator rng)
-
-
Method Detail
-
apply
public <T extends SpatialObject> List<T> apply(PerceptionModuleOwner owner, List<T> spatialObjects)
Description copied from interface:PerceptionModifier
Applies the implemented filter/modifier.- Specified by:
apply
in interfacePerceptionModifier
- Returns:
- the filtered/modified list
-
-