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

rviz: get interactive object behind transparent object

asked 2013-01-20 15:22:03 -0600

Kyle Strabala gravatar image

I am playing around with an rviz tool plugin and I'm trying figure out how to select an interactive marker that is behind a transparent non-interactive object.

Is there a way to parse the results from rviz::SelectionManager::pick to get handles to the objects further back in depth?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-28 11:54:51 -0600

dgossow gravatar image

The picking mechanism in RViz renders the scene to a separate buffer with a special "pick" scheme, and that will always only return one object id.

There is no nice general solution to this, but depending on what you want to do, you might want to use Ogre's scene query mechanism, or change the picking scheme (named "Pick") of the transparent object so that it is invisible in the picking buffer.

To debug this, RViz has a useful command line option "-v", which will make it publish the picking buffer to /rviz_debug/pick. You can then use the "select" tool to trigger the generation of a picking buffer (see screenshot).

image description

edit flag offensive delete link more

Comments

Hey i have the same problem right now but i just cant figure out how to access the picking scheme. Could you give me a hint how to do it. Do i have to create a object from SelectionManager or something like that? (sorry im new to C++)

AlexKolb gravatar image AlexKolb  ( 2014-11-20 16:17:07 -0600 )edit

Question Tools

Stats

Asked: 2013-01-20 15:22:03 -0600

Seen: 451 times

Last updated: Jan 28 '13