Robotics StackExchange | Archived questions

RViz is displaying Pointcloud2 in the wrong direction

ROS2 Foxy on Ubuntu 20.04.3 Focal

Following and modifying the files from the sambotdescription while going through parts of the "Setting Up Sensors" tutorial. Having an issue with my depth camera display in RViz. Although the depth camera is pointing forward, the point cloud in RViz is pointing upwards. Can someone help me understand why this is happening?

Image of issue: https://drive.google.com/file/d/1HukWgl10saNh307lS28zUd_IFBbtmrK7/view?usp=sharing

Link to URDF file: https://drive.google.com/file/d/1_FFZd-_c85n5OZ8adCH_boXirn76V1F4/view?usp=sharing

Link to MyWorld file: https://drive.google.com/file/d/1PyNcm7g5iuFjxszE0UAnrs3Med0af9e-/view?usp=sharing

Asked by Jasabl19 on 2021-09-28 13:37:44 UTC

Comments

Please attach your image directly to the question. I've given you sufficient karma.

Asked by gvdhoorn on 2021-09-28 13:45:30 UTC

I believe this is a duplicate. See #q285790 for instance, or #q322963 or #q323901 (there are many more, use Google, search for pointcloud orientation rviz, append site:answers.ros.org to your query).

Nothing is wrong, it's just that you're likely not aware of the frame orientation of (depth) cameras and RViz. See the linked Q&As.

As I believe this is a duplicate, I'm going to close it.

Asked by gvdhoorn on 2021-09-28 13:46:44 UTC

Answers