'Rviz Pointcloud in wrong location

I designed a robot in gazebo. The robot is equipped with a depth camera Kinect. That is, the file "libgazebo_ros_openni_kinect.so" is called.

When I show the pointcloud2 in the rviz, I found out the location of the pointcloud is wrong. These images should be displayed in front of the camera. Not above. How can I solve that problem?

Please help me

Here is the image of rviz:enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source