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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions jenkins-scripts/docker/ros_gz-install-test-job.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 }')
sudo apt-get install -y gz-sim\${VER:0:1}-cli
TEST_START=\`date +%s\`
# preserve-status did not work here
timeout 180 ros2 launch ros_gz_sim gz_sim.launch.py gz_args:=shapes.sdf || true
Expand All @@ -42,9 +46,6 @@ if [ \$DIFF -lt 180 ]; then
fi
"""

# Need bc to proper testing and parsing the time
# TODO: fix gz-sim-cli dependency on ros_gz package
# to avoid hardcoded version on gz-sim
export DEPENDENCY_PKGS="${DEPENDENCY_PKGS} wget ros-${ROS_DISTRO}-ros-base gz-sim7-cli"
export DEPENDENCY_PKGS="${DEPENDENCY_PKGS} wget ros-${ROS_DISTRO}-ros-base"

. ${SCRIPT_DIR}/lib/generic-install-base.bash