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

feat(localization_error_monitor): componentize LocalizationErrorMonitor #7102

Conversation

a-maumau
Copy link
Contributor

@a-maumau a-maumau commented May 23, 2024

Description

Componentize the node in localization/localization_error_monitor.
(Add glog feature to localization/localization_error_monitor)

Log output is changed from "screen" to "both".

Tests performed

confirmed that killing the localization_error_monitor process will output logs to terminal and log file

1716512717.5188143 [localization_error_monitor_node-45] [INFO] [1716512717.518408204] [rclcpp]: signal_handler(signum=15)
1716512717.5195360 [localization_error_monitor_node-45] *** Aborted at 1716512717 (unix time) try "date -d @1716512717" if you are using GNU date ***
1716512717.5202551 [localization_error_monitor_node-45] PC: @                0x0 (unknown)
1716512717.5203669 [localization_error_monitor_node-45] *** SIGTERM (@0x3e8001c1f43) received by PID 1738893 (TID 0x7f97cd2d4680) from PID 1843011; stack trace: ***
1716512717.5210240 [localization_error_monitor_node-45]     @     0x7f97cdb724d6 google::(anonymous namespace)::FailureSignalHandler()
1716512717.5217028 [localization_error_monitor_node-45]     @     0x7f97cda19ded rclcpp::SignalHandler::signal_handler()
1716512717.5225272 [localization_error_monitor_node-45]     @     0x7f97cd042520 (unknown)
1716512717.5226343 [localization_error_monitor_node-45]     @     0x7f97cd091117 (unknown)
1716512717.5232298 [localization_error_monitor_node-45]     @     0x7f97cd093a41 pthread_cond_wait
1716512717.5233326 [localization_error_monitor_node-45]     @     0x7f97ccf84a8d ddsrt_cond_wait
1716512717.5238414 [localization_error_monitor_node-45]     @     0x7f97ccf84b55 ddsrt_cond_waituntil
1716512717.5241320 [localization_error_monitor_node-45]     @     0x7f97ccf6b45d (unknown)
1716512717.5244241 [localization_error_monitor_node-45]     @     0x7f97cd27d74f rmw_wait
1716512717.5249081 [localization_error_monitor_node-45]     @     0x7f97cd7a7848 rcl_wait
1716512717.5251999 [localization_error_monitor_node-45]     @     0x7f97cd9611b6 rclcpp::Executor::wait_for_work()
1716512717.5254908 [localization_error_monitor_node-45]     @     0x7f97cd9616d3 rclcpp::Executor::get_next_executable()
1716512717.5257826 [localization_error_monitor_node-45]     @     0x7f97cd965c81 rclcpp::executors::SingleThreadedExecutor::spin()
1716512717.5258369 [localization_error_monitor_node-45]     @     0x5584e7503486 main
1716512717.5261097 [localization_error_monitor_node-45]     @     0x7f97cd029d90 (unknown)
1716512717.5261624 [localization_error_monitor_node-45]     @     0x7f97cd029e40 __libc_start_main
1716512717.5262039 [localization_error_monitor_node-45]     @     0x5584e7503e35 _start
1716512717.5272274 [ERROR] [localization_error_monitor_node-45]: process has died

Effects on system behavior

Not applicable.

Interface changes

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

a-maumau added 3 commits May 23, 2024 16:02
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
@github-actions github-actions bot added the component:localization Vehicle's position determination in its environment. (auto-assigned) label May 23, 2024
pre-commit-ci bot and others added 2 commits May 23, 2024 07:12
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
@a-maumau a-maumau changed the title feat(localization_error_monitor): add glog to LocalizationErrorMonitor feat(localization_error_monitor): componentize LocalizationErrorMonitor May 24, 2024
@SakodaShintaro SakodaShintaro added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 24, 2024
Copy link
Contributor

@SakodaShintaro SakodaShintaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked again and confirmed that the errors were properly logged to the file.
Thanks a lot!

@SakodaShintaro SakodaShintaro merged commit 11f010a into autowarefoundation:main May 24, 2024
37 of 39 checks passed
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…or (autowarefoundation#7102)

* remove unusing main func file

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* add and mod to use glog

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change name to localization_error_monitor

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* style(pre-commit): autofix

* rm dependencies

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change log output from screen to both

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

---------

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
a-maumau added a commit to a-maumau/autoware.universe that referenced this pull request Jun 7, 2024
…or (autowarefoundation#7102)

* remove unusing main func file

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* add and mod to use glog

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change name to localization_error_monitor

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* style(pre-commit): autofix

* rm dependencies

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change log output from screen to both

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

---------

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@a-maumau a-maumau deleted the mau/feat/localization/localization_error_monitor branch July 22, 2024 06:17
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
…or (#7102)

* remove unusing main func file

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* add and mod to use glog

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change name to localization_error_monitor

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* style(pre-commit): autofix

* rm dependencies

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* change log output from screen to both

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

---------

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:localization Vehicle's position determination in its environment. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants