-
Notifications
You must be signed in to change notification settings - Fork 466
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 new imagepanel, but it doesn't display correctly. #1605
Comments
redo |
This works without problems on my side. Did you configure an image topic to read from? This question should be better asked at https://answers.ros.org. Please, post real issues and bug reports here. |
It's a problem that's probabilistically recurring. You can try to add imagepanel few more times, and the problem will recur, and you don't need to select any topics. |
Obviously, I missed the actual problem. Could you please more explicitly explain your problem? |
Environment:
Operation procedure: Expect result: Actual results: Location Information rviz/src/rviz/visualization_frame.cpp Lines 1406 to 1432 in ba536b2
fix way: PanelDockWidget* dock;
dock = new PanelDockWidget(name);
addDockWidget(area, dock);
dock->setFloating(floating);
dock->setContentWidget(panel);
dock->setObjectName(name); // QMainWindow::saveState() needs objectName to be set. |
If I understand correctly, you suggest to change the order of calls: First call addDockWidget() and then setContentWidget(), which will save a call to |
yes , your understanding is right. I add a imagepanel from displaypanel. I add log print in QtOgreRenderWindow ::resizeEvent and it print log is [ INFO] [1617766276.440939400]: rviz version 1.13.16 OgreRenderWindow resize:543;688 DisplaysPanel addNew end:11:31:21 055055 OgreRenderWindow resize:342;166 but if imagepanel display image is not in the right way and log print is [ INFO] [1617766201.796327700]: rviz version 1.13.16 OgreRenderWindow resize:543;688 DisplaysPanel addNew end:11:30:07 507507 OgreRenderWindow resize:342;166 OgreRenderWindow resize:640;480 There are one more resize event had happend than the normal one. so that I adjusted the order of widgets added. addDockWidget first , and then setContentWidget. Magically , the problem well , In order to be able to keep the same behavior pattern, dock->setFloating is parameter must be false, the dockwidget will docked in the leftarea. |
Thanks for this clarification. Could you please file a PR with your solution? Thanks. |
Fixed via #1611. |
When I add imagepanel, there is always a display error. I tried many ways, but I couldn't fix the problem. Can you fix it?
The text was updated successfully, but these errors were encountered: