Skip to content

Unordered Pointcloud2 processing  #22

@simutisernestas

Description

@simutisernestas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions