-
Notifications
You must be signed in to change notification settings - Fork 48
feat: monitor if sim and robotic stack processes are running #445
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
Closed
MagdalenaKotynia
wants to merge
10
commits into
development
from
feat/monitor-if-sim-and-robotic-stack-processes-are-running
Closed
feat: monitor if sim and robotic stack processes are running #445
MagdalenaKotynia
wants to merge
10
commits into
development
from
feat/monitor-if-sim-and-robotic-stack-processes-are-running
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f4a3e20
to
5c39152
Compare
f468252
to
0d81771
Compare
6901993
to
a4476c5
Compare
a4476c5
to
12b085c
Compare
Converted back to draft because minor change may be needed due to change from bbc6bc2 that was merged today to development |
…separate class, modified monitor_process method by sending sigint to main process
…ready is psutil.Process
Related to the change in bbc6bc2.
12b085c
to
39e7541
Compare
closing this PR, the issue that it tried to resolve -> #571 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
To monitor whether the sim and robotic stack processes are working in case the binary or robotic stack processes are unexpectedly terminated.
Proposed Changes
Implemented the
_monitor_processes
method that is run as a thread monitoring the required processes in the background. On the O3DExROS2Bridge example, when a problem with a process is detected, SIGINT is sent to the main script process and then the simulation bridge, connector, and ros2 are shut down.Added minor fix of setup_scene method in 39e7541, related to bbc6bc2.
Issues
To handle the unexpected termination of the binary and robotic stack processes (like this #435 (comment)).
Testing
poetry install --with openset colcon build --symlink-install source setup_shell.sh
Click to download GameLauncher binary from s3 bucket: humble or jazzy.
Populate
src/rai_bench/rai_bench/o3de_test_bench/configs/o3de_config.yaml
with the following content and adjust the path to binary:Populate the following script in the rai root dir, and run it.
Tested cases
I tested it by:
Note
I am going to add example script in README in separate PR #468 when this PR and #452 are merged. There are changes related to binary structure (possibility to use levels) in #452 and taking into account changes from both PRs to update README will be needed.
In #468
connector_config_path
is also going to be changed tobridge_config_path
to fit the changed naming convention.Note
If the changes from this PR are accepted and #452 is merged, I suggest using monitoring in the o3de_test_benchmark_script.py as well.