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

Add map background to 2D plot #249

Open
Nanoseb opened this issue May 16, 2018 · 4 comments
Open

Add map background to 2D plot #249

Nanoseb opened this issue May 16, 2018 · 4 comments
Assignees

Comments

@Nanoseb
Copy link
Member

Nanoseb commented May 16, 2018

We have a brand new 2D plot tool, it could be nice to have a map in the background.

Here is a couple of lib that could work:

@TAJD
Copy link

TAJD commented May 17, 2018

I don't know what sort of things you are using/looking at but I've had success with using Bokeh which uses Google in the background.

The strong/weak point is the plotting functionality - it isn't quite as modifiable as pyplot but it still looks good. What is quite fun is the ability to run little web apps written basically in code file which allow you to play with the data and plot it real time.

@tsaoyu
Copy link
Member

tsaoyu commented Jun 3, 2018

We had a bit trouble on 2D plot when testing on this Sat.
The problem is the plot region is hard coded and no GPS is shown when boat is far away from these waypoints:

https://github.com/Maritime-Robotics-Student-Society/sailing-robot/blob/master/src/sailing_robot/scripts/debugging_2D_plot_matplot#L115

How about re-enable the dynamic scaling?

Nanoseb added a commit that referenced this issue Jun 6, 2018
it now scales so that the boat and the waypoints are always visible

see #249
Nanoseb added a commit that referenced this issue Jun 6, 2018
@Nanoseb
Copy link
Member Author

Nanoseb commented Jun 6, 2018

Just implemented a 1st version of the background map, it works quite well, but it needs an internet connection...
I am planning to do a separate script that will, given a usual waypoint parameter file, download the .png of the map, and the live 2d plot will just display the png if available.

@Nanoseb Nanoseb self-assigned this Jun 6, 2018
@Nanoseb
Copy link
Member Author

Nanoseb commented Jun 7, 2018

this is done with 3bddc80 , I just have to write some doc about it.

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

No branches or pull requests

3 participants