HI!
I created a simple rock model, the visual is a .dae file and the collision is a simple box of roughly the same size.
I then add multiple clones of the rock randomly distributed on the floor of my gazebo world (at the end of the world described in test2.sdf)
I have a robot equipped with the Gazebo camera plugin. If I look inside the gazebo client gui, the rocks appear along all the other elements, and with the camera previzualization activated, it seems the camera sees everything (screenshot 1).
But when I open for example rqt_image_view to check out the feed from the camera topic, then my rocks disappear (screenshot 2)! All the other elements are still viewed... Any idea why? And more importantly, any ideas how to fix this? I would like my robot to be able to see the rocks, for it to be able to avoid them, pick them up, etc.
Screenshot 1

Screenshot 2

Here are the files of my model
model.config
unit_box_1 1.0 model.sdf Louis M
A Rock.
model.sdf
-0.01 -0.012 0.15 0 0 0 0.390 0.00058 0 0 0.00058 0 0.00019 0 0 -0.46 0 0 0 0.05 0.05 0.2 1 1 0 0 0 0 0 1 0 0 1 0 0 1e+06 0 1 1 0 0.2 1e+13 1 0.01 0 1 -0.01 0 0.2 1e+13 1 0 0 -0.46 0 0 0 model://unit_box_1/meshes/experimental.dae 0 1
experimental.dae
VCGLab VCGLib | MeshLab Y_UP Wed Apr 25 01:36:10 2012 Wed Apr 25 01:36:10 2012 ../materials/textures/coke_can.png texture0 R8G8B8 texture0-surface LINEAR LINEAR 0 0 0 1 1 1 1 1 0.2 0.2 0.2 1 0.3 0 0 0 1 0.5 0 0 0 1 0 0 -31.52 a lot of numbers 183.9 0.671913 another lot of numbers -0.958825 0.01326 another big lot of numbers 0.5587
and here are my launch and world files
my_robot.launch
test2.sdf (world)
1 0 0 10 0 -0 0 0.8 0.8 0.8 1 0.2 0.2 0.2 1 1000 0.9 0.01 0.001 -0.5 0.1 -0.9 1 0 0 1 100 100 65535 100 50 10 0 0 0 1 100 100 0 0 0 0 0 -9.8 6e-06 2.3e-05 -4.2e-05 0.001 1 1000 0.4 0.4 0.4 1 0.7 0.7 0.7 1 1 EARTH_WGS84 0 0 0 0 -1.48192 -2.61409 0.5 0 -0 0 1 0.166667 0 0 0.166667 0 0.166667 0 0 0 0 -0 0 1 1 1 10 1 1 1 0 0 0 2.3099 2.01302 0.5 0 -0 0 1 0.145833 0 0 0.145833 0 0.125 0 0 0 0 -0 0 0.5 1 10 0.5 1 0 0 0 1.94274 -3.5363 0.5 0 -0 0 1 0.1 0 0 0.1 0 0.1 0 0 0 0 -0 0 0.5 10 0.5 0 0 0 -5.06932 6.29959 0.5 0 -0 0 1 0.166667 0 0 0.166667 0 0.166667 0 0 0 0 -0 0 1 1 1 10 1 1 1 0 0 0 -6.40864 1.31316 0.5 0 -0 0 1 0.145833 0 0 0.145833 0 0.125 0 0 0 0 -0 0 0.5 1 10 0.5 1 0 0 0 1 model://jersey_barrier/meshes/jersey_barrier.dae 0 0 0.5715 0 -0 0 4.06542 0.3063 1.143 10 0 0 0.032258 0 -0 0 4.06542 0.8107 0.064516 10 0 0 0.1 0 -0 0 4.06542 0.65 0.1 10 0 0 0.2 0 -0 0 4.06542 0.5 0.1 10 0 -0.224 0.2401 0.9 -0 0 4.06542 0.5 0.064516 10 0 0.224 0.2401 -0.9 0 0 4.06542 0.5 0.064516 10 0 0 0 -5.78633 -5.44901 0 0 -0 0 1 model://fire_hydrant/meshes/fire_hydrant.dae 10 model://fire_hydrant/meshes/fire_hydrant.dae 0 0 0 -0.809164 5.94749 0 0 -0 0 10 10 10 model://construction_cone/meshes/construction_cone.dae 10 10 10 10 model://construction_cone/meshes/construction_cone.dae 0 0 0 0 0 -0 0 1 0 0 1 0 1 1 0 0 4.62808 -2.04734 0 0 -0 0 302 616000000 24 172716147 1533554757 717975782 23911 4.62808 -2.04734 -0 0 -0 0 1 1 1 4.62808 -2.04734 -0 0 -0 0 0 0 0 0 -0 0 0 -0 -0.008512 -2.58585 1.13682 3.14159 0 -0 -0.008512 0 -0 0 1.05694 4.00327 -0.003988 -0.01578 0.003494 0.000221 1 1 1 1.05694 4.00327 -0.003988 -0.01578 0.003494 0.000221 0 0 0 0 -0 0 -0.452787 0.161724 -0.089413 2.0163 -0.028112 2.59238 -0.176587 0.063072 -0.034871 0 -0 0 -0.809164 5.94749 0 0 -0 0 1 1 1 -0.809164 5.94749 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 1 1 1 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 -5.78633 -5.44901 0 0 -0 0 1 1 1 -5.78633 -5.44901 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0.992707 -1.96165 0.064254 0 -0 0 1 1 1 0.992707 -1.96165 0.064254 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 -1.48192 -2.61409 0.499995 -1e-05 -0 -0 1 1 1 -1.48192 -2.61409 0.499995 -1e-05 -0 -0 0 0 0 0 -0 0 0.004709 0.011055 -9.78158 -0.022108 0.009414 1e-06 0.004709 0.011055 -9.78158 0 -0 0 -5.06932 6.29959 0.499995 0 -1e-05 0 1 1 1 -5.06932 6.29959 0.499995 0 -1e-05 0 0 0 0 0 -0 0 -0.010615 0.006191 -9.78231 -0.012424 -0.021225 1.8e-05 -0.010615 0.006191 -9.78231 0 -0 0 1.94661 -0.659748 0.082841 -1e-06 -0 -0.000162 0.184491 0.189101 0.165681 1.94661 -0.659748 0.082841 -1e-06 -0 -0.000162 0 0 0 0 -0 0 -0.488485 -0.384302 1.25506 -1.64469 0.369241 0.010878 -0.488485 -0.384302 1.25506 0 -0 0 1.97596 -0.211026 0.180368 -3.1e-05 3.3e-05 0.000199 1 1 1 1.97596 -0.211026 0.180368 -3.1e-05 3.3e-05 0.000199 0 0 0 0 -0 0 0.017424 0.19449 -2.81566 1.08492 0.148388 0.225467 0.017424 0.19449 -2.81566 0 -0 0 1.97018 0.280779 0.082806 -1e-06 2e-06 6.9e-05 1 1 1 1.97018 0.280779 0.082806 -1e-06 2e-06 6.9e-05 0 0 0 0 -0 0 -0.017424 -0.19449 -16.7843 0.788915 0.083756 -0.283631 -0.017424 -0.19449 -16.7843 0 -0 0 2.3099 2.01302 0.499998 3e-06 -2e-06 0 1 1 1 2.3099 2.01302 0.499998 3e-06 -2e-06 0 0 0 0 0 -0 0 0 0 -9.8 0 -0 0 0 0 -9.8 0 -0 0 -6.40864 1.31316 0.499993 -3e-06 3e-06 0 1 1 1 -6.40864 1.31316 0.499993 -3e-06 3e-06 0 0 0 0 0 -0 0 0 0 -9.8 0 -0 0 0 0 -9.8 0 -0 0 1.94274 -3.5363 0.5 0 -0 0 1 1 1 1.94274 -3.5363 0.5 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 0 0 -0 0 0 0 10 0 -0 0 2.9813 -5.98531 8.11667 -0 0.831643 1.63219 orbit perspective 1.08633 -0.73581 0.5 0 -0 0 1 0.166667 0 0 0.166667 0 0.166667 0 0 0 0 -0 0 1 1 1 10 1 1 1 0 0 0 1.00771 0.280298 0.082841 -4e-06 -0 -1e-06 1 0.166667 0 0 0.166667 0 0.166667 0 0 0 0 -0 0 0.184491 0.189101 0.165681 10 0.184491 0.189101 0.165681 0 0 0 1 0.166667 0 0 0.166667 0 0.166667 0 0 0 0 -0 0 0 0 0 0 0 0 0 -0 0 1 0.029796 1 0.029411 __default__ 0 1 0 1 0 1 0 1 0.1 0.1 0.1 1 0 0 0 1 0 0 0 0 -0 0 0 1 0 10 0 0 0 0 -0 0 0.029796 1 0.029411 1 1 0 0 0 0 0 1 0 0 1 0 0 1e+06 0 1 1 0 0.2 1e+13 1 0.01 0 1 -0.01 0 0.2 1e+13 1 0 1 1.27171 -0.064343 0 0 -0 0 0.00212207 3.5e-06 0 0 3.5e-06 0 3.5e-06 0 0 0 0 -0 0 0 0 0 0 -0 0 1 0 0 0 0 0 0 0 -0 0 0.064254 1 __default__ 1 0 0 1 1 0 0 1 0.1 0.1 0.1 1 0 0 0 1 0 1 0 10 0 0 0 0 -0 0 0.064254 100 100 0 0 0 0 0 1 0 0 1 0 0 1e+06 0 1 1 0 0.2 1e+13 1 0.01 0 1 -0.01 0 0.2 1e+13 1 0 1 0.992707 -1.96165 0 0 -0 0 -0.01 -0.012 0.15 0 -0 0 0.39 0.00058 0 0 0.00058 0 0.00019 0 0 -0.46 0 -0 0 model://coke_can/meshes/coke_can.dae 1 1 1e+07 1 0.001 0.1 10 0 0 -0.46 0 -0 0 model://coke_can/meshes/coke_can.dae 0 0 0 1.05695 4.00333 0 0 -0 0 false model:///home/louism/model_editor_models/unit_box_2 0 0 0.1 0 0 0 10 10 0.1 10 random false model:///home/louism/model_editor_models/unit_box_2 0 0 0.1 0 0 0 10 10 0.1 1 random
Thank you very much for any input on how to get my camera to see those rocks!
For info I am using Gazebo 9 with ROS Kinetic
151 more numbers 15359