File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3131PERSISTENT_BASE=" ${HOME} /.ursim"
3232URCAP_VERSION=" 1.0.5"
3333IP_ADDRESS=" 192.168.56.101"
34- PORT_FORWARDING=" -p 30001-30004:30001-30004 -p 29999:29999"
34+ PORT_FORWARDING_WITH_DASHBOARD=" -p 30001-30004:30001-30004 -p 29999:29999"
35+ PORT_FORWARDING_WITHOUT_DASHBOARD=" -p 30001-30004:30001-30004"
3536CONTAINER_NAME=" ursim"
3637
3738# TODO: Add support for more URSim PolyScopeX versions once released
222223URCAP_STORAGE=" ${PERSISTENT_BASE} /${ROBOT_SERIES} /urcaps"
223224PROGRAM_STORAGE=" ${PERSISTENT_BASE} /${ROBOT_SERIES} /${ROBOT_MODEL} /programs"
224225
226+ if [ -z " $PORT_FORWARDING " ]; then
227+ if [ " $ROBOT_SERIES " == " polyscopex" ]; then
228+ PORT_FORWARDING=$PORT_FORWARDING_WITHOUT_DASHBOARD
229+ else
230+ PORT_FORWARDING=$PORT_FORWARDING_WITH_DASHBOARD
231+ fi
232+ fi
233+
225234DOCKER_ARGS=" "
226235
227236if [ " $ROBOT_SERIES " == " polyscopex" ]; then
You can’t perform that action at this time.
0 commit comments