-
Notifications
You must be signed in to change notification settings - Fork 694
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(pointcloud_preprocessor): avoid unnecessary data copy #999
Conversation
Codecov Report
@@ Coverage Diff @@
## main #999 +/- ##
========================================
- Coverage 9.71% 9.71% -0.01%
========================================
Files 953 953
Lines 64012 64013 +1
Branches 11181 11181
========================================
Hits 6217 6217
- Misses 52632 52633 +1
Partials 5163 5163
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
LGTM Just a comment. However, I am curious as to why the copying is occurring even in the original. |
By the way, it seems there is the same issue with the 2 conditional transform: autoware.universe/sensing/pointcloud_preprocessor/src/filter.cpp Lines 176 to 183 in a0ef0e9
auto cloud_transformed = std::make_unique<PointCloud2>();
if (!pcl_ros::transformPointCloud(tf_output_frame_, *cloud_tf, *cloud_transformed, *tf_buffer_)) {
RCLCPP_ERROR(
this->get_logger(), "[computePublish] Error converting output dataset from %s to %s.",
cloud_tf->header.frame_id.c_str(), tf_output_frame_.c_str());
return;
}
cloud_tf = std::move(cloud_transformed); |
Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
I'm checking to work correctly |
I confirmed to work correctory with tutorial rosbag. |
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.
@VRichardJP LGTM
If you are ok, I'll merge this
cc @miursh @aohsato
Yes, thank you :) |
@VRichardJP thank you for your contribution 👍 |
…undation#999) * fix(pointcloud_preprocessor): avoid unnecessary data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * ci(pre-commit): autofix Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * fix: avoid unnecessary cloud data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
* fix(pointcloud_preprocessor): avoid unnecessary data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * ci(pre-commit): autofix Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * fix: avoid unnecessary cloud data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(pointcloud_preprocessor): avoid unnecessary data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * ci(pre-commit): autofix Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * fix: avoid unnecessary cloud data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(pointcloud_preprocessor): avoid unnecessary data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * ci(pre-commit): autofix Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * fix: avoid unnecessary cloud data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(pointcloud_preprocessor): avoid unnecessary data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * ci(pre-commit): autofix Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * fix: avoid unnecessary cloud data copy Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…ving (autowarefoundation#999) * fix(pid_longitudinal_control): not check steering convergence when moving Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * style(pre-commit): autofix --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
Avoid unnecessary data copy as explained in #998
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.