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

DepthCamera and RGBDCamera - optimize RGB point cloud connection #413

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Jan 25, 2024

🦟 Bug fix

Summary

Related pull request: gazebosim/gz-rendering#965

  • Updated DepthCameraSensor and RGBDCameraSensor to connect to the point cloud connection only when there is a subscriber.

To be used together with gazebosim/gz-rendering#965

Here are the results showing the time taken to perform a Render() operation by the depth camera in gz-rendering before and after the changes.

depth_camera_profile

rgbd_camera_profile

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Jan 25, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (d522779) 72.78% compared to head (f3808e4) 72.77%.

Files Patch % Lines
src/RgbdCameraSensor.cc 70.00% 3 Missing ⚠️
src/DepthCameraSensor.cc 85.71% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           gz-sensors8     #413      +/-   ##
===============================================
- Coverage        72.78%   72.77%   -0.02%     
===============================================
  Files               36       36              
  Lines             4972     4980       +8     
===============================================
+ Hits              3619     3624       +5     
- Misses            1353     1356       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iche033 iche033 changed the title Connect to RGB point cloud connection only when needed DepthCamera and RGBDCamera - optimize RGB point cloud connection Jan 25, 2024
@iche033
Copy link
Contributor Author

iche033 commented Jan 26, 2024

merging this as it does not require an upstream release. For binary installs, the perf improvement will only kick in when a gz-rendering8 release is made

@iche033 iche033 merged commit c082434 into gz-sensors8 Jan 26, 2024
12 of 14 checks passed
@iche033 iche033 deleted the depth_point_connection branch January 26, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants