generated from athackst/vscode_ros2_workspace
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkout virtual iridium repo in CI (#188)
* Checkout virtual iridium repo in CI * Add debug statements * Add more debug statements * Migrate run_virtual_iridium script * Make script executable --------- Co-authored-by: hhenry01 <[email protected]>
- Loading branch information
1 parent
d9d04dc
commit 96f0f8b
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# README under sailbot_workspace/src/network_systems/scripts/ | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters