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

Unordered Pointcloud2 processing #22

Open
simutisernestas opened this issue Nov 22, 2020 · 4 comments
Open

Unordered Pointcloud2 processing #22

simutisernestas opened this issue Nov 22, 2020 · 4 comments

Comments

@simutisernestas
Copy link
Contributor

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • ROS2 Version:
    • Foxy binary
  • DDS implementation:
    • Fast-RTPS

Steps to reproduce the issue

Here while decoding pointcloud to rgb it is assumed that point cloud is actually ordered. http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/PointCloud2.html states that: "If the cloud is unordered, height is 1 and width is the length of the point cloud.". So the code breaks later if callback gets unordered point cloud message because img shape is (1, vector size, 3) and detectron2 can't make a prediction from image properly.

Expected behavior

Both case (ordered and unordered point cloud) handling should be implemented. One possible solution to deal with unordered PC2 is to project points to the image plane and make sure it has proper shape before feeding it to the detector.

Actual behavior

Node crash on detection step.

@SteveMacenski
Copy link
Member

Isn't there a NaN/Inf component of this you brought up?

@simutisernestas
Copy link
Contributor Author

Those aren't actually related, I've filled in that one here: #20

@soldierofhell
Copy link

@simutisernestas, but if we take arbitrary pointcloud then we have to fill holes in the projected image. There's no guarantee it will have proper sematic meaning for detector. To me in practice the source of colored pointcloud is RGBD or stereo camera

@SteveMacenski
Copy link
Member

Not all drivers are going to make properly assembled organized point clouds - as @simutisernestas mentions

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

No branches or pull requests

3 participants