bluerobotics / ping-viewer

Ping Viewer is an open-source application to view and record data from the Blue Robotics Ping Echosounder and Ping360 Scanning Sonar.
https://docs.bluerobotics.com/ping-viewer/
GNU General Public License v3.0
40 stars 38 forks source link

Vehicle overlay shapes #1077

Open rov-rob opened 2 months ago

rov-rob commented 2 months ago

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.

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 commented 2 months ago

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 commented 2 months ago

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

rov-rob commented 2 months ago

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.