Is it possible to return the link of the model the logical camera currently points at?

asked 2022-10-20 12:16:49 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all.

I have stumbled upon the 'logical camera' in gazebo and have been wondering if its possible to return greater detail about a model that the camera currently points at since I'm interested in finding out the material of the model/object it recognizes. I was thinking that if it was possible to return the links of a model then a simple look up table could be made for each model links name to its material. For example, typical worlds such as an office have many walls as part of its links but the logical camera only returns 'office' when it sees a wall, my aim is to know what wall (or more specifically the name of the wall) that it is recognising part of that office. Has anyone done something like this before or got any advice?

Thanks for any help!

edit retag flag offensive close merge delete