Bug report
Required Info:
- Operating System:
- ROS2 Version:
- DDS implementation:
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.
Bug report
Required Info:
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.