ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

RViz Camera View is up-side down

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

updated 2014-11-22 17:05:05 -0600

ngrennan gravatar image

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
1

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

hersh gravatar image

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 -0600

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

Question Tools

Stats

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

Seen: 3,527 times

Last updated: Mar 14 '12