From b4cdc1d9b29e5ec376611ee9192c9f9d958196e1 Mon Sep 17 00:00:00 2001 From: hhenry01 Date: Sat, 4 Nov 2023 15:20:02 -0700 Subject: [PATCH] Migrate run_virtual_iridium script --- scripts/run_virtual_iridium.sh | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) mode change 100755 => 120000 scripts/run_virtual_iridium.sh diff --git a/scripts/run_virtual_iridium.sh b/scripts/run_virtual_iridium.sh deleted file mode 100755 index f27a7c0..0000000 --- a/scripts/run_virtual_iridium.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -WEBHOOK_SERVER_ENDPOINT=${1:-127.0.0.1:8081} -VIRTUAL_IRIDIUM_HTTP_SERVER_PORT=${2:-8080} - -# Make sure everything is killed on exit -trap 'exit' INT TERM -trap 'kill %; exit 0' EXIT - -# Port environment variables are defined in $ROS_WORKSPACE/.devcontainer/base-dev/base-dev.Dockerfile -touch $LOCAL_TRANSCEIVER_TEST_PORT -touch $VIRTUAL_IRIDIUM_PORT - -# Setup socat relay pair -socat -d -d -t 0 pty,raw,echo=0,link=$LOCAL_TRANSCEIVER_TEST_PORT pty,raw,echo=0,link=$VIRTUAL_IRIDIUM_PORT & - -# Run Virtual Iridium -python2 $ROS_WORKSPACE/src/virtual_iridium/python/Iridium9602.py --webhook_server_endpoint $WEBHOOK_SERVER_ENDPOINT \ - --http_server_port $VIRTUAL_IRIDIUM_HTTP_SERVER_PORT -d $VIRTUAL_IRIDIUM_PORT -m HTTP_POST diff --git a/scripts/run_virtual_iridium.sh b/scripts/run_virtual_iridium.sh new file mode 120000 index 0000000..aaae6e2 --- /dev/null +++ b/scripts/run_virtual_iridium.sh @@ -0,0 +1 @@ +../../../run_virtual_iridium.sh \ No newline at end of file