Home | Tutorials | Wiki | Issues
Ask Your Question

Different Visualization in Gui and ImageView

asked 2015-10-13 09:06:40 -0500

NikolasE gravatar image

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?

edit retag flag offensive close merge delete



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.

chapulina gravatar imagechapulina ( 2015-10-13 16:55:38 -0500 )edit

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

NikolasE gravatar imageNikolasE ( 2015-10-14 01:54:14 -0500 )edit

Why aren't comments shown?

NikolasE gravatar imageNikolasE ( 2015-10-14 12:02:37 -0500 )edit

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

chapulina gravatar imagechapulina ( 2015-10-14 13:24:49 -0500 )edit

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?

NikolasE gravatar imageNikolasE ( 2015-10-16 04:58:08 -0500 )edit

Maybe @iche033 has an idea?

chapulina gravatar imagechapulina ( 2015-10-31 15:37:53 -0500 )edit

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.

Kunal yagi gravatar imageKunal yagi ( 2016-03-20 02:31:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-21 10:59:48 -0500

nkoenig gravatar image

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?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-10-13 09:06:40 -0500

Seen: 505 times

Last updated: Mar 21 '16