homeskies / uw_fetch

Bringup and other robot dependent code
0 stars 0 forks source link

Finish map annotator UI #17

Closed WxyElaine closed 4 years ago

WxyElaine commented 4 years ago

Now we have a browser-based SVG editor. I removed the rws-app branch and added this branch so that this one is only used for developing map annotator.

nickswalker commented 4 years ago

Screenshot from 2020-05-01 15-20-44 Notes from testing:

nickswalker commented 4 years ago

Map rename is implemented now: https://github.com/utexas-bwi/knowledge_representation/commit/3ed5cb9c253b7dabdf7f3a207866e65eb4cd6e91

nickswalker commented 4 years ago

I've added a file->db loading functionality to knowledge representation here. It's based on the format of the SVG as of the latest commit on this PR.

Some comments on the format now that I've played with the sample annotation you sent (shown in Inkscape below): Screenshot from 2020-05-22 16-26-16

WxyElaine commented 4 years ago
nickswalker commented 4 years ago

Hm it actually does render for me in Safari and Chrome on macOS 10.15.

Sure, a local mode sounds good, and in that case the annotation format is fine as is.

WxyElaine commented 4 years ago

Hm it actually does render for me in Safari and Chrome on macOS 10.15.

Umm...the background doesn't show up on my Safari (macOS 10.15), but does show up on Chrome and the Safari on my phone.

nickswalker commented 4 years ago

I tested out the latest version by annotating the house sim (result here). It's still a little uncomfortable to navigate around the map because the view of the map is small, and I kept holding middle mouse button to try to pan and accidentally moving regions, but I was able to make and save all the annotations I wanted. We should work to merge this in now.

I did have to comment out an import, and then the line that removes the robotpose from the svg before saving (something about the element not being a child of the clone, happened after a couple saves). Somehow some poses appeared without a head on insertion, but they worked normally otherwise.

WxyElaine commented 4 years ago

I fix the bug with removing robot pose from download copy in the latest commit.

I worked on all the frontend updates in Chrome, and they all worked fine. But I just tried the interface in Firefox, and Firefox calculates the event.offsetX and event.offsetY different from Chrome, so that the drag&drop behaves wired in Firefox. Which browser did you use?

nickswalker commented 4 years ago

This will land in homeskies/uw_common#16