I'm using a Kinect in my project. I was able to open the image obtained by it in Rviz, however the image that appears in the viewer looks on an axis that I want to change.
Apparently the image reproduction is in the Z plane, as if the kinect was installed in the X plane. image description http://i68.tinypic.com/xdb21d.png
I used the commands:
roslaunch openni_launch openni.launch
rosrun rviz rviz
Can anyone help me which file should I find to change the playback position of the kinect image?
Originally posted by Thadeu Brito on ROS Answers with karma: 15 on 2017-06-30
Post score: 1
Original comments
Comment by velveteenrobot on 2017-06-30:
Can you add more information about your setup?
Do you just want to be able to view the point clouds differently in RViz or do you want to actually change the orientation of the point cloud?
Comment by velveteenrobot on 2017-06-30:
If you just want to view the point cloud differently, you may be able to get what you want just by changing the Global Options->Fixed Frame in Rviz.
Comment by velveteenrobot on 2017-06-30:
If you want to transform the point cloud to a new frame then you can look at the pcl_ros API for transforming point clouds.
Comment by Thadeu Brito on 2017-07-02:
Thank you for the tips. The image is currently appearing on the YZ plane. I would like to get the image in the XY plane. However changing to Fixed Frame, this does not happen.
Comment by velveteenrobot on 2017-07-02:
Do you just want to view the point cloud differently in Rviz then? What is the current Fixed Frame in your Rviz? What are the other possible options? You could also just change your viewpoint in the Views Panel
Comment by Thadeu Brito on 2017-07-03:
I am using the Camera Link option in the Fixed Frame.
Comment by Thadeu Brito on 2017-07-03:
My frame settings are default to openni_launch.
I just did:
I connected the kinect to my computer;
I used the commands: rosrun rviz rviz and roslaunch openni_launch openni.launch;
I put the fixed fram in camera link;
I added PointCloud2 and I marked the topic as / camera / depth_registered / points
Comment by Thadeu Brito on 2017-07-03:
And now I want to change the point cloud plan. Even if I change the Fixed Frame, the point cloud does not change place. And I would not like to change the view in Rviz.
Comment by Thadeu Brito on 2017-07-03:
I found a point cloud image as an example (Link)
Comment by Thadeu Brito on 2017-07-03:
I would like to have a superior view of the point cloud. As if the camera was over my head.