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

[Fix] Reduce the calculation load of points2image #1286

Merged
merged 4 commits into from
May 22, 2018

Conversation

yn-mrse
Copy link

@yn-mrse yn-mrse commented May 21, 2018

Status

DEVELOPMENT

Description

Fixed /points2image and /calibration_publisher. autowarefoundation/autoware_ai#162
In order to reduce processing load, we changed the following two points.
(1) Improve the part calculated using OpenCV.
(2) We stopped wasteful memory allocation processing and optimized it.

Also, the /camera_info and /projection_matrix topics are useless because they are designed to keep publishing the same value. Changed calibration_publisher to publish in latch.

Todos

  • Tests
  • Documentation

Steps to Test or Reproduce

Prepare a rosbag file containing / points_raw and / image_raw and a camera calibration file in advance.
After calibration publisher and points image are started up, compare the CPU load before and after change.
image

Before : 50% to 110% CPU(When HDL32e LiDAR is used)
image

After : 20% or less CPU(When HDL32e LiDAR is used)
image

@yn-mrse yn-mrse requested a review from kfunaoka May 21, 2018 06:21
@kfunaoka kfunaoka changed the title [Feature] Reduce the calculation load of points2image [Fix] Reduce the calculation load of points2image May 22, 2018
Copy link

@kfunaoka kfunaoka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement!

Because the contents seem not to have new feature, I renamed this title from Feature to Fix.

Please use "Squash and merge" and delete the following comments in the second text box not to appear on CHANGELOG.

* Make matrix initialization only once

* Change cvmat calculation to local

* Change to latched-publisher

* Clang-format

@yn-mrse yn-mrse merged commit c96d529 into develop May 22, 2018
@kfunaoka kfunaoka deleted the feature/points2image_reduce_load branch May 22, 2018 03:12
@kfunaoka kfunaoka added this to the v1.8 milestone Jul 20, 2018
anubhavashok pushed a commit to NuronLabs/autoware.ai that referenced this pull request Sep 7, 2021
@mitsudome-r mitsudome-r added the version:autoware-ai Autoware.AI label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants