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

Migrate to point_cloud_msg_wrapper #1199

Open
3 tasks done
esteve opened this issue Jun 30, 2022 · 9 comments
Open
3 tasks done

Migrate to point_cloud_msg_wrapper #1199

esteve opened this issue Jun 30, 2022 · 9 comments
Assignees
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) status:stale Inactive or outdated issues. (auto-assigned) type:new-feature New functionalities or additions, feature requests.

Comments

@esteve
Copy link
Contributor

esteve commented Jun 30, 2022

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I've agreed with the maintainers that I can plan this task.

Description

The current codebase uses the PointCloud2Iterator class for handling point clouds. However, this translates into code that's brittle and unreadable. Point Cloud Message Wrapper provides a more robust and natural API for handling point clouds.

Purpose

Make the point cloud handling code more robust and readable

Possible approaches

Use point_coud_msg_wrapper to handle point clouds

Definition of done

The point cloud iterator classes from sensor_msgs are no longer used, in favor of point_cloud_msg_wrapper

@esteve esteve self-assigned this Jun 30, 2022
@BonoloAWF BonoloAWF added type:new-feature New functionalities or additions, feature requests. priority:high High urgency and importance. labels Jun 30, 2022
@mitsudome-r mitsudome-r added component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) labels Jul 5, 2022
@BonoloAWF BonoloAWF moved this to In Progress in Bus ODD Project Jul 12, 2022
@mitsudome-r mitsudome-r removed the priority:high High urgency and importance. label Jul 12, 2022
@stale
Copy link

stale bot commented Sep 10, 2022

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Sep 10, 2022
@miursh
Copy link
Contributor

miursh commented Nov 18, 2022

Just for your information here.
Because #1276 is merged, some issues are happening.
#2306

@stale stale bot removed the status:stale Inactive or outdated issues. (auto-assigned) label Nov 18, 2022
@stale
Copy link

stale bot commented Jan 17, 2023

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Jan 17, 2023
badai-nguyen pushed a commit to badai-nguyen/autoware.universe that referenced this issue Jun 4, 2024
…timation

fix(shape estimation): 5330 + 6157 + 6598
@vividf vividf self-assigned this Aug 7, 2024
@stale stale bot removed the status:stale Inactive or outdated issues. (auto-assigned) label Aug 7, 2024
@vividf
Copy link
Contributor

vividf commented Aug 7, 2024

The error message referenced in this GitHub issue indicates that the problem is caused by this line of code. The Pointcloud message wrapper claims to offer safer handling for point cloud types and fields. Recently, @knzo25 has been working on migrating the point cloud type and providing checks for both the point cloud field and type. Therefore, from my perspective, investing additional effort in this area might not be necessary.

@knzo25 How do you think about this? Thanks

@knzo25
Copy link
Contributor

knzo25 commented Aug 20, 2024

Since we just did some cleaning regarding point types, it would certainly be a good time to try this.
My concerns are:

  • Time to implement this (not that high)
  • Time to test this (does not seem to high, but could turn out to take way more that initially estimated)
  • Execution time (I have not read the implementation, but in addition to do so we must check that this does not add overhead to the current implementation of universe. several parts in universe access directly the data and use reinterpret...)
  • Pointpainting uses "wrongly" the standard way. Could break things by using the proposed method

As this would develop into a bigger task, is there any opinion from an architect point of view (the dependency is in rosdep so there would not be issues https://index.ros.org/p/point_cloud_msg_wrapper/gitlab-ApexAI-point_cloud_msg_wrapper/) @xmfcx @mitsudome-r and if and how much priority would this be assigned @drwnz

@drwnz
Copy link
Contributor

drwnz commented Aug 20, 2024

I've had a quick look at this, and while @knzo25 has made some big improvements to checking the field and type, this does look like an additional step to provide a better API for handling pointclouds. I would say that it is worth investing some time into this now that we have clarified point types. @xmfcx would be great to get your input on this.

@esteve esteve removed their assignment Sep 3, 2024
@esteve
Copy link
Contributor Author

esteve commented Sep 3, 2024

Unassigning myself since I haven't worked on this for a long time.

@xmfcx
Copy link
Contributor

xmfcx commented Sep 3, 2024

  • Execution time (I have not read the implementation, but in addition to do so we must check that this does not add overhead to the current implementation of universe. several parts in universe access directly the data and use reinterpret...)

@knzo25 This shouldn't add an overhead for runtime.

It's a more methodical/safe way of doing a reinterpret_cast:

I will add comparison of point_cloud_msg_wrapper, point_cloud2_iterator and raw reinterpret_cast later here.

But we can go on with implementing this.

Copy link

stale bot commented Nov 5, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Nov 5, 2024
iwatake2222 pushed a commit to iwatake2222/autoware.universe that referenced this issue Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) status:stale Inactive or outdated issues. (auto-assigned) type:new-feature New functionalities or additions, feature requests.
Projects
Status: Todo
Development

No branches or pull requests

8 participants