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

fix(sensor_calibration_manager): fixed sensor calibration manager related issues #170

Merged
merged 8 commits into from
May 1, 2024

Conversation

knzo25
Copy link
Collaborator

@knzo25 knzo25 commented Apr 25, 2024

Description

Upon the release of the new api, two problems were encountered:

  • When closing the sensor calibration tools or sending sigint/sigkill to the terminal, sometimes zombie processes remained
  • When the sensor calibration manager started and there were no tfs available, the state machine got stuck and never became able to calibrate

Related links

Tickets:

Tests performed

After the Launcher configuration widget, the sensor calibration manager executes the respective launchers. In this condition, even if we close the sensor calibration manager via widget or console, no zombies remain

(can be checked with ps -aux | grep ros) or similar

Previously, if we ran the sensor calibration manager until after the launchers were executed with no autoware nor rosbag (which publishes the /tf_static), even if we started autoware or the rosbag afterwards, the calibration tool never became able to calibrate due to the design of the internal state machine. With this PR, is should be fixed

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

@knzo25 knzo25 requested a review from vividf April 25, 2024 08:56
@knzo25 knzo25 self-assigned this Apr 25, 2024
Copy link
Contributor

@vividf vividf left a comment

Choose a reason for hiding this comment

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

Looks good!
Only need some small fixes.

Copy link
Contributor

@vividf vividf left a comment

Choose a reason for hiding this comment

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

LGTM!

knzo25 added 2 commits May 1, 2024 16:48
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25
Copy link
Collaborator Author

knzo25 commented May 1, 2024

@vividf
Did you confirm that the changes fixes the issues on your environment? (the two issues this PR addresses)

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@vividf
Copy link
Contributor

vividf commented May 1, 2024

@knzo25
Yes, the button will be enabled even /tf comes later, also all of the processes are killed.

knzo25 added 3 commits May 1, 2024 16:59
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25 knzo25 merged commit 2e92ccc into tier4/universe May 1, 2024
7 of 9 checks passed
@knzo25 knzo25 deleted the fix/sensor_calibration_manager_issues branch May 1, 2024 08:15
@knzo25
Copy link
Collaborator Author

knzo25 commented May 1, 2024

@vividf Thanks for the check !

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.

2 participants