Ask Your Question
0

RViz Camera View is up-side down

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

updated 2014-11-22 17:05:05 -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]

Question Tools

Stats

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

Seen: 342 times

Last updated: Mar 14 '12
{"cc_re__cc_re__cc_by_sa_3_0_le": ["71/ethernet-stack-for-ros/\">Ethernet stack for ROS</a> </p> <p> <a href=\"/question/62125/problem-with-ros-nxt/\">problem with ROS NXT</a> </p> <p> <a href=\"/question/202436/how-to-use-robotino-camera-for-object-tracking/\">How to use Robotino camera for object tracking</a> </p> <p> <a href=\"/question/36949/depth-to-external-rgb/\">depth to external rgb [closed]</a> </p> </div> </div> </div> </div> <!-- template footer.html --> <div id=\"ground\"> <div class=\"content-wrapper\"> <div class=\"copyright\"> <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\"> <img\n                            class=\"license-logo\"\n                            src=\"/m/default/media/images/cc-by-sa.png?v=27\"\n                            title=\"cc-by-sa\"\n                            alt=\"cc-by-sa\"\n                        /> </a>\n                \n                ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\">Creative Commons Attribution Share Alike 3.0</", "ss=\"content-wrapper\"> <div class=\"copyright\"> <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\"> <img\n                            class=\"license-logo\"\n                            src=\"/m/default/media/images/cc-by-sa.png?v=27\"\n                            title=\"cc-by-sa\"\n                            alt=\"cc-by-sa\"\n                        /> </a>\n                \n                ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/3.0/legalcode\">Creative Commons Attribution Share Alike 3.0</a> license.\n\n            </div> <div class=\"footer-links\" > <a href=\"/about/\">about</a><span class=\"link-separator\"> |</span> <a href=\"/faq/\">faq</a><span class=\"link-separator\"> |</span> <a href=\"/help/\" title=\"help\">help</a> <span class=\"link-separator\"> |</span> <a href=\"/privacy/\">privacy policy</a><span class=\"link-separator\"> |</span> <a href=\"/terms/\">terms of service</a> <span class=\"link-separator\"> |</span> <a \n                \n            "], "copyright__copyright__copyright": ["e 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.\n\nedit flag offensive delete link more\n\nYour Answer\n\nPlease start posting anonymously - your entry will be published after you log in or create a new account.\n\nAdd Answer\n\n[hide preview]\n\nQuestion Tools\n\nStats\n\nAsked: 2012-03-13 21:53:09 -0500\n\nSeen: 342 times\n\nLast updated: Mar 14 '12"]}