Repository navigation
Multi component view - #1729
Multi component view#1729
Conversation
…ses. Addition of a notion of main component (for saves in db) abd a node selection tool.
|
Hi, Now should be ready for PR although more natural extensions could be implemented. Added features and notes about them:
Natural follow ups would be
Note that I would totally understand if you find that those are too radical changes / complications in the DatabaseViewer in which case I'll be happy to keep them in my personal fork ! |
|
Thanks for the PR with these new features. The changes in DatabaseViewer are relatively large, may take some time to review. I like the components approach and that we can zoom to a node in the graph view from the image of it. I didn't see yet your latest changes, but I wonder if having dozen of components would make the "tabs" too cluttered... like tabs on a browser. Keeping only one GraphViewer is simpler though, because many actions (like Export Poses or Export Clouds) rely on the current state of the GraphView. |
|
Hi Mathieu, Thanks for your answer. Here is a video that sums up the new changes. The other changes in the code are mainly fixes and polishing for the initial commit (dealing with optimization flavor and rotations, optimized poses). github_multicomponentview2.mp4I generated "too many components" on the video so that you can see what it looks like, to me it looks ok and anyway there should never be dozens of components right ? I originally used a slider but found it less natural to use. Totally fine that it will take some time to review, I expected that :) About the one GraphView, yes I eventually leaned towards that because it could integrate more naturally to the existing philosophy. Having a "main" component is also going in that direction: only that component can have specific things saved in the db like 2D map of optimized poses. |
…o elidiot18-multicomponentview
|
Thanks for the demo. There are many features I would want to get in. Would you let me refactor it? I have a couple of questions before doing it:
Minor bugs:
In terms of timing, I have a couple of free days in 2 weeks, I could look at implementing the above and merge it. |
|
Hi Mathieu, Thank you for your first review !
Of course
The goal was to elect one component that's allowed to have its optimized poses and optimized mesh / 2D map saved in db. Otherwise it would overwrite the db at each tab change.
Sure, I thought that introducing this "main component thing" was less brutal and I wanted my changes to be non destructive. But if you feel that's the right workflow then absolutely.
I missed that subtlety,then maybe either the multi component mode should be active, or only one component in the classic mode. I tried to integrate what I wanted to add given my understanding of rtabmap and the dbviewer but obviously there are some things that I'm missing so my pr should be fixed accordingly!
I think this would work. The issue would be changing component as you noticed, unfortunately when one of the components is very large, switching within the small ones is quite long. I'll try to have a look at why this is the case but probably there is an easy fix to that.
Sure everything I proposed is more of a suggestion
Yes !
I tried but failed, lack of experience with Qt I believe :) I'd love if this is possible.
Agreed, I wanted your opinion on the selection feature before implementing all this myself :)
I'm confused, isn't the new parameter
Yes I implemented this at first when I was generating maps for all components but then I thought it was easier to just allow it for the main one. Currently updateGraphView is called when changing component because they are re optimized according to the optimization flavour cached parameter. But maybe cached optimized poses can be used by default on a component switch.
Thanks for finding those bugs. I can also help with fixing the issues you mentioned, but I can't know for sure if I do it the way you would. Best |
Unless you would want sooner some of the suggestions I've made, you can look at implementing them. I won't really have time to work on this for the next two weeks. |
|
This is great :) |

Hi,
I tried to implement a multi component framework for the graph canvas. Useful when a reprocess was not able to join all pieces, or when user wants to get rid of a short sequence causing drift while keeping track of the removed piece; also I have other ideas for follow up impovements based on that feature. A small feature allowing to jump on the node corresponding to the displayed image was also implemented.
edit: draft, needs more work.
github_multicomponentview.mp4
PS: Note that for integrating to the main project with minimal changes and keeping the "optimization from fromId" philosophy, I kept only one QGraphicsView, which means that going from one component to the other implies to first backup all current parameters, then change component and restore all parameters of the new component. This way, the new feature is mainly some new code plugged on top rather than a redesign. Maybe it would be cleaner though to dedicate one QGraphicsView per component instead ?