Field-Robotics-Lab / nps_uw_multibeam_sonar

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

sonar_image is mirrored left and right #46

Closed zym19981209 closed 7 months ago

zym19981209 commented 1 year ago

Hello, why is the sonar image mirrored left and right? How to solve it. Thanks 2022-08-03 16-27-27屏幕截图

woensug-choi commented 1 year ago

I am guessing your sonar is placed upside down. Let me know if its not.

zym19981209 commented 1 year ago

When I set roll to 0, the image is mirrored left and right. When I set roll to 3.14, the image is normal. If I want to install the sonar on the robot, should I install the sonar upside down to get normal pictures? 2022-08-05 16-23-58屏幕截图 2022-08-05 16-24-32屏幕截图

woensug-choi commented 1 year ago

Hmm.. cant exactly find out how its caused. Can you give me something that I can reproduce?

Meanwhile, you may change the pose tag in visual in model.sdf of oculus sonar to something like 0 0 3.1415 0 0 1.57 to just flip the visual model of the oculus.

zym19981209 commented 1 year ago

All sonar models have left and right image mirroring, such as blueview m450, blueview p900, oculus_ m1200d。 Although I can flip the sonar model 180 degrees by modifying the sonar pose, this only changes the pose of the model and does not solve the problem of left and right mirror images of the sonar output image. Is it necessary to adjust the parameters somewhere? 2022-08-05 18-02-41屏幕截图 2022-08-05 18-04-50屏幕截图

woensug-choi commented 1 year ago

Hi, sorry for the late comeback. Did you find any solution for this? Related to https://github.com/Field-Robotics-Lab/nps_uw_multibeam_sonar/issues/48, I might have got xyz wrong.

huangbintao188 commented 7 months ago

Hello, why is the sonar image mirrored left and right? How to solve it. Thanks 2022-08-03 16-27-27屏幕截图

hello, May I ask what is your CUDA version? Is it okay for version 11.1 or above, or is it mandatory for version 11.1

woensug-choi commented 7 months ago

Closing this Issue since it's long staled and could not reproduce. Last checked today and it looks ok