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

System Status Panel #452

Closed
2 of 3 tasks
maxwellmlin opened this issue Sep 16, 2023 · 1 comment · Fixed by #469
Closed
2 of 3 tasks

System Status Panel #452

maxwellmlin opened this issue Sep 16, 2023 · 1 comment · Fixed by #469
Assignees
Labels
gui Related to robot GUI
Milestone

Comments

@maxwellmlin
Copy link
Member

maxwellmlin commented Sep 16, 2023

Motivation

Our old rqt GUI had indicators for the system usage of our onboard computer. This helps with ensuring that our robot computer remains within safe operating levels and that there are no obvious software problems. We need to transition this plugin to our Foxglove GUI. Additionally, we are currently implementing a topic that will communicate the current battery voltage of our robot. We need to indicate this information so that we can ensure robot voltage remains within safe levels.

Requirements

  • CPU in % (Warn if >90%)
  • RAM in % (Warn if >90%)
  • Charge remaining in volts (Warn if <15 volts)

Notes

  • Create a MUI Table with 2 columns: Status Name (str) and Value (float with unit). Each row will correspond to a specific status indicator.
  • The topic you should subscribe to is /system/usage.
  • All indicators should have precision to one digit after the decimal point.
  • To warn the user, change the background color of the row to theme.palette.error.main1.

Local testing

Launch 2 onboard containers, each running one of the following commands:

roslaunch --screen foxglove_bridge foxglove_bridge.launch port:=8765

The foxglove_bridge node allows communication between onboard and our Foxglove GUI.

roslaunch system_utils system_pub.launch

system_pub.launch starts the system usage publisher.

Footnotes

  1. First, import the default MUI theme. Then, use the appropriate color.

@maxwellmlin maxwellmlin added the gui Related to robot GUI label Sep 16, 2023
@maxwellmlin maxwellmlin changed the title System Status Plugin System Status Panel Sep 16, 2023
@maxwellmlin maxwellmlin modified the milestones: Fall 2022, Fall 2023 Sep 16, 2023
@calvinlchen calvinlchen self-assigned this Oct 5, 2023
@masonwu11 masonwu11 assigned masonwu11 and unassigned calvinlchen Oct 5, 2023
@ben594 ben594 linked a pull request Oct 19, 2023 that will close this issue
@maxwellmlin
Copy link
Member Author

maxwellmlin commented Oct 26, 2023

System Status Panel needs to be made more compact.

  • Remove the panel title
  • Remove the table header
  • Add the size="small" attribute to Table
  • Remove the minWidth: 100 styling

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

Successfully merging a pull request may close this issue.

3 participants