Skip to content

Commit 04725c1

Browse files
author
Felix Exner (fexner)
authored
Add support for UR30 in start_ursim.sh (#193)
The docker images now support the UR30, so we should add this as an option.
1 parent 914e68c commit 04725c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/start_ursim.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ help()
3838
echo
3939
echo "Syntax: `basename "$0"` [-m|s|h]"
4040
echo "options:"
41-
echo " -m <model> Robot model. One of [ur3, ur3e, ur5, ur5e, ur10, ur10e, ur16e, ur20]. Defaults to ur5e."
41+
echo " -m <model> Robot model. One of [ur3, ur3e, ur5, ur5e, ur10, ur10e, ur16e, ur20, ur30]. Defaults to ur5e."
4242
echo " -v <version> URSim version that should be used.
4343
See https://hub.docker.com/r/universalrobots/ursim_e-series/tags
4444
for available versions. Defaults to 'latest'"
@@ -71,7 +71,7 @@ validate_model()
7171
ROBOT_MODEL=$(echo ${ROBOT_MODEL:0:$((${#ROBOT_MODEL}-1))})
7272
ROBOT_SERIES=e-series
7373
;;
74-
ur20)
74+
ur20|ur30)
7575
ROBOT_MODEL=${ROBOT_MODEL^^}
7676
ROBOT_SERIES=e-series
7777
;;
@@ -93,6 +93,7 @@ validate_ursim_version()
9393
local MIN_CB3="3.14.3"
9494
local MIN_E_SERIES="5.9.4"
9595
local MIN_UR20="5.14.0"
96+
local MIN_UR30="5.15.0"
9697

9798
local MIN_VERSION="0.0"
9899

@@ -107,6 +108,9 @@ validate_ursim_version()
107108
if [[ $ROBOT_MODEL == "UR20" ]]; then
108109
verlte $MIN_UR20 $URSIM_VERSION && return 0
109110
MIN_VERSION=$MIN_UR20
111+
elif [[ $ROBOT_MODEL == "UR30" ]]; then
112+
verlte $MIN_UR30 $URSIM_VERSION && return 0
113+
MIN_VERSION=$MIN_UR30
110114
else
111115
verlte $MIN_E_SERIES $URSIM_VERSION && return 0
112116
MIN_VERSION=$MIN_E_SERIES

0 commit comments

Comments
 (0)