Field-Robotics-Lab / nps_uw_multibeam_sonar

Multibeam sonar plugin with NVIDIA Cuda library
Apache License 2.0
35 stars 20 forks source link

Discretization of elevation angles visible as stripes #4

Closed woensug-choi closed 2 years ago

woensug-choi commented 3 years ago

@lauralindzey has spotted on beta user tests that the discretization of the elevation angles is visible as stripes as follows. This is due to the resolution of the rays. In default settings, 11 elevation rays produce the sonar image (114 rays taken from depth_camera vertical pixels and calculated with ten elevation ray skips to reduce computation costs). This brings a conceptual question for the plugin from the user's point-of-view.

In which situation can we justify the interpolation of the image?

image

lauralindzey commented 3 years ago

Hi @woensug-choi . I'm back to working with simulation again, apologies for the radio silence.

I spent a little bit of time trying to tweak the nRays and raySkips parameters in the plugin, but changing them from the default tended to just yield a blank image, or an equally stripy image.

Can you suggest parameters I should try that might give a better image, even at the cost of running (much) slower than real-time?

woensug-choi commented 3 years ago

Parameters to handle on run-time

Results

Ray Skips Camera resolution
width=512 / height=114 / raySkips=10 image width=512 / height=228 / raySkips=10 image
width=512 / height=114 / raySkips=5 image width=1024 / height=228 / raySkips=10 image
width=512 / height=114 / raySkips=0 image width=1024 / height=228 / raySkips=5 image

@lauralindzey Hope this helps! Are you still going to do some experiments right? I am gathering available sonar data for V&V but they are much low frequency and long-ranged. https://github.com/Field-Robotics-Lab/nps_uw_multibeam_sonar/issues/5

woensug-choi commented 3 years ago

Elevation stripe is visible due to fixed ray-wise input data from the camera sensor (discretizes the rendering scene with pixels). As the source of the sonar signal is a point. The range resolution (the gap between elevation stripes) is dependent on the relative orientation of the sonar and objects in the scene. For seabed looking cases, if the sonar is near the seabed with a view field grazing the bottom, the gaps become visible. If the sonar is away from the bottom looking down, the gaps are neglectable. image image