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

Added ros2 humble installation to setup script #1284

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
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
32 changes: 30 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,35 @@ fi
cat <<EOF
$(color "$Pur")
$(hash_header)
$(color "$Gre")Downloaded and setup Python dependencies.
$(color "$Gre")Downloaded and setup python dependencies.
$(color "$Pur")Installing ROS2 Foxy and dependencies...
$(hash_header)$(color "$Res")
EOF

mil_system_install software-properties-common
sudo add-apt-repository universe

sudo apt update && mil_system_install curl
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list >/dev/null

sudo apt update
sudo apt upgrade

mil_system_install ros-foxy-desktop python3-argcomplete

mil_system_install ros-dev-tools

mil_system_install ros-foxy-ros1-bridge

# Restore path
cd ~/catkin_ws/src/mil/

cat <<EOF
$(color "$Pur")
$(hash_header)
$(color "$Gre")Downloaded and setup ROS2 Foxy.
$(color "$Pur")Initializing rosdep...
$(hash_header)$(color "$Res")
EOF
Expand Down Expand Up @@ -274,7 +302,7 @@ mil_user_setup_rc() {
} >>~/.zshrc
fi
else
# User is using zsh
# User is using bash
if grep -Fq "$BASH_RC_LINES" ~/.bashrc; then
echo "milrc is already sourced in ~/.bashrc, skipping"
else
Expand Down
3 changes: 3 additions & 0 deletions scripts/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ export PYTHONPATH="${HOME}/catkin_ws/src/mil/mil_common/perception/vision_stack/
# Ensure that VRX does _not_ exit on completion, as we're not in a time-limited
# environment, and exiting too early would not let us debug as much!
export VRX_EXIT_ON_COMPLETION=0

export ROS1_INSTALL_PATH=/opt/ros/noetic
export ROS2_INSTALL_PATH=/opt/ros/foxy
Loading