Closed WxyElaine closed 4 years ago
Notes from testing:
uw_common
<image>
tag, but I see that Chrome doesn't render externally linked PGMs. Still, this would be give a way to avoid duplicating the map itself: user uploads PGM, dump PGM onto a canvas for display. Allow drawing of annotations. When user downloads, put all annotations into SVG format, then add an Map rename is implemented now: https://github.com/utexas-bwi/knowledge_representation/commit/3ed5cb9c253b7dabdf7f3a207866e65eb4cd6e91
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):
line
s and polygon
s, aren't directly editable in inkscape. This seems like a really dumb Inkscape limitation to me, especially since they can be made editable just by hitting a button that converts them to a path... But we could work around it by representing both of these annotation types as path
sline
and polygon
to path
since we can do local editing using this interface?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.
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.
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.
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?
This will land in homeskies/uw_common#16
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.