Maritime-Robotics-Student-Society / sailing-robot

Southampton sailing robot
http://www.sotonsailrobot.org
Other
87 stars 46 forks source link

Add map to index_recorded_data #227

Closed Nanoseb closed 6 years ago

Nanoseb commented 6 years ago

A .kmz can be read by almost any maps like openstreet map/google earth/map etc. It could be a nice addition to the index_recorded_data.py script to have an osm map summarizing the bagfile.

Such file can be easily generated from the .csv we already record with pyKML for example (no need to parse the huge bagfile or generate this live).

Nanoseb commented 6 years ago

http://osm.quelltextlich.at/wizard-kml-osmtools.html for example to generate easily the map afterwards

takluyver commented 6 years ago

The folium library can plot over Openstreetmap directly, without needing to make a kml file. I used this last year to plot the tracks from the competition:

http://nbviewer.jupyter.org/github/Maritime-Robotics-Student-Society/sailing-robot/blob/master/notes/WRSC%202017%20results.ipynb

Nanoseb commented 6 years ago

Oh yes nice, I didn't realised you got an actual osm thing. So it may be even easier to add to the index page. Definitely worth looking at then.

Nanoseb commented 6 years ago

Basic version working \o/, still needs waypoints now scrot-2018-02-08-151918

takluyver commented 6 years ago

Nice! It should be easy to get the waypoints from the parameter dump.

Nanoseb commented 6 years ago

yes, it is just not a copy/paste from your code since it is json vs yaml ;). But yes shouldn't be complicated

Nanoseb commented 6 years ago

@takluyver can you test with all the bags/.csv? If there is no loading issue and it works fine I think we can close this.

takluyver commented 6 years ago

We are going to need to be smarter with the loading, unfortunately. When I generated the index with all the maps, it took over a minute to load in my browser and made 1500 requests. I'll see if I can figure something out.

takluyver commented 6 years ago

OK, now it only loads the map when you click the link to open it for the first time.