Robotics StackExchange | Archived questions

Different Visualization in Gui and ImageView

As already asked (here, I'm trying to simulate a line laser on my robot.

Using the GZ_VISIBILITY_GUI/GZ_VISIBILITY_ALL Flags, I managed to convince the laser to be visible in the camera as can be seen below (Gazebo 2 as I'm using ROS Indigo).

gui.png all.png

The top image was compiled after I changed the flag in rendering/LaserVisual.cc. The camera shown in the gui shows the laser plane, but it's still no visible in the Image View.

Between the two images, I only changed the LaserVisual.cc and did a sudo make install on gazebo.

Has someone else an idea?

Asked by NikolasE on 2015-10-13 09:06:40 UTC

Comments

Ohhh I see what you're doing. It might end up being much more involved than this. The camera image is generated on the server while the GUI visuals are in the client.

Asked by chapulina on 2015-10-13 16:55:38 UTC

But why is there a difference in the interpretation of the visibiity-flag?

Asked by NikolasE on 2015-10-14 01:54:14 UTC

Why aren't comments shown?

Asked by NikolasE on 2015-10-14 12:02:37 UTC

Sorry about that, we're having some trouble with the site, but we're working on it. Thank you for your patience.

Asked by chapulina on 2015-10-14 13:24:49 UTC

OK. Could you in the mean time give me a hint where I have to look for the code that is responsible for the visualization on the server side?

Asked by NikolasE on 2015-10-16 04:58:08 UTC

Maybe @iche033 has an idea?

Asked by chapulina on 2015-10-31 15:37:53 UTC

The issue is that camera visualization does not take into consideration additional lighting effects. I observed this in my world where despite changing the scene lights, and adding fog, the camera still shows the unaltered world.

Asked by Kunal yagi on 2016-03-20 02:31:18 UTC

Answers

The image from the camera sensor does not render visualizations. This is done on purpose laser rays are not visible in the real world, and should therefore not appear in the camera sensor.

Can you make a separate question for why fog and lighting effects do not show in a camera image?

Asked by nkoenig on 2016-03-21 10:59:48 UTC

Comments