-
Notifications
You must be signed in to change notification settings - Fork 673
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
fix(system_monitor): change communication to unix domain socket #2608
Conversation
Signed-off-by: ito-san <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2608 +/- ##
==========================================
- Coverage 11.94% 11.38% -0.57%
==========================================
Files 1321 1276 -45
Lines 91859 88286 -3573
Branches 24467 23077 -1390
==========================================
- Hits 10975 10053 -922
+ Misses 69528 67570 -1958
+ Partials 11356 10663 -693
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: ito-san <[email protected]>
…e into fix/hdd_monitor Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
This reverts commit 0ac80b2.
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
Signed-off-by: ito-san <[email protected]>
@asana17 Sorry but many changes were made. Verified hdd_monitor works correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hdd_monitor
functions are LGTM.
From the parameter file hdd_monitor.param.yaml
, can't multiple local HDDs or disks other than "disk0" currently be monitored?
This can be solved in future PR. so I remain it. |
This pull request has been automatically marked as stale because it has not had recent activity. |
This pull request has been automatically marked as stale because it has not had recent activity. |
This pull request has been automatically marked as stale because it has not had recent activity. |
@ito-san is this PR still relevant? Could you rebase this if it's necessary? |
@ito-san I will close this issue since there was no response. Feel free to reopen if necessary. |
Pull request was closed
Signed-off-by: ito-san [email protected]
Description
There is a bug that the ROS node
hdd_monitor
communicates with the daemon processhdd_reader
running on another ECU instead of that running on local computer when system_monitor runs on multiple ECUs at the same time.The
hdd_monitor
andhdd_reader
usesINADDR_ANY
for socket programming, and the socket was bound to all network interfaces instead of localhost only.The ROS node and daemon process is designed to communicate within localhost only, so I made a change to use an UNIX domain socket for local socket communication.
Changes
/tmp/hdd_reader
) instead ofINADDR_ANY
.Related links
TIER IV INTERNAL LINK TO SLACK
Tests performed
Verify all diagnostic topics regarding
hdd_monitor
are reported correctly.Run Autoware.
Run rqt_runtime_monitor.
ros2 run rqt_runtime_monitor rqt_runtime_monitor
HDD Connection
HDD Usage
HDD Temperature
HDD PowerOnHours
HDD TotalDataWritten
HDD Recovered Error
HDD ReadDataRate
HDD ReadIOPS
HDD WriteDataRate
HDD WriteIOPS
Verify no warning and error messages in a normal run.
Notes for reviewers
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.