-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
587ead1
commit 83e8207
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#! /usr/bin/env bash | ||
# shellcheck disable=SC1090 | ||
|
||
if [ -z "$TUE_ROS_DISTRO" ] | ||
[[ -v TUE_ENV_ROS_DISTRO || -v TUE_ROS_DISTRO ]] || { TUE_ENV_ROS_DISTRO=${TUE_ROS_DISTRO}; tue-install-warning "Change the config of your environment to use 'TUE_ENV_ROS_DISTRO' instead of 'TUE_ROS_DISTRO'"; } | ||
if [[ -z "${TUE_ENV_ROS_DISTRO}" ]] | ||
then | ||
tue-install-error "TUE_ROS_DISTRO was not set" | ||
tue-install-error "TUE_ENV_ROS_DISTRO was not set" | ||
return 1 | ||
fi | ||
|
||
# Install basic ROS packages and eProsima DDS implementation. | ||
tue-install-system-now ros-"$TUE_ROS_DISTRO"-ros-core ros-"$TUE_ROS_DISTRO"-rmw-fastrtps-cpp | ||
tue-install-system-now ros-"${TUE_ENV_ROS_DISTRO}"-ros-core ros-"${TUE_ENV_ROS_DISTRO}"-rmw-fastrtps-cpp | ||
|
||
# Setup the build environment | ||
mkdir -p "$TUE_SYSTEM_DIR" | ||
mkdir -p "${TUE_ENV_WS_DIR}" | ||
|
||
if [ ! -f "$TUE_SYSTEM_DIR"/install/setup.bash ] | ||
if [ ! -f "$TUE_ENV_WS_DIR"/install/setup.bash ] | ||
then | ||
[[ -z "${TUE_ROS_VERSION}" ]] && { tue-install-warning "tue-env variable TUE_ROS_VERSION is not set. This will not be allowed in the future.\nSetting TUE_ROS_VERSION=2 temporarily."; } | ||
TUE_ROS_VERSION=2 tue-make || tue-install-error "Error in building the ROS2 system workspace" | ||
[[ -v TUE_ENV_ROS_VERSION || -v TUE_ROS_VERSION ]] || { TUE_ENV_ROS_VERSION=${TUE_ROS_VERSION}; tue-install-warning "Change the config of your environment to use 'TUE_ENV_ROS_DISTRO' instead of 'TUE_ROS_DISTRO'"; } | ||
[[ -z "${TUE_ENV_ROS_VERSION}" ]] && { tue-install-warning "tue-env variable TUE_ENV_ROS_VERSION is not set. This will not be allowed in the future.\nSetting TUE_ENV_ROS_VERSION=2 temporarily."; } | ||
TUE_ENV_ROS_VERSION=2 tue-make || tue-install-error "Error in building the ROS2 system workspace" | ||
fi |
This file contains 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