uuv_simulator icon indicating copy to clipboard operation
uuv_simulator copied to clipboard

Sonar "-Inf" Issue

Open swordsgnat opened this issue 6 years ago • 6 comments

I recently updated to Gazebo 9.0 and the latest uuv_simulator version. I'm now having trouble with the sonar sensors (like the one included on rexrov_sonar). They're giving me "-Inf" values for all the ranges[], indicating that the ranges are less than the minimum or greater than the maximum, despite my positioning objects in the simulation to be in-range and adjusting the angle and placement of the sensor itself. The sensors were working fine before, though I'm not positive an update caused the change. Would anyone know why this might be happening, or should I be looking in the code for the sensors themselves?

swordsgnat avatar Mar 21 '18 20:03 swordsgnat

I have the same problem and I do not know what to do. Help us!

brunohjs avatar May 06 '18 22:05 brunohjs

I will check this, I have Gazebo 9.0 running on my PC now. Could you just send me the configuration of you sonar plugin so that I can test the same problem?

musamarcusso avatar May 08 '18 08:05 musamarcusso

Hi there, I am now working with the uuv_simulator, and I am facing the same error with the sonar sensor. I am using gazebo7 which is actually different to the version that you are working with. I am just wondering if you find a way to fix the error. Regards.

YanielCarreno avatar Dec 26 '18 18:12 YanielCarreno

Hi,@musamarcusso I am now facing this problem too ,and it really troubles me a lot. Have you found out the reason? thanks a lot

AndYanghlh avatar Jan 17 '19 09:01 AndYanghlh

Hello, I had the same issue with Gazebo7 and Gazebo9. In my case the problem was related to problems with the GPU. I have found an issue where others had the same problem: https://bitbucket.org/osrf/subt/issues/11/x2-laser-scanner-data-not-valid A fix, which worked for me is to use the CPU instead of the GPU (performance will decrease). For that you have to change to lines: https://github.com/uuvsimulator/uuv_simulator/blob/master/uuv_sensor_plugins/uuv_sensor_ros_plugins/urdf/sonar_snippets.xacro line 130: "gpu_ray" -> "ray" line 154: "libgazebo_ros_gpu_laser.so" -> "libgazebo_ros_laser.so"

arturmiller avatar Aug 13 '19 13:08 arturmiller

Hi, @arturmiller I used your methord with Gazebo7,and the problem still exists.And here are some warnings: [Wrn] [msgs.cc:1655] Conversion of sensor type[gps] not suppported. [Wrn] [msgs.cc:1655] Conversion of sensor type[gpu_ray] not suppported. [Wrn] [msgs.cc:1655] Conversion of sensor type[gps] not suppported. [Wrn] [msgs.cc:1655] Conversion of sensor type[gpu_ray] not suppported. [Wrn] [msgs.cc:1655] Conversion of sensor type[gps] not suppported. [Wrn] [msgs.cc:1655] Conversion of sensor type[gpu_ray] not suppported. could you help me ? thanks a lot!

ccs-ros avatar Oct 10 '19 14:10 ccs-ros