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(system_error_monitor): output emergency reason for debugging #510

Merged

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Mar 11, 2022

Related Issue(required)

Resolves #508

Description(required)

output latent fault (as rclcpp warn) and single point fault (as rclcpp error) in system_error_monitor

Review Procedure(required)

Related PR(optional)

Pre-Review Checklist for the PR Author

PR Author should check the checkboxes below when creating the PR.

If you are adding new package following items are required:

  • Documentation with description of the package is available
  • A sample launch file and parameter file are available if the package contains executable nodes

Checklist for the PR Reviewer

Reviewers should check the checkboxes below before approval.

  • Commits are properly organized and messages are according to the guideline
  • PR title describes the changes

Post-Review Checklist for the PR Author

PR Author should check the checkboxes below before merging.

  • All open points are addressed and tracked via issues or tickets

CI Checks

  • Build and test for PR / build-and-test-pr: Required to pass before the merge.
  • Build and test for PR / clang-tidy-pr: NOT required to pass before the merge. It is up to the reviewer(s). Found false positives? See the [guidelines][clang-tidy-guidelines].
  • Check spelling: NOT required to pass before the merge. It is up to the reviewer(s). See here if you want to add some words to the spell check dictionary.

@takayuki5168 takayuki5168 changed the title Feature/print emergency reaon feat(system_error_monitor): print emergency reaon Mar 11, 2022
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 changed the title feat(system_error_monitor): print emergency reaon feat(system_error_monitor): output emergency reason for debugging Mar 11, 2022
@takayuki5168
Copy link
Contributor Author

  • Just launching autoware with simple psim, no debug message is output every 5s cycle.

  • After positioning the ego vehicle, debug message is output every 5s cycle as follows
    image

  • After putting the goal pose, no debug message is output every cycle.

  • When putting the ego out of lane, single point fault of lane_departure_checker occurs, and debug message is output every 5s cycle as follows
    image

@takayuki5168 takayuki5168 changed the title feat(system_error_monitor): output emergency reason for debugging feat(system_error_monitor): output emergency reason for debugging Mar 11, 2022
@takayuki5168 takayuki5168 marked this pull request as ready for review March 11, 2022 17:16
@codecov
Copy link

codecov bot commented Mar 11, 2022

Codecov Report

Merging #510 (ce58358) into main (f9c2be7) will decrease coverage by 10.97%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #510       +/-   ##
==========================================
- Coverage   10.97%   0.00%   -10.98%     
==========================================
  Files         705       3      -702     
  Lines       49807     281    -49526     
  Branches     7119       0     -7119     
==========================================
- Hits         5464       0     -5464     
+ Misses      39957     281    -39676     
+ Partials     4386       0     -4386     
Impacted Files Coverage Δ
...em_error_monitor/src/system_error_monitor_core.cpp 0.00% <0.00%> (ø)
...y_planner/src/scene_module/traffic_light/scene.cpp
..._error_monitor/src/planning_error_monitor_node.cpp
...toware_auto_geometry/include/geometry/interval.hpp
vehicle/raw_vehicle_cmd_converter/src/node.cpp
.../raw_vehicle_cmd_converter/src/steer_converter.cpp
...llower/test/test_longitudinal_controller_utils.cpp
...re_auto_geometry/include/geometry/lookup_table.hpp
...ternal_cmd_selector/external_cmd_selector_node.cpp
...ocity_converter/src/vehicle_velocity_converter.cpp
... and 693 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0534cc0...ce58358. Read the comment docs.

@takayuki5168
Copy link
Contributor Author

It might be better not to output hazard_diag.message since it is just Warning or Error

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168
Copy link
Contributor Author

  • a bit long error output every 5 sec, after positioning ego pose
    image

  • put ego pose out of lane, and error output every 5 sec for lane_departure_checker
    image

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Copy link
Contributor

@kenji-miyake kenji-miyake left a comment

Choose a reason for hiding this comment

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

If it's re-tested, LGTM.

@takayuki5168
Copy link
Contributor Author

Thank you. I retested, and confirmed it works well.

My concern is after positioning ego pose and before positioning goal pose, a bit long error is output every 5 secs.
How do you feel?
image

@kenji-miyake
Copy link
Contributor

@takayuki5168 In that case, you can add some states to ignore.

@kenji-miyake
Copy link
Contributor

Ideally, we should extend system_error_monitor to understand which diagnostics can be ignored in each state respectively.
But since it takes time we can ignore them globally (apply the same settings for all diagnostics) for now.

@takayuki5168
Copy link
Contributor Author

I think planning_error_monitor does not have to output error for no messages coming, since whether there are required messages or not is seen in another monitoring.

@takayuki5168
Copy link
Contributor Author

#515
I created another PR to suppress error of planning_error_monitor.

I'll merge this PR after planning_error_monitor's PR is merged.

satoshi-ota pushed a commit to satoshi-ota/autoware.universe that referenced this pull request Mar 14, 2022
* release v0.4.0

* remove ROS1 packages temporarily

Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>

* add sample ros2 packages

Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>

* remove ROS1 packages

Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>

* Revert "remove ROS1 packages temporarily"

This reverts commit ac428d4af68ef0b51992d31f692dd9aae9a4a944.

Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>

* add COLCON_IGNORE to ros1 packages

Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>

* Unify Apache-2.0 license name (autowarefoundation#1242)

* Port autoware rosbag recorder to ros2 (autowarefoundation#1569)

* Port autoware rosbag recorder to ros2

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>

* Update record.sh

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Add shellcheck (autowarefoundation#2079)

* Add shellcheck

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix shellcheck

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Change formatter to clang-format and black (autowarefoundation#2332)

* Revert "Temporarily comment out pre-commit hooks"

This reverts commit 748e9cdb145ce12f8b520bcbd97f5ff899fc28a3.

* Replace ament_lint_common with autoware_lint_common

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Remove ament_cmake_uncrustify and ament_clang_format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply Black

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply clang-format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix build errors

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix for cpplint

* Fix include double quotes to angle brackets

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply clang-format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix build errors

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Add COLCON_IGNORE (autowarefoundation#500)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove COLCON_IGNORE (autowarefoundation#510)

Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp>

* Auto/add readme common pkg (autowarefoundation#567)

* add description to global paraemeter loader

* add readme to rosbag recorde

* fix typo

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Fix Format

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Clarify the description

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Fix Typo

Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp>

* proper description

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>
Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp>

* fix topic name

* fix topic name

Co-authored-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>
Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>
Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com>
Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp>
Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com>
satoshi-ota pushed a commit to satoshi-ota/autoware.universe that referenced this pull request Mar 14, 2022
* Move autoware_global_parameter_loader to the appropriate place (autowarefoundation#1701)

* Move autoware_global_parameter_loader to the appropriate place

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix package name

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Rename vehicle_info param arg to avoid conflicts (autowarefoundation#2074)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Change formatter to clang-format and black (autowarefoundation#2332)

* Revert "Temporarily comment out pre-commit hooks"

This reverts commit 748e9cdb145ce12f8b520bcbd97f5ff899fc28a3.

* Replace ament_lint_common with autoware_lint_common

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Remove ament_cmake_uncrustify and ament_clang_format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply Black

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply clang-format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix build errors

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix for cpplint

* Fix include double quotes to angle brackets

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Apply clang-format

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Fix build errors

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Add COLCON_IGNORE (autowarefoundation#500)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove COLCON_IGNORE (autowarefoundation#510)

Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp>

* Auto/add readme common pkg (autowarefoundation#567)

* add description to global paraemeter loader

* add readme to rosbag recorde

* fix typo

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Fix Format

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Clarify the description

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>

* Fix Typo

Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp>

* proper description

Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>
Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp>

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com>
Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp>
Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com>
Co-authored-by: Kazuki Miyahara <kmiya@outlook.com>
Co-authored-by: Takeshi Miura <57553950+1222-takeshi@users.noreply.github.com>
@takayuki5168 takayuki5168 merged commit 3108a01 into autowarefoundation:main Mar 18, 2022
@takayuki5168 takayuki5168 deleted the feature/print-emergency-reaon branch March 18, 2022 01:35
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…er4#510)

* feat(system_error_monitor): output emergency reason for debugging

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* print all emergency reasons with 5 sec throttle using macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* not use macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use const std::shared_ptr for argument of clock

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use enum class for DebugLevel

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* resolved review's comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…er4#510)

* feat(system_error_monitor): output emergency reason for debugging

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* print all emergency reasons with 5 sec throttle using macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* not use macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use const std::shared_ptr for argument of clock

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use enum class for DebugLevel

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* resolved review's comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…er4#510)

* feat(system_error_monitor): output emergency reason for debugging

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* print all emergency reasons with 5 sec throttle using macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* not use macros

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use const std::shared_ptr for argument of clock

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* use enum class for DebugLevel

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* resolved review's comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
kosuke55 pushed a commit to kosuke55/autoware.universe that referenced this pull request May 29, 2023
…on#510)

feat: use time_to_change_lane

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>
kyoichi-sugahara pushed a commit that referenced this pull request Sep 16, 2023
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

Successfully merging this pull request may close these issues.

Easier way to find the emergency reason
2 participants