Skip to content
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

One column in the joint bars cause some problems to layout #2

Open
torydebra opened this issue Jul 17, 2020 · 1 comment
Open

One column in the joint bars cause some problems to layout #2

torydebra opened this issue Jul 17, 2020 · 1 comment

Comments

@torydebra
Copy link
Member

Hi, I am using your GUI, and noticed a thing. When joints are less than 8, one column is used (ca51808).
Have you tested this thing? On my "fork" the result is this:
Schermata del 2020-07-17 16-15-34

By the way, I am not sure if this is caused by my modifications, or it is a problem that also robot_monitoring has

@torydebra
Copy link
Member Author

Returning to this after ages, just a thing that can improve the visualization and save space if joints are only a few: in the bar_plot_widget


could be useful to remove the columns if they are empty:

  //remove layout if it is empty to handle better the space
  if (bars_layout_center->count() == 0) {
      bars_layout_center->setParent(nullptr);
      auto line = findChild<QWidget *>("line_2");
      line->setVisible(false);
  }
  if (bars_layout_right->count() == 0) {
      bars_layout_right->setParent(nullptr);
      auto line = findChild<QWidget *>("line");
      line->setVisible(false);
  }

@alaurenzi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant