Skip to content

Commit

Permalink
Set ROS_VERSION and ROS_PYTHON_VERSION
Browse files Browse the repository at this point in the history
... to correctly interpret package.xml conditions for topological ordering
  • Loading branch information
rhaschke committed Sep 9, 2023
1 parent ea61f0e commit 2f6c68d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ case $ROS_DISTRO in
;;
esac

# set ROS environment variables
case $ROS_DISTRO in
noetic|one)
export export ROS_VERSION=1
;;
*)
export export ROS_VERSION=2
;;
esac
export ROS_PYTHON_VERSION=3


if debian-distro-info --all | grep -q "$DEB_DISTRO"; then
export DISTRIBUTION=debian
export DISTRIBUTION_REPO=http://deb.debian.org/debian
Expand Down

0 comments on commit 2f6c68d

Please sign in to comment.