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

perf(velodyne): remove mtqueue #276

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Feb 20, 2025

PR Type

  • Improvement
  • Bug fix

Related Links

Description

Does what the title says.

Reasons for this change:

  • The multithreaded queue is not needed (receive buffers in the network stack take care of arriving data while decoding).
  • The decoder thread had no mechanism for gracefully stopping, thus causing an exception on exit
  • The above excption caused our smoke tests to fail

Review Procedure

Pre-Review Checklist for the PR Author

PR Author should check the checkboxes below when creating the PR.

  • Assign PR to reviewer

Checklist for the PR Reviewer

Reviewers should check the checkboxes below before approval.

  • Commits are properly organized and messages are according to the guideline
  • (Optional) Unit tests have been written for new behavior
  • PR title describes the changes

Post-Review Checklist for the PR Author

PR Author should check the checkboxes below before merging.

  • All open points are addressed and tracked via issues or tickets

CI Checks

  • Build and test for PR: Required to pass before the merge.

@mojomex mojomex self-assigned this Feb 20, 2025
@mojomex mojomex changed the title perf(velodyne) remove mtqueue perf(velodyne): remove mtqueue Feb 20, 2025
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 28.16%. Comparing base (39fbbe7) to head (2b367c2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #276      +/-   ##
==========================================
- Coverage   30.23%   28.16%   -2.07%     
==========================================
  Files         112      112              
  Lines        9695     9479     -216     
  Branches     3652     2918     -734     
==========================================
- Hits         2931     2670     -261     
- Misses       6224     6347     +123     
+ Partials      540      462      -78     
Flag Coverage Δ
differential 28.16% <33.33%> (?)
total ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Common 18.37% <ø> (-31.87%) ⬇️
Hesai 29.69% <ø> (-0.72%) ⬇️
Velodyne 40.42% <33.33%> (+2.76%) ⬆️
Continental 28.06% <ø> (+0.07%) ⬆️
Robosense 0.00% <ø> (ø)
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
@mojomex mojomex force-pushed the perf/velodyne-remove-mtqueue branch from 49a9e65 to e35fd2c Compare February 20, 2025 07:30
@mojomex mojomex requested a review from drwnz March 10, 2025 01:11
@mojomex
Copy link
Collaborator Author

mojomex commented Mar 10, 2025

🟢 Self-Evaluation

Tested on a VLS128 rosbag and on a real VLP16 device, there were no packet drops/framerate drops/high CPU load etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant