-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(perception): Use 2D bounding boxes for Occlusion Modifiers #343
Conversation
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
…further tested) Signed-off-by: Moritz Schweppenhäuser <[email protected]>
…roperly implemented * BoundingBoxOcclusionModifier now evaluates if points are hidden behind other bounding boxes * WallOcclusionModifier now uses bounding boxes to see if objects are hidden Signed-off-by: Moritz Schweppenhäuser <[email protected]>
…ier constructor Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor comments
...d/application/ambassador/simulation/perception/errormodels/BoundingBoxOcclusionModifier.java
Outdated
Show resolved
Hide resolved
...d/application/ambassador/simulation/perception/errormodels/BoundingBoxOcclusionModifier.java
Outdated
Show resolved
Hide resolved
...d/application/ambassador/simulation/perception/errormodels/BoundingBoxOcclusionModifier.java
Outdated
Show resolved
Hide resolved
...d/application/ambassador/simulation/perception/errormodels/BoundingBoxOcclusionModifier.java
Outdated
Show resolved
Hide resolved
...d/application/ambassador/simulation/perception/errormodels/BoundingBoxOcclusionModifier.java
Outdated
Show resolved
Hide resolved
...osaic/fed/application/ambassador/simulation/perception/index/objects/TrafficLightObject.java
Outdated
Show resolved
Hide resolved
...osaic/fed/application/ambassador/simulation/perception/index/objects/VehicleBoundingBox.java
Show resolved
Hide resolved
...osaic/fed/application/ambassador/simulation/perception/index/objects/VehicleBoundingBox.java
Outdated
Show resolved
Hide resolved
...pse/mosaic/fed/application/ambassador/simulation/perception/index/objects/VehicleObject.java
Outdated
Show resolved
Hide resolved
...osaic/fed/application/ambassador/simulation/perception/index/objects/VehicleBoundingBox.java
Outdated
Show resolved
Hide resolved
* renaming of occlusion modifiers Signed-off-by: Moritz Schweppenhäuser <[email protected]>
* improved a lot of documentation * improved the place where bounding boxes are calculated * extracted method in BoundingBoxOcclusion Signed-off-by: Moritz Schweppenhäuser <[email protected]>
* adjusted names of perception modifiers Signed-off-by: Moritz Schweppenhäuser <[email protected]>
I just noticed that you have 2 new spotbugs warnings :< |
Shame on me! I will try to fix it ASAP. |
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
…ects Signed-off-by: Moritz Schweppenhäuser <[email protected]>
…ects -> made VehicleIndex no longer implement Serializable Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
* removed unnecessary method getNumberOfTrafficLights in TrafficObjectIndex Signed-off-by: Moritz Schweppenhäuser <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to create an MR on Extended side.
...ipse/mosaic/fed/application/ambassador/simulation/perception/CentralPerceptionComponent.java
Outdated
Show resolved
Hide resolved
...ipse/mosaic/fed/application/ambassador/simulation/perception/CentralPerceptionComponent.java
Show resolved
Hide resolved
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
Description
VehicleObject
, we can now calculate the bounding boxes (for now only 2D)SpatialObjectBoundingBox
interface has been added which now part of aSpatialObject
and there exists two implementations:PointBoundingBox
-> for objects that shouldn't be treated as having a bounding box, their only "corner" will be the given positionVehicleBoundingBox
-> for now used for vehicles, a rotated rectangle dependent on the heading of a vehicle.Below are some examples of changed behavior using vehicles from the unit test:
Vehicle Occlusion:
Wall Occlusion:
Issue(s) related to this PR
Affected parts of the online documentation
Definition of Done
Prerequisites
Required
type(scope): description
(in the style of Conventional Commits)enhancement
, orbugfix
)origin/main
has been merged into your Fork.Requested (can be enforced by maintainers)
Special notes to reviewer