Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rqt_image_viewer crops the sonar_image #35

Open
woensug-choi opened this issue Feb 22, 2022 · 1 comment
Open

Rqt_image_viewer crops the sonar_image #35

woensug-choi opened this issue Feb 22, 2022 · 1 comment
Labels
bug Something isn't working Currently on hand

Comments

@woensug-choi
Copy link
Contributor

Strangely, the image shown in the rqt_image_viewer crops in the azimuthal direction at the resulting sonar image. Image drawn using the Matlab script shows just fine.

  • rqt_image_viewer

image

  • Matlab plot

image

@soldierofhell
Copy link

soldierofhell commented Nov 16, 2023

Hi @woensug-choi , IMO the problem is in sonar_image size (

cv::Mat Intensity_image = cv::Mat::zeros(cv::Size(nBeams, nFreq), CV_8UC1);
). I don't understand why width is defined as nBeams, IMO it should be something like 2 * nFreq * sin(FOV/2), so for example if FOV is 180 deg, the image should be (2 * nFreq, nFreq), so that half-circle of sonar image fit in it? Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Currently on hand
Projects
None yet
Development

No branches or pull requests

2 participants