Class SimpleOcclusion
java.lang.Object
org.eclipse.mosaic.lib.perception.modifier.SimpleOcclusion
- All Implemented Interfaces:
PerceptionModifier
This
PerceptionModifier tries to emulate the behaviour of occlusion.
The general approach is to look at the angle of all vehicles that are
perceived closer to the current vehicle.
If any of those previously perceived vehicles has an angle smaller than
defined by getOcclusionAngle(double, double, double) the current vehicle will not be perceived.
Additionally, a linear function between minDetectionAngle and maxDetectionAngle
is fitted, which makes it necessary for further vehicles to have a larger "free" angle.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleOcclusion(double minDetectionAngle, double maxDetectionAngle) Constructor for theSimpleOcclusion. -
Method Summary
Modifier and TypeMethodDescription<T extends SpatialObject<?>>
List<T>apply(PerceptionEgo ego, List<T> spatialObjects) Applies the implemented filter/modifier.
-
Constructor Details
-
SimpleOcclusion
public SimpleOcclusion(double minDetectionAngle, double maxDetectionAngle) Constructor for theSimpleOcclusion.- Parameters:
minDetectionAngle- the "free" angle that will be required by closest vehicles [degree]maxDetectionAngle- the "free" angle that will be required by furthest vehicles [degree]
-
-
Method Details
-
apply
Description copied from interface:PerceptionModifierApplies the implemented filter/modifier.- Specified by:
applyin interfacePerceptionModifier- Returns:
- the filtered/modified list
-