Skip to content
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(object_lanelet_filter): add velocity direction based object lanelet filter #7107

Merged
merged 5 commits into from
May 30, 2024

feat: skip orientation unavailable objects

81d0024
Select commit
Loading
Failed to load commit list.
Merged

feat(object_lanelet_filter): add velocity direction based object lanelet filter #7107

feat: skip orientation unavailable objects
81d0024
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded May 23, 2024 in 44s

CodeScene PR Check

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Details

🚩 Declining Code Health (highest to lowest):

  • Excess Number of Function Arguments object_lanelet_filter.cpp: ObjectLaneletFilterNode::filterObject

✅ Improving Code Health:

  • Complex Method object_lanelet_filter.cpp: ObjectLaneletFilterNode::objectCallback

Annotations

Check notice on line 115 in perception/detected_object_validation/src/object_lanelet_filter.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ No longer an issue: Complex Method

ObjectLaneletFilterNode::objectCallback is no longer above the threshold for cyclomatic complexity. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check notice on line 177 in perception/detected_object_validation/src/object_lanelet_filter.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

ℹ New issue: Complex Method

ObjectLaneletFilterNode::filterObject has a cyclomatic complexity of 11, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check warning on line 177 in perception/detected_object_validation/src/object_lanelet_filter.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

❌ New issue: Excess Number of Function Arguments

ObjectLaneletFilterNode::filterObject has 5 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.