Ask Your Question
0

RViz Camera View is up-side down

asked 2012-03-13 21:53:09 -0500

updated 2014-04-20 14:06:04 -0500

Hi all,

We have mounted an Kinect (to be precise an Asus Xtion Live Pro) sensor up-side down onto our PR2. We added the appropriate config (camera frames) into the robot.xml (via the python script provided at the ROS wiki). Furthermore the TF (rpy angles) were modified and it was verified that the point cloud was indeed at the right orientation (regarding the robot) with RViz.

Nevertheless the camera view (2D) in RViz is still up-side down. Does anyone have a clue why?

Cheers, Sebastian

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-03-14 05:20:27 -0500

The Camera display in RViz shows just what the image stream contains (which in this case is upside-down), plus other 3D data if the alpha is less than 1.0, as Felix mentions. That way you can see the other 3D data upside-down as well.

If you want the image stream to be rotated so that it's "up" vector matches your own personal "up" vector, you need to have a ROS node subscribe to the image stream, rotate it, and re-publish it. The image_rotate package has a node for this.

edit flag offensive delete link more
0

answered 2012-03-14 02:41:41 -0500

Everything in the 3D display is transformed to the fixed_frame (or target_frame?). The 2D display doesn't care about tf. However, if you set alpha to 0.5, you should see 3D objects like the point cloud, markers, and coordinate system projected to the right place.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2012-03-13 21:53:09 -0500

Seen: 268 times

Last updated: Mar 14 '12