Skip to content

Commit

Permalink
[OS Setup] Script for installing standard software to 22.04 (StoglRob…
Browse files Browse the repository at this point in the history
…otics#57)

Co-authored-by: Manuel M <[email protected]>
Co-authored-by: muritane <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2023
1 parent 6b69721 commit 0ec3973
Show file tree
Hide file tree
Showing 9 changed files with 533 additions and 153 deletions.
12 changes: 11 additions & 1 deletion scripts/_RosTeamWs_Defines.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) 2021, Stogl Robotics Consulting UG (haftungsbeschränkt)
#!/usr/bin/env bash
# Copyright (c) 2022, Stogl Robotics Consulting UG (haftungsbeschränkt)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,6 +31,14 @@ if [ -z "$rtw_supported_ros_distributions" ]; then
readonly rtw_supported_ros_distributions=("noetic" "foxy" "galactic" "humble" "iron" "rolling")
fi

# Mapping of ubuntu version and supported ros distributions
if [ -z "$ubuntu_20_04_supported_ros_distributions" ]; then
readonly ubuntu_20_04_supported_ros_distributions=("noetic" "foxy" "galactic" "rolling")
fi
if [ -z "$ubuntu_22_04_supported_ros_distributions" ]; then
readonly ubuntu_22_04_supported_ros_distributions=("rolling" "humble")
fi

# This needs to be set for every branch
# Check the set_supported_versions functions below and update as fit.
RTW_BRANCH_ROS_DISTRO="rolling"
Expand Down Expand Up @@ -349,6 +358,7 @@ function set_framework_default_paths {
ROS2_CONTROL_CONTROLLER_TEMPLATES="$ROS2_CONTROL_TEMPLATES/controller"
LICENSE_TEMPLATES="$FRAMEWORK_BASE_PATH/templates/licenses"
DOCKER_TEMPLATES="$FRAMEWORK_BASE_PATH/templates/docker"
OS_CONFIGURE_TEMPLATES="$FRAMEWORK_BASE_PATH/templates/os_configure"
}

function is_valid_ros_distribution {
Expand Down
4 changes: 4 additions & 0 deletions scripts/_Team_Defines.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ fi
## END: Framework definitions adjustable by users

# BEGIN: Define aliases for standard internal functions
#cd to often used places
alias cd_ros_team_ws='cd $FRAMEWORK_BASE_PATH'
alias cd_rtw='cd $FRAMEWORK_BASE_PATH'
alias cd_rtw_scripts='cd $RosTeamWS_FRAMEWORK_SCRIPTS_PATH'

alias setup_exports=RosTeamWS_setup_exports

Expand Down
Loading

0 comments on commit 0ec3973

Please sign in to comment.