-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add a utility for spawning subprocesses #98
Conversation
Signed-off-by: Michael Carroll <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-utils2 #98 +/- ##
==============================================
- Coverage 91.97% 79.45% -12.52%
==============================================
Files 6 8 +2
Lines 137 331 +194
==============================================
+ Hits 126 263 +137
- Misses 11 68 +57
|
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment
Co-authored-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
🎉 New feature
Summary
This includes the unlicensed header-only
subprocess.h
from https://github.com/sheredom/subprocess.hThis gives a uniform, cross-platform way of spawning executables and interacting with them from a C++ application. Importantly, it allows for reading both cout and cerr.
The intention is to use this to remove any custom executable calling that we have throughout the remainder of the Gazebo stack.
Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.