Skip to content

Commit a4fe0ff

Browse files
committed
CTRL-5696 support UR8 LONG
Squashed commit of the following: commit fcdf814a3cf487fde6c5ed1111729a857ae68915 Author: Felix Exner <[email protected]> Date: Fri Jun 6 08:14:29 2025 +0200 Add support for UR8LONG
1 parent f7efbfa commit a4fe0ff

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

include/ur_client_library/ur/datatypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ enum class RobotType : int8_t
9595
UR10 = 2,
9696
UR3 = 3,
9797
UR16 = 4,
98+
UR8LONG = 6,
9899
UR20 = 7,
99100
UR30 = 8,
100101
UR15 = 9

scripts/start_ursim.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ help()
4343
echo
4444
echo "Syntax: `basename "$0"` [-m|s|h]"
4545
echo "options:"
46-
echo " -m <model> Robot model. One of [ur3, ur3e, ur5, ur5e, ur7e, ur10e, ur12e, ur16e, ur15, ur20, ur30]. Defaults to ur5e."
46+
echo " -m <model> Robot model. One of [ur3, ur3e, ur5, ur5e, ur7e, ur8long, ur10e, ur12e, ur16e, ur15, ur20, ur30]. Defaults to ur5e."
4747
echo " -v <version> URSim version that should be used.
4848
See https://hub.docker.com/r/universalrobots/ursim_e-series/tags
4949
for available versions. Defaults to 'latest'"
@@ -86,7 +86,7 @@ get_series_from_model()
8686
ur3e|ur5e|ur7e|ur10e|ur12e|ur16e)
8787
ROBOT_SERIES=e-series
8888
;;
89-
ur15|ur20|ur30)
89+
ur8long|ur15|ur20|ur30)
9090
ROBOT_SERIES=e-series
9191
;;
9292
*)
@@ -125,7 +125,7 @@ strip_robot_model()
125125
ROBOT_MODEL=${robot_model^^}
126126
else
127127
ROBOT_MODEL=${robot_model^^}
128-
# UR15, UR20 and UR30 need no further adjustment
128+
# UR8LONG, UR15, UR20 and UR30 need no further adjustment
129129
if [[ "$robot_model" = @(ur3e|ur5e|ur10e|ur16e) ]]; then
130130
ROBOT_MODEL=$(echo "${ROBOT_MODEL:0:$((${#ROBOT_MODEL}-1))}")
131131
elif [[ "$robot_model" = @(ur7e|ur12e) ]]; then
@@ -153,6 +153,8 @@ validate_parameters()
153153
local MIN_UR30="5.15.0"
154154
local MIN_UR7e="5.22.0" # and UR12e
155155
local MIN_UR7e_X="10.9.0" # and UR12e
156+
local MIN_UR8LONG="5.23.0"
157+
local MIN_UR8LONG_X="10.11.0"
156158

157159
local URSIM_VERSION_CHECK="$URSIM_VERSION"
158160
if [[ "$URSIM_VERSION" == "latest" ]]; then
@@ -182,7 +184,7 @@ validate_parameters()
182184
verlte "$MIN_CB3" "$URSIM_VERSION_CHECK" && return 0
183185
;;
184186
e-series)
185-
if [[ $ROBOT_MODEL != @(ur3e|ur5e|ur7e|ur10e|ur12e|ur16e|ur15|ur20|ur30) ]]; then
187+
if [[ $ROBOT_MODEL != @(ur3e|ur5e|ur7e|ur8long|ur10e|ur12e|ur16e|ur15|ur20|ur30) ]]; then
186188
echo "$ROBOT_MODEL is no valid e-series model!" && exit 1
187189
fi
188190
if [[ $ROBOT_MODEL == "ur15" ]]; then
@@ -193,6 +195,8 @@ validate_parameters()
193195
MIN_VERSION=$MIN_UR30
194196
elif [[ $ROBOT_MODEL == "ur7e" || $ROBOT_MODEL == "ur12e" ]]; then
195197
MIN_VERSION=$MIN_UR7e
198+
elif [[ $ROBOT_MODEL == "ur8long" ]]; then
199+
MIN_VERSION=$MIN_UR8LONG
196200
else
197201
MIN_VERSION=$MIN_E_SERIES
198202
fi
@@ -202,10 +206,12 @@ validate_parameters()
202206
echo "PolyscopeX is only supported from version $MIN_POLYSCOPE_X onwards"
203207
exit 1
204208
fi
205-
if [[ $ROBOT_MODEL != @(ur3e|ur5e|ur7e|ur10e|ur12e|ur16e|ur15|ur20|ur30) ]]; then
209+
if [[ $ROBOT_MODEL != @(ur3e|ur5e|ur7e|ur8long|ur10e|ur12e|ur16e|ur15|ur20|ur30) ]]; then
206210
echo "$ROBOT_MODEL is no valid PolyscopeX model!" && exit 1
207211
elif [[ $ROBOT_MODEL == "ur7e" || $ROBOT_MODEL == "ur12e" ]]; then
208212
MIN_VERSION=$MIN_UR7e_X
213+
elif [[ $ROBOT_MODEL == "ur8long" ]]; then
214+
MIN_VERSION=$MIN_UR8LONG_X
209215
elif [[ $ROBOT_MODEL == "ur15" ]]; then
210216
MIN_VERSION=$MIN_UR15_X
211217
else

tests/test_start_ursim.bats

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,24 @@ setup() {
247247
[ $status -eq 0 ]
248248
}
249249

250+
@test "test ur8long min version" {
251+
run test_input_handling -m ur8long -v 3.14.3
252+
echo "$output"
253+
[ $status -eq 1 ]
254+
run test_input_handling -m ur8long -v 5.22.3
255+
echo "$output"
256+
[ $status -eq 1 ]
257+
run test_input_handling -m ur8long -v 5.23.0
258+
echo "$output"
259+
[ $status -eq 0 ]
260+
run test_input_handling -m ur8long -v 10.10.0
261+
echo "$output"
262+
[ $status -eq 1 ]
263+
run test_input_handling -m ur8long -v 10.11.0
264+
echo "$output"
265+
[ $status -eq 0 ]
266+
}
267+
250268
@test "unsupported versions raise error" {
251269
run main -v 1.2.3 -t
252270
echo "$output"

0 commit comments

Comments
 (0)