Gazebo | Ignition | Community
Ask Your Question

road visuals not shown in published camera image

asked 2016-02-10 03:33:44 -0500

maxieckert gravatar image

Hi there,

When I set up a camera, the preview within gazebo is fine, but in the published image the visuals of the "gazebo-road" are gone.

Has someone an idea why this happens? And how can i achieve to get all my visuals shown up in the published image?

image description

Many thanks in advance and best regards.

edit retag flag offensive close merge delete


Hello, Have u got any solution for this.

saravana s gravatar imagesaravana s ( 2017-04-25 06:08:02 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-09-18 07:04:29 -0500

tahsinkose gravatar image

If it helps, I would like to add some diagnosis. When there exist more than one roads loaded through the world file, camera does not show the roads except the first one. Meaningly, if you have a word file like below:

<road name="road_1">

 <model name="some_model">...</model>
<road name="road_n">

road_1 and any model following it will be successfully viewed in the camera. But any other road below road_1 isn't shown. I don't know the sensor dynamics of Gazebo, but if it uses SDF (I had to experiment with SDF for a road follower actor and observed that it is very buggy and has the oddest XML parsing approach as to my knowledge) to parse some data for camera output, that might be the issue.

EDIT: After wandering around the forum, I found this. Most probably, there is an unconsidered trigger that changes some visibility flag to GZ_VISIBILITY_GUI, which causes a visual to be drawn in GUI but not in a camera sensor as clearly stated by @nkoenig.

edit flag offensive delete link more


responding to youre edit, so how do you prevent this? thanks in advance

arubittu gravatar imagearubittu ( 2020-08-15 11:07:01 -0500 )edit

answered 2016-02-12 10:20:29 -0500

nkoenig gravatar image

This looks like a bug. Can you add the version of gazebo you are using to this issue ?

edit flag offensive delete link more


It occurs to me using version 6.5.1

maxieckert gravatar imagemaxieckert ( 2016-02-15 02:46:54 -0500 )edit

Me too at version 9.1.1.

tahsinkose gravatar imagetahsinkose ( 2018-09-18 06:23:44 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-10 03:33:44 -0500

Seen: 1,050 times

Last updated: Sep 18 '18