stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
447 stars 391 forks source link

Coordinates in PointCloud are inverted along the x-y axis #899

Closed nagem07 closed 1 year ago

nagem07 commented 1 year ago

Preliminary Checks

Description

I have a node subscribing to the pointcloud & rgb image topics. I perform face recognition on the rgb image and use the center of the bounding in order to extract the corresponding coordinates from the point cloud. However, my results are inverted when I try to back trace the obtained coordinates on Rviz. I tried to peep into the points in the pointcloud as a whole, and most of the coordinates seems to be inverted, meaning behind the camera's field of view.

Steps to Reproduce

  1. Create a node to subscribe to pointcloud
  2. Extract and visualize point cloud
  3. ...

Expected Result

Coordinates with respect to field of view

Actual Result

Inverted/Mirrored coordinates

ZED Camera model

ZED2

Environment

Ubuntu 18
Melodic
Jetson Xavier

Anything else?

No response

Myzhar commented 1 year ago

@nagem07 they are not inverted. They follow the ROS convention which is not the usual "computer vision" convention. Read more here: https://www.ros.org/reps/rep-0105.html and here https://www.ros.org/reps/rep-0103.html