Skip to content

Commit

Permalink
[ros_xsarms] Readd rolling to distros with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeschmitt-tr committed Jul 24, 2023
1 parent 85e8937 commit 3418789
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 13 additions & 3 deletions interbotix_ros_xsarms/install/amd64/xsarm_amd64_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ RRE="${NORM}${OFF}"

PROMPT="> "

ALL_VALID_DISTROS=('melodic' 'noetic' 'galactic' 'humble')
ALL_VALID_DISTROS=('melodic' 'noetic' 'galactic' 'humble' 'rolling')
ROS1_VALID_DISTROS=('melodic' 'noetic')
ROS2_VALID_DISTROS=('galactic' 'humble')
ROS2_VALID_DISTROS=('galactic' 'humble' 'rolling')

BIONIC_VALID_DISTROS=('melodic')
FOCAL_VALID_DISTROS=('noetic' 'galactic')
JAMMY_VALID_DISTROS=('humble')
JAMMY_VALID_DISTROS=('humble' 'rolling')

NONINTERACTIVE=false
DISTRO_SET_FROM_CL=false
Expand Down Expand Up @@ -415,6 +415,16 @@ if [ "$NONINTERACTIVE" = false ]; then
INSTALL_MATLAB=false
fi

if [[ "$ROS_DISTRO_TO_INSTALL" == 'rolling' ]]; then
echo -e "${BLU}${BOLD}ROS 2 Rolling is not officially supported and full functionality is not guaranteed. Do you wish to continue anyways?\n$PROMPT${NORM}${OFF}\c"
read -r resp
if [[ $resp == [yY] || $resp == [yY][eE][sS] ]]; then
:
else
help && exit 0
fi
fi

echo -e "${BLU}${BOLD}INSTALLATION SUMMARY:"
echo -e "\tROS Distribution: ROS ${ROS_VERSION_TO_INSTALL} ${ROS_DISTRO_TO_INSTALL}"
echo -e "\tInstall Perception Modules: ${INSTALL_PERCEPTION}"
Expand Down
16 changes: 13 additions & 3 deletions interbotix_ros_xsarms/install/rpi4/xsarm_rpi4_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ RRE="${NORM}${OFF}"

PROMPT="> "

ALL_VALID_DISTROS=('melodic' 'noetic' 'galactic' 'humble')
ALL_VALID_DISTROS=('melodic' 'noetic' 'galactic' 'humble' 'rolling')
ROS1_VALID_DISTROS=('melodic' 'noetic')
ROS2_VALID_DISTROS=('galactic' 'humble')
ROS2_VALID_DISTROS=('galactic' 'humble' 'rolling')

BIONIC_VALID_DISTROS=('melodic')
FOCAL_VALID_DISTROS=('noetic' 'galactic')
JAMMY_VALID_DISTROS=('humble')
JAMMY_VALID_DISTROS=('humble' 'rolling')

NONINTERACTIVE=false
INSTALL_PATH=~/interbotix_ws
Expand Down Expand Up @@ -395,6 +395,16 @@ if [ "$NONINTERACTIVE" = false ]; then
fi
fi

if [[ "$ROS_DISTRO_TO_INSTALL" == 'rolling' ]]; then
echo -e "${BLU}${BOLD}ROS 2 Rolling is not officially supported and full functionality is not guaranteed. Do you wish to continue anyways?\n$PROMPT${NORM}${OFF}\c"
read -r resp
if [[ $resp == [yY] || $resp == [yY][eE][sS] ]]; then
:
else
help && exit 0
fi
fi

echo -e "${BLU}${BOLD}RASPBERRY PI INSTALLATION SUMMARY:"
echo -e "\tROS Distribution: ROS ${ROS_VERSION_TO_INSTALL} ${ROS_DISTRO_TO_INSTALL}"
echo -e "\tRun joystick control on boot: ${RUN_JOY_AT_BOOT}"
Expand Down

0 comments on commit 3418789

Please sign in to comment.