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

Install gz-sim*-cli on ros_gz testing builds #1004

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Sep 1, 2023

The ros_gz_sim package for being able to run with ros launch needs to have the gz-sim*-cli package. This is probably a bug in ros_gz code.

Until we get that fixed, this PR adds automatically that package into the testing job so the smoke test can be run.

Tested: Build Status

@@ -30,6 +30,10 @@ fi
echo '# END SECTION'

echo '# BEGIN SECTION: test gz_sim via ros2 launch'
# Workaround until ros_gz defines a dependency on gz-sim*-cli. Avoid to use
# apt --install-suggests since it installs the whole universe of packages
VER=\$(dpkg -l | grep libgz-sim | grep ^ii | head -1 | awk '{ print \$3 '})
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why there's a \$ instead of $ and in the awk '{ print \$3 '}, should the ' be after }?

Copy link
Contributor Author

@j-rivero j-rivero Oct 3, 2023

Choose a reason for hiding this comment

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

Not sure why there's a $ instead of $

An extra \ is needed since we are in a bash """ block that is going to be consumed by bash, if we don't use that this will be translated to a bash variable instead of reaching the real execution as pure $3.

awk '{ print $3 '}, should the ' be after }?

Umm this indeed seems a bug that bash passed just fine. I change it.

@j-rivero j-rivero merged commit 7e831e6 into master Oct 5, 2023
1 check passed
@j-rivero j-rivero deleted the jrivero/install_gz_sim_cli_on_ros_gz branch October 5, 2023 15:02
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