-
Notifications
You must be signed in to change notification settings - Fork 132
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
rqt_bag publishes wrong topic after scrolling #320
Comments
Are you saying you pause the playback and scroll and then restart play and it changes the publisher? or just scrolling causes publishers to go crazy? Please list the steps I need to take to reproduce. |
I've seen this too. When you scroll the list of topics, the right click is associated with the incorrect topic. Instead of publishing or showing the topic under the mouse, it publishes or shows whatever topic was in that location when the scrollbar is at the top. To reproduce:
I expect that rqt_bag fails to take into account scrolling when determining which topic is under the mouse cursor. |
Looks like the "map_y_to_topic" function doesn't take scrolling into account. It uses the "screen Y" and instead of translating it into "Scene Y" The function we want here is this one: http://doc.qt.io/qt-5/qgraphicsview.html#mapToScene-5 |
I gave it a try. Basically calling Maybe related: the scrollbar disappears or does not resize from time to time, the window's width needs to resized to bring it back or make it adjust. there are some notes in |
What is the status of this issue"? @ablasdel If this is still present, I can give a try fixing this. |
I'm using version 0.3.12 of rqt_bag and are still seeing the issue. As soon as you scroll the list of topics, right click still target a different topic. |
@reinzor I unfortunately haven't had a chance to give this a look. If you can figure it out please go for it! |
Submitted a quick fix as PR: I think there should be a more pretty solution but I don't have enough knowledge about the structure at the moment. |
I'm looking at your PR reinzor. Will let you know if it works for me as well. Thanks for the prompt action here. |
@reinzor Your version has an extra 'plot' entry in the context menu 'view' submenu. Don't know what it's for but it hangs rqt_bag if selected... |
@guillaumeautran , what do you mean with the extra 'plot' entry? I only changed the input op the map_y_to_topic function:
|
Definitely not related to your change but since I did not have that option in the menu before and it does seem to hang rqt_bag, I just wanted to make sure it is not a regression for a new feature... |
Plot has existed for awhile now. It should be acceptable to ignore it in the context of this issue. Please create another issue for plot related hanging. This mapping looks like what should be happing with a map to scene call. I haven't had a chance to test this. Has it solved this for you guilla? |
Sounds good. Yes, your fix solves my usecase. Thanks. |
Fix is merged |
If I right click and publish in rqt_bag, everything works fine as long as I scroll to the top of the topic list. As soon as I scroll down, a different topic than the one I actually click on is published. It's like the scrolling works visually, but if I click on a topic it always takes the one that would have been there if I never scrolled down.
Operating system is Ubuntu 14.04.
The text was updated successfully, but these errors were encountered: