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

Vehicle overlay shapes #1077

Open
rov-rob opened this issue Apr 24, 2024 · 3 comments
Open

Vehicle overlay shapes #1077

rov-rob opened this issue Apr 24, 2024 · 3 comments

Comments

@rov-rob
Copy link

rov-rob commented Apr 24, 2024

Summary

Hi.
Id like to have the option to add custom vehicle shapes as overlay in pingviewer as this would be of great help operating large vehicles.

  • Load in a list of coordinates outlining the vehicle shape.
    • Fileformat could be something simple like a .csv with x and y
    • Option so set colour and have multiple parts on the vehicle outline.
  • Have the overlay shape scale with the selected sonar range.
  • Have the overlay crop with the sonar sector setting.

I do not have enough programming knowledge to even know where to look to implement this my self.

Additional information

Example .csv and mockup pictures so vehicle is not to scale. Assuming ping360 as CRP in the example.

#x,y,name,colour
-0.4,0.5,base,blue
0.4,0.5,base,blue
0.4,-1.5,base,blue
-0.4,-1.5,base,blue
-0.4,0.5,base,blue
		
0.3,-1.5,backpack,red
0.3,-1.8,backpack,red
-0.3,-1.8,backpack,red
-0.3,-1.5,backpack,red

image

pingviewer_overlay

@joaoantoniocardoso
Copy link
Contributor

joaoantoniocardoso commented Apr 24, 2024

Interesting idea. To add on that, I believe a .png .svg (vectorized) would be a more universal approach, maybe with an offset coordinate pair to help centralize.

@patrickelectric
Copy link
Member

Yep, a SVG would be the way to go for sure!

@rov-rob
Copy link
Author

rov-rob commented Apr 24, 2024

From my experience with survey softwares like qps qinsy, you would define your vehicle shape with a simple csv or cad file(dxf/dwg of similair).

Line width and line colour could then be set by the user in the software without having to change and load different files.

Reading up a bit on svg file format, maybe the stroke and stroke-width parameteris in the .svg-format can be changed by the user in pingviewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants