-
Notifications
You must be signed in to change notification settings - Fork 284
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
Standalone gz model
executable
#2724
base: gz-sim9
Are you sure you want to change the base?
Conversation
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
src/cmd/CMakeLists.txt
Outdated
get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | ||
if(NOT GENERATOR_IS_MULTI_CONFIG) | ||
list(APPEND test_sources | ||
../gz_TEST.cc |
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.
Since we're not migrating gz
, we should probably keep it there. Also, Should we move ModelCommandAPI_TEST.cc
in this directory? Using source files from the parent directory seems odd to me.
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.
I have also moved gz_TEST.cc
into cmd
because it currently contains one model-related test
Line 284 in 4b6445f
TEST(CmdLine, GZ_UTILS_TEST_DISABLED_ON_WIN32(ModelHelpVsCompletionFlags)) |
src/cmd/CMakeLists.txt
Outdated
# Running `gz sim` on macOS has problems when run with /usr/bin/ruby | ||
# due to System Integrity Protection (SIP). Try to find ruby from | ||
# homebrew as a workaround. | ||
if (APPLE) | ||
find_program(BREW_RUBY ruby HINTS /usr/local/opt/ruby/bin) | ||
endif() |
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.
If we're running just UNIT_ModelCommandAPI_TEST
, we shouldn't have to worry about this since we won't be loading dlls.
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
a2ae8cd
to
9ef3ce2
Compare
…im-executable Signed-off-by: Saurabh Kamat <[email protected]>
9ef3ce2
to
e354baa
Compare
Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
🎉 New feature
Part of gazebosim/gz-tools#7
Summary
This PR introduces a standalone
gz model
executable, following a similar approach togz-transport
. The new executable is integrated intocmdmodel.rb.in
, replacing its existing functionality.The
gz sim
implementation remains unchanged in this PR and will be addressed in a subsequent update. Additionally, the command-line tests (gz_TEST.cc and ModelCommandAPI_TEST.cc) are now configured to build after thegz model
executable is created.Test it
Check for
UNIT_gz_TEST
andUNIT_ModelCommandAPI_TEST
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.