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

Incomplete Resource Release on Shutdown in Autoware with ROS2 #6941

Open
3 tasks done
sgNicola opened this issue May 8, 2024 · 1 comment
Open
3 tasks done

Incomplete Resource Release on Shutdown in Autoware with ROS2 #6941

sgNicola opened this issue May 8, 2024 · 1 comment
Labels
component:system System design and integration. (auto-assigned)

Comments

@sgNicola
Copy link

sgNicola commented May 8, 2024

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

When shutting down Autoware that utilizes ROS2, there is an observed issue where not all ROS2-related resources are fully released. This incomplete release of resources causes problems during subsequent attempts to launch Autoware, preventing normal initialization. Shutting down using Ctrl+C does not seem to effectively manage the cleanup of all active resources.
2023-10-31_13-52

Expected behavior

Upon shutting down Autoware, all resources, especially those tied to ROS2, should be fully released, ensuring that the system is clean and ready for a new startup without any issues.

Actual behavior

Resources remain engaged or partially active after Autoware is shut down using Ctrl+C. This leads to difficulties when attempting to restart Autoware. The only workaround is either system reboot or forceful termination of all ROS-related processes using commands like pkill -f 'ros'.

Steps to reproduce

  1. Start Autoware with ROS2 integration.
  2. After running some processes, attempt to shut down the system using Ctrl+C.
  3. Attempt to relaunch Autoware.

Versions

-OS:Ubuntu 20.04
-ROS2: ROS2 galactic
-Autoware: Autoware.universe galactic

Possible causes

Resource Management

Additional context

No response

@meliketanrikulu meliketanrikulu added the component:system System design and integration. (auto-assigned) label May 9, 2024
@meliketanrikulu
Copy link
Contributor

Hello @sgNicola . Thanks for your sharing. Here I understand that the resources connected to ROS2 remain open after Autoware is closed. Could you explain this a little bit? When you run the ros2 node list command, did you see that there were active nodes? Or do you think TFs are still active?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned)
Projects
None yet
Development

No branches or pull requests

2 participants