Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Gazebo camera plugin does not see some models that are in the simulation

$
0
0
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 ![scene in gazebo](/upfiles/15343228484713462.png) Screenshot 2 ![image topic view](/upfiles/15343228676044275.png) Here are the files of my model model.config unit_box_11.0model.sdfLouis M A Rock. model.sdf -0.01 -0.012 0.15 0 0 00.3900.00058000.0005800.000190 0 -0.46 0 0 00.05 0.05 0.2110 0 0001001001e+0601100.21e+1310.0101-0.0100.21e+1310 0 -0.46 0 0 0model://unit_box_1/meshes/experimental.dae01 experimental.dae VCGLabVCGLib | MeshLabY_UPWed Apr 25 01:36:10 2012Wed Apr 25 01:36:10 2012../materials/textures/coke_can.pngtexture0R8G8B8texture0-surfaceLINEARLINEAR0 0 0 11 1 1 10.2 0.2 0.2 10.30 0 0 10.50 0 0 100-31.52 a lot of numbers 183.90.671913 another lot of numbers -0.9588250.01326 another big lot of numbers 0.5587

151 more numbers 15359

and here are my launch and world files my_robot.launch test2.sdf (world) 10 0 10 0 -0 00.8 0.8 0.8 10.2 0.2 0.2 110000.90.010.001-0.5 0.1 -0.910 0 1100 10065535100501000 0 1100 1000000 0 -9.86e-06 2.3e-05 -4.2e-050.001110000.4 0.4 0.4 10.7 0.7 0.7 11EARTH_WGS840000-1.48192 -2.61409 0.5 0 -0 010.166667000.16666700.1666670 0 0 0 -0 01 1 1101 1 10002.3099 2.01302 0.5 0 -0 010.145833000.14583300.1250 0 0 0 -0 00.51100.510001.94274 -3.5363 0.5 0 -0 010.1000.100.10 0 0 0 -0 00.5100.5000-5.06932 6.29959 0.5 0 -0 010.166667000.16666700.1666670 0 0 0 -0 01 1 1101 1 1000-6.40864 1.31316 0.5 0 -0 010.145833000.14583300.1250 0 0 0 -0 00.51100.510001model://jersey_barrier/meshes/jersey_barrier.dae0 0 0.5715 0 -0 04.06542 0.3063 1.143100 0 0.032258 0 -0 04.06542 0.8107 0.064516100 0 0.1 0 -0 04.06542 0.65 0.1100 0 0.2 0 -0 04.06542 0.5 0.1100 -0.224 0.2401 0.9 -0 04.06542 0.5 0.064516100 0.224 0.2401 -0.9 0 04.06542 0.5 0.06451610000-5.78633 -5.44901 0 0 -0 01model://fire_hydrant/meshes/fire_hydrant.dae10model://fire_hydrant/meshes/fire_hydrant.dae000-0.809164 5.94749 0 0 -0 010 10 10model://construction_cone/meshes/construction_cone.dae1010 10 10model://construction_cone/meshes/construction_cone.dae00 0 0 0 -0 01001011004.62808 -2.04734 0 0 -0 0302 61600000024 1727161471533554757 717975782239114.62808 -2.04734 -0 0 -0 01 1 14.62808 -2.04734 -0 0 -0 00 0 0 0 -0 00 -0 -0.008512 -2.58585 1.13682 3.141590 -0 -0.008512 0 -0 01.05694 4.00327 -0.003988 -0.01578 0.003494 0.0002211 1 11.05694 4.00327 -0.003988 -0.01578 0.003494 0.0002210 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 01 1 1-0.809164 5.94749 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 01 1 10 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 0-5.78633 -5.44901 0 0 -0 01 1 1-5.78633 -5.44901 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00.992707 -1.96165 0.064254 0 -0 01 1 10.992707 -1.96165 0.064254 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 0-1.48192 -2.61409 0.499995 -1e-05 -0 -01 1 1-1.48192 -2.61409 0.499995 -1e-05 -0 -00 0 0 0 -0 00.004709 0.011055 -9.78158 -0.022108 0.009414 1e-060.004709 0.011055 -9.78158 0 -0 0-5.06932 6.29959 0.499995 0 -1e-05 01 1 1-5.06932 6.29959 0.499995 0 -1e-05 00 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 01.94661 -0.659748 0.082841 -1e-06 -0 -0.0001620.184491 0.189101 0.1656811.94661 -0.659748 0.082841 -1e-06 -0 -0.0001620 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 01.97596 -0.211026 0.180368 -3.1e-05 3.3e-05 0.0001991 1 11.97596 -0.211026 0.180368 -3.1e-05 3.3e-05 0.0001990 0 0 0 -0 00.017424 0.19449 -2.81566 1.08492 0.148388 0.2254670.017424 0.19449 -2.81566 0 -0 01.97018 0.280779 0.082806 -1e-06 2e-06 6.9e-051 1 11.97018 0.280779 0.082806 -1e-06 2e-06 6.9e-050 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 02.3099 2.01302 0.499998 3e-06 -2e-06 01 1 12.3099 2.01302 0.499998 3e-06 -2e-06 00 0 0 0 -0 00 0 -9.8 0 -0 00 0 -9.8 0 -0 0-6.40864 1.31316 0.499993 -3e-06 3e-06 01 1 1-6.40864 1.31316 0.499993 -3e-06 3e-06 00 0 0 0 -0 00 0 -9.8 0 -0 00 0 -9.8 0 -0 01.94274 -3.5363 0.5 0 -0 01 1 11.94274 -3.5363 0.5 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 0 0 -0 00 0 10 0 -0 02.9813 -5.98531 8.11667 -0 0.831643 1.63219orbitperspective1.08633 -0.73581 0.5 0 -0 010.166667000.16666700.1666670 0 0 0 -0 01 1 1101 1 10001.00771 0.280298 0.082841 -4e-06 -0 -1e-0610.166667000.16666700.1666670 0 0 0 -0 00.184491 0.189101 0.165681100.184491 0.189101 0.16568100010.166667000.16666700.1666670 0 0 0 -0 00000 0 0 0 -0 010.029796 1 0.029411__default__0 1 0 10 1 0 10.1 0.1 0.1 10 0 0 10 0 0 0 -0 0010100 0 0 0 -0 00.029796 1 0.029411110 0 0001001001e+0601100.21e+1310.0101-0.0100.21e+131011.27171 -0.064343 0 0 -0 00.002122073.5e-06003.5e-0603.5e-060 0 0 0 -0 00 0 0 0 -0 010000 0 0 0 -0 00.0642541__default__1 0 0 11 0 0 10.1 0.1 0.1 10 0 0 1010100 0 0 0 -0 00.0642541001000 0 0001001001e+0601100.21e+1310.0101-0.0100.21e+131010.992707 -1.96165 0 0 -0 0-0.01 -0.012 0.15 0 -0 00.390.00058000.0005800.000190 0 -0.46 0 -0 0model://coke_can/meshes/coke_can.dae111e+0710.0010.1100 0 -0.46 0 -0 0model://coke_can/meshes/coke_can.dae0001.05695 4.00333 0 0 -0 0falsemodel:///home/louism/model_editor_models/unit_box_20 0 0.1 0 0 010 10 0.110randomfalsemodel:///home/louism/model_editor_models/unit_box_20 0 0.1 0 0 010 10 0.11random 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

Viewing all articles
Browse latest Browse all 7017

Trending Articles