Skip to content

Commit 37723a8

Browse files
committed
Fix UR7e and UR12e model parametrization in start_ursim.sh
1 parent e18abe4 commit 37723a8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/start_ursim.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ strip_robot_model()
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
132-
ROBOT_MODEL=$(echo "${ROBOT_MODEL:0:$((${#ROBOT_MODEL}-1))}e")
132+
# PolyScope X uses UR7e and UR12e, but PolyScope 5 uses UR7 and UR12. So we
133+
# need to strip the "e" for PolyScope 5
134+
if [[ "$robot_series" == "polyscopex" ]]; then
135+
ROBOT_MODEL=$(echo "${ROBOT_MODEL:0:$((${#ROBOT_MODEL}-1))}e")
136+
else
137+
ROBOT_MODEL=$(echo "${ROBOT_MODEL:0:$((${#ROBOT_MODEL}-1))}")
138+
fi
133139
fi
134140
fi
135141
}

0 commit comments

Comments
 (0)