Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe diagnostic publisher now adds descriptive messages for five normal statuses. ROS diagnostic conversion now includes non-empty messages in alerts for OK statuses. ChangesDiagnostic message propagation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The PR makes a small, localized diagnostics-message change, and no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
yassinsolim
left a comment
There was a problem hiding this comment.
Hey Ajmal, thanks for getting the PR up and making sure CI passes.
I looked through the changes. Right now, your PR mainly does two things:
- adds messages like "Normal Temperature" and "Normal Motor Current" to healthy diagnostics
- changes the diagnostics code so those messages are also kept when the status is
OK
That part works, but it is not the task we were trying to complete.
The task was to make a small command-line diagnostics tool that reads the existing /diagnostics topic and prints the results in the terminal.
What I need you to add:
- subscribe to
/diagnostics - show each signal name, status, value, unit, and message
- add a snapshot mode that prints the latest diagnostics once and exits
- add a watch mode that keeps updating in the terminal
- handle
OK,WARN,ERROR, andSTALE - show a clear message if no diagnostics are being received
- add a few tests
- add a short README with the commands to run it
You do not need to change the existing diagnostics system much. The goal is mostly to read the diagnostics that already exist.
I would also revert the change that makes normal OK messages become alert_message, since that field is meant mainly for warnings/faults.
You can keep using the same branch and PR. Just update it with the CLI tool and push the new commits.
|
all done, and will do the terminal panel over the week and ready to show by next week hopefully. should I do it here in the same pull request/branch or create a new one? |
|
Superseded by PR#16, will close this now |
just checking if my work actually sent yassine
how to build:
Terminal 1 run the following:
source /opt/ros/jazzy/setup.bash
source install/setup.bash
python3 waybionic_rviz_plugins/scripts/temporary_diagnostics_publisher.py --mode normal
Terminal 2:
cd ~/waybionic_ground_station
source /opt/ros/jazzy/setup.bash
source install/setup.bash
ros2 topic list | grep diagnostics
ros2 topic echo /diagnostics --once
ros2 launch waybionic_rviz_plugins engineer_view.launch.py
Summary by CodeRabbit