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(pose_estimator_arbiter): componentize PoseEstimatorArbiter #7183

Conversation

a-maumau
Copy link
Contributor

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

Description

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

Also, log output is changed from "screen" to "both".

Tests performed

Confirmed that terminating the pose_estimator_arbiter process will output logs to both the terminal and the log file.

1717132546.7531216 [pose_estimator_arbiter_node-79] [INFO] [1717132546.752725795] [rclcpp]: signal_handler(signum=15)
1717132546.7539675 [pose_estimator_arbiter_node-79] *** Aborted at 1717132546 (unix time) try "date -d @1717132546" if you are using GNU date ***
1717132546.7583516 [pose_estimator_arbiter_node-79] PC: @                0x0 (unknown)
1717132546.7589211 [pose_estimator_arbiter_node-79] *** SIGTERM (@0x3e8000e1b20) received by PID 2979663 (TID 0x7fbc82380680) from PID 924448; stack trace: ***
1717132546.7594931 [pose_estimator_arbiter_node-79]     @     0x7fbc82c1d4d6 google::(anonymous namespace)::FailureSignalHandler()
1717132546.7604535 [pose_estimator_arbiter_node-79]     @     0x7fbc82a19ded rclcpp::SignalHandler::signal_handler()
1717132546.7610266 [pose_estimator_arbiter_node-79]     @     0x7fbc82042520 (unknown)
1717132546.7615888 [pose_estimator_arbiter_node-79]     @     0x7fbc820912c0 (unknown)
1717132546.7616441 [pose_estimator_arbiter_node-79]     @     0x7fbc82098002 pthread_mutex_lock
1717132546.7622015 [pose_estimator_arbiter_node-79]     @     0x7fbc82965374 rclcpp::executors::MultiThreadedExecutor::run()
1717132546.7626779 [pose_estimator_arbiter_node-79]     @     0x7fbc82965808 rclcpp::executors::MultiThreadedExecutor::spin()
1717132546.7627404 [pose_estimator_arbiter_node-79]     @     0x557a1119a496 main
1717132546.7627900 [pose_estimator_arbiter_node-79]     @     0x7fbc82029d90 (unknown)
1717132546.7633214 [pose_estimator_arbiter_node-79]     @     0x7fbc82029e40 __libc_start_main
1717132546.7633750 [pose_estimator_arbiter_node-79]     @     0x557a1119ae45 _start
1717132546.7710996 [ERROR] [pose_estimator_arbiter_node-79]: 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.

@github-actions github-actions bot added the component:localization Vehicle's position determination in its environment. (auto-assigned) label May 31, 2024
@a-maumau
Copy link
Contributor Author

a-maumau commented May 31, 2024

@KYabuuchi
I am doing the componentizing on the pose_estimator_arbiter.

It seems running the following command from #6144

ros2 launch autoware_launch logging_simulator.launch.xml \
    map_path:=$HOME/MAP vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit \
    pose_source:=ndt_yabloc_eagleye_artag # or ndt_yabloc, eagleye_artag and so on

, the pose_estimator_arbiter_node process is running, but the ROS node pose_estimator_arbiter itself is not running.

In the launch log,

1717122685.1253524 [INFO] [pose_estimator_arbiter_node-79]: process started with pid [2848605]
...
1717122700.6052625 [WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
...
1717122703.2054548 [INFO] [pose_estimator_arbiter_node-79]: process has finished cleanly [pid 2848605]

Also, running the test: colcon test --event-handlers console_cohesion+ summary+ --packages-select pose_estimator_arbiter fails on the test_pose_estimator_arbiter.py with

.., line 170, in test_node_link
self.assertGreater(len(self.ndt_relayed), 5)
AssertionError: 0 not greater than 5

This also should indicate the node is not running.

Do you have any suggestion or solution for this?

@KYabuuchi
Copy link
Contributor

@a-maumau I will check soon. Please wait 🙏

@a-maumau a-maumau marked this pull request as ready for review May 31, 2024 05:25
@KYabuuchi KYabuuchi added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 31, 2024
Copy link
Contributor

@KYabuuchi KYabuuchi left a comment

Choose a reason for hiding this comment

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

Thank you for your contributions! LGTM

@KYabuuchi KYabuuchi merged commit b3c83d5 into autowarefoundation:main May 31, 2024
21 of 22 checks passed
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…warefoundation#7183)

* mod to componentize and use glog

Signed-off-by: a-maumau <[email protected]>

* change log output from screen to both

Signed-off-by: a-maumau <[email protected]>

* style(pre-commit): autofix

* Update localization/pose_estimator_arbiter/CMakeLists.txt

add namespace

Co-authored-by: Kento Yabuuchi <[email protected]>

* remove unusing main func

Signed-off-by: a-maumau <[email protected]>

---------

Signed-off-by: a-maumau <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kento Yabuuchi <[email protected]>
a-maumau added a commit to a-maumau/autoware.universe that referenced this pull request Jun 7, 2024
…warefoundation#7183)

* mod to componentize and use glog

Signed-off-by: a-maumau <[email protected]>

* change log output from screen to both

Signed-off-by: a-maumau <[email protected]>

* style(pre-commit): autofix

* Update localization/pose_estimator_arbiter/CMakeLists.txt

add namespace

Co-authored-by: Kento Yabuuchi <[email protected]>

* remove unusing main func

Signed-off-by: a-maumau <[email protected]>

---------

Signed-off-by: a-maumau <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kento Yabuuchi <[email protected]>
@a-maumau a-maumau deleted the mau/feat/localization/pose_estimator_arbiter branch July 22, 2024 06:17
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
* mod to componentize and use glog

Signed-off-by: a-maumau <[email protected]>

* change log output from screen to both

Signed-off-by: a-maumau <[email protected]>

* style(pre-commit): autofix

* Update localization/pose_estimator_arbiter/CMakeLists.txt

add namespace

Co-authored-by: Kento Yabuuchi <[email protected]>

* remove unusing main func

Signed-off-by: a-maumau <[email protected]>

---------

Signed-off-by: a-maumau <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kento Yabuuchi <[email protected]>
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