Gazebo | Ignition | Community
Ask Your Question

camera not working properly

asked 2017-05-18 04:27:57 -0500

dalbar gravatar image

Hi I am new to Gazebo and I want to build some custom models. In this case a simple road with a texture. The road itself is visible in Gazebo, however it is not visible in the simulated camera on top of the car. Do you have any advice?

image description

edit retag flag offensive close merge delete


are you using the <road> sdf element? I think there is a bug with it. You can probably work around it by creating your own model of a flat box and the road texture.

iche033 gravatar imageiche033 ( 2017-05-25 13:53:18 -0500 )edit

I am not using the road element. Instead I did build a custom model in blender and linked the road texture in the .dae file.

dalbar gravatar imagedalbar ( 2017-05-25 15:37:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-14 04:39:28 -0500

Hi, dalbar. I think I've encountered the similar issue.

I've got my custom sdf model, where I use my own material script. The approach I use is based on the SDF models available here (beer model as an example), see also related tutorial.

To be able to insert the model to the scene I've edited the ~/.gazebo/gui.ini,


which seemed to be enough. The model was visible in the 3D scene with the texture (just like in your case). However, when I ran the camera preview using the script similar to the one below

rosrun image_view image_view image:=/some_path/camera1/image_raw

the camera got stucked every time I had added my custom model to the scene before launching the camera script.


instead of editing the gui.ini file (if you do it), try to append to your ~\.bashrc file the following lines


to be sure it works run

 source ~/.bashrc

and check if the $GAZEBO_MODEL_PATH variable contains the directory

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-05-18 04:27:57 -0500

Seen: 520 times

Last updated: Oct 14 '18