road visuals not shown in published camera 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?
Many thanks in advance and best regards.
Asked by maxieckert on 2016-02-10 04:33:44 UTC
Answers
This looks like a bug. Can you add the version of gazebo you are using to this issue ?
Asked by nkoenig on 2016-02-12 11:20:29 UTC
Comments
It occurs to me using version 6.5.1
Asked by maxieckert on 2016-02-15 03:46:54 UTC
Me too at version 9.1.1.
Asked by tahsinkose on 2018-09-18 06:23:44 UTC
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">
....
</road>
<model name="some_model">...</model>
...
<road name="road_n">
.....
</road>
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.
Asked by tahsinkose on 2018-09-18 06:56:31 UTC
Comments
responding to youre edit, so how do you prevent this? thanks in advance
Asked by arubittu on 2020-08-15 11:07:01 UTC
Comments
Hello, Have u got any solution for this.
Asked by saravana s on 2017-04-25 06:08:02 UTC